Agent skill
committing-code
Smart git commits with logical grouping. Use when user says "commit", "commit changes", "save changes", "create commit", "bundle commits", "git commit", or wants to commit their work.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/committing-code
SKILL.md
Smart Commit
Group changed files logically into focused, atomic commits.
No agents. Inline analysis for speed.
Step 1: Gather State
Run in parallel:
git status --porcelain
git diff --name-status HEAD
git log --oneline -8
If no changes: Say "Nothing to commit" → stop.
Step 2: Analyze & Present
Group files by: feature (impl+tests), fix (bug+test), refactor, docs, config
Match commit style from recent history.
Present proposed commits:
Proposed commits:
1. feat: add user validation
- src/validate.ts
- src/validate_test.ts
2. docs: update README
- README.md
Step 3: Execute
For each group, run git add + commit.
User will be prompted to approve each write operation (git add/commit not pre-allowed).
Step 4: Summary
Show git status and list commits created.
Execute now.
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?