Agent skill
commit
Stage and commit changes in semantic groups. Use when the user wants to commit, organize commits, or clean up a branch before pushing.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/commit-bjornmelin-dev-skills
SKILL.md
- Read
git status --shortfirst and identify only the files touched by the current task or explicitly requested by the user. - Leave unrelated dirty files untouched unless the user explicitly asks for a whole-tree commit.
- If the tree is mixed, inspect diffs before staging and keep the staged set scoped to one semantic change.
- Stage files by purpose, not with
git add ., unless the whole task is intentionally one coherent change. - Default to one scoped conventional commit when the task is cohesive. Split into multiple commits only when there are clearly separate semantic groups.
- When multiple commits are needed, prefer this order:
feat,fix,test,docs,refactor,chore. - Use short scoped conventional commit messages that match exactly what changed.
- Keep each commit minimal, reviewable, and scoped to one change type.
- Run
git status -sbbetween groups to confirm the next commit only contains intended files. - Stop and ask before staging unrelated user changes, generated churn you do not understand, or a dirty tree that makes ownership ambiguous.
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?