Agent skill

git-commit-batch-delta

{{ 𝚫𝚫𝚫 }} Split uncommitted changes into granular commits.

Stars 163
Forks 31

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

  1. Run git diff --stat HEAD and git status to get a full picture of all changes.
  2. 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).
  3. Present the proposed commit plan as a numbered list:
    • Group name / files involved
    • Suggested commit message (conventional commits format)
  4. Await approval — stop here and do not proceed until the user responds:
    • If approved, execute commits sequentially. For each group:
      1. Stage only the files listed for that group (git add <files>)
      2. Commit with the proposed message
      3. Confirm success before moving to the next group
    • If changes requested, revise the plan and repeat from step 3.
  5. 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

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results