Agent skill
git-commit-batch-delta
{{ 𝚫𝚫𝚫 }} Split uncommitted changes into granular commits.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/git-commit-batch-delta
SKILL.md
Steps
- Run
git diff --stat HEADandgit statusto get a full picture of all changes. - Analyse the changes and group them into logical commit units — each group should represent a single coherent change (e.g. one feature, one fix, one refactor).
- Present the proposed commit plan as a numbered list:
- Group name / files involved
- Suggested commit message (conventional commits format)
- Await approval — stop here and do not proceed until the user responds:
- If approved, execute commits sequentially. For each group:
- Stage only the files listed for that group (
git add <files>) - Commit with the proposed message
- Confirm success before moving to the next group
- Stage only the files listed for that group (
- If changes requested, revise the plan and repeat from step 3.
- If approved, execute commits sequentially. For each group:
- After all commits, push to upstream.
Grouping Guidelines
- Prefer smaller, atomic commits over large ones
- Keep unrelated changes in separate commits even if they touch the same area
- Config/dependency changes separate from feature code
- Test changes alongside the code they test (same commit), unless the test is independent
- Generated files (lockfiles, build artefacts) get their own commit if significant
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?