Use this skill whenever the user signals they want to commit changes — phrases like "commit this", "let's commit", "make a commit", "prepare a commit", "ready to commit". The job is to show the user what would be staged and propose a commit message, then wait for approval. Do NOT run git add or git commit until the user explicitly approves.
How this skill is triggered — by the user, by Claude, or both
Slash command
/vinhnguyen1211-skills:review-before-commitThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
The user wants to review what's about to be committed before any git command runs. Don't stage. Don't commit. Show and wait.
The user wants to review what's about to be committed before any git command runs. Don't stage. Don't commit. Show and wait.
No git add. No git commit. No git push. Reading is fine — git status, git diff, git log are how you gather what to show.
If you feel the urge to start staging "to make the next step easier," that's the signal to stop and show the user what you'd stage instead.
A short message covering:
- prefix, one bullet per change included in the commit, each bullet 1–2 sentences max. Prefer concise — omit the body when the subject line is self-contained.After showing the proposal, end every approval request with this exact line so the user always sees the required phrase:
Reply
commit approvedto proceed.
Don't run anything until the user replies with the exact phrase commit approved.
Nothing else counts as approval. Not "yes," not "go ahead," not "do it," not "lgtm," not a thumbs up. If the user replies with anything other than commit approved, treat it as feedback or a new proposal — apply any requested changes, re-show the updated state, and ask again (with the same commit approved prompt).
This applies to every approval in this skill, including amend approvals.
Approval covers the exact files and message you presented, nothing else. If anything changes between approval and running git commit, the previous approval is stale and you must show the new state and ask again. Things that invalidate approval:
.gitignore, fixing a typo, updating a comment).git status since you last showed it.When in doubt, re-show. A second review costs the user one line of "yes"; a wrong commit costs them an amend or a revert.
An approval for a side task is not an approval for the commit. After completing any work that changes the repo state, re-show the updated staged set and message and ask again.
After reviewing the staged files, compare them to the previous commit you helped with in this session. If they look related (same files, same feature, same fix), ask whether to amend or make a new commit. Show a one-line reason for why you think they're related so the user can sanity-check.
If the user picks amend:
git commit --amend.If the changes look unrelated to the previous commit, don't ask — just propose a new commit normally.
Inline in chat. No file needed.
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub vinhnguyen1211/skills --plugin vinhnguyen1211-skills