Stats
Actions
Tags
From git-discipline
Stage and commit only the current task's hunks when the worktree contains unrelated changes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/git-discipline:commit-snipeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Precision commits from a working tree with mixed changes. Stage only what belongs to the current task, leave the rest untouched.
Precision commits from a working tree with mixed changes. Stage only what belongs to the current task, leave the rest untouched.
git status shows changes that are NOT from the current workdigraph snipe {
"User says commit" [shape=doublecircle];
"git status" [shape=box];
"Which files belong to\nTHIS conversation?" [shape=diamond];
"Stage only those files\n(explicit paths)" [shape=box];
"git diff --cached\nverification" [shape=box];
"Commit" [shape=doublecircle];
"User says commit" -> "git status";
"git status" -> "Which files belong to\nTHIS conversation?";
"Which files belong to\nTHIS conversation?" -> "Stage only those files\n(explicit paths)";
"Stage only those files\n(explicit paths)" -> "git diff --cached\nverification";
"git diff --cached\nverification" -> "Commit";
}
git status review all changes in the working treegit add with explicit file namesgit diff --cached --stat to check that only the right files are staged/git-discipline:commit-snipe means "commit now". Do not ask for confirmation. The user has already given their intent by invoking the skill.git add . or git add -A. Always explicit paths or hunks.git add -p
to stage only the hunks that belong to the current work. It is about
the functionality, not the file.| Wrong | Correct |
|---|---|
| Stage everything because the user said "commit" | Only files from the current work |
| Ask "which files do you want to commit?" | Determine yourself from conversation context |
| Forget files you generated indirectly | Include all output: generated, compiled, derived files |
git add -A and then unstage what does not belong | git add with explicit paths |
| Bring along unmodified files "by accident" | git diff --cached --stat verifies what is actually staged |
npx claudepluginhub epologee/laicluse-agent-fieldkit --plugin git-disciplineCreates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.