Agent skill
commit
Quick commit and push with minimal, clean messages
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/git-commit-flosrn-claude
SKILL.md
Commit
Quick commit with conventional message format, then push.
Context
- Git state: !
git status - Staged changes: !
git diff --cached --stat - Unstaged changes: !
git diff --stat - Recent commits: !
git log --oneline -5 - Current branch: !
git branch --show-current
Workflow
-
Analyze: Review git status
- Nothing staged but unstaged changes exist:
git add . - Nothing to commit: inform user and exit
- Nothing staged but unstaged changes exist:
-
Generate commit message:
- Format:
type(scope): brief description - Types:
feat,fix,update,docs,chore,refactor,test,perf,revert - Under 72 chars, imperative mood, lowercase after colon
- Example:
update(statusline): refresh spend data
- Format:
-
Commit:
git commit -m "message" -
Push:
git push
Rules
- SPEED OVER PERFECTION: Generate one good message and commit
- NO INTERACTION: Never ask questions - analyze and commit
- AUTO-STAGE: If nothing staged, stage everything
- AUTO-PUSH: Always push after committing
- IMPERATIVE MOOD: "add", "update", "fix" not past tense
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?