Back to Skills

commit-and-push

verified

Commit and push changes

View on GitHub

Marketplace

computomatic

computomatic/claude-plugin

Plugin

dev

Repository

computomatic/claude-plugin

plugins/dev/skills/commit-and-push/SKILL.md

Last Verified

January 25, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/computomatic/claude-plugin/blob/main/plugins/dev/skills/commit-and-push/SKILL.md -a claude-code --skill commit-and-push

Installation paths:

Claude
.claude/skills/commit-and-push/
Powered by add-skill CLI

Instructions

## Git State

Status:
!`git status`

Changes:
!`git diff`

Recent commits:
!`git log --oneline -5`

## Task

Review the conversation context above to understand what the user was working on. Then:

1. **Identify related changes**: From the diff, determine which files are related to the work discussed in the conversation. Unrelated changes (e.g., unfinished work on a different feature) should NOT be staged.

2. **Stage selectively**: Only `git add` files that are related to the conversation context. If all changes appear related, stage everything.

3. **Generate commit message**: Write a clear commit message describing what was accomplished.

4. **Commit and push**: Commit the staged changes and push to the remote branch.

If you're unsure whether certain files are related, ask the user before staging.

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
802 chars