commit-confirm — Claude Code skill: what it does, how to install
A wrapper for the $commit skill that inspects the entire project, proposes a commit plan, and waits for approval before touching Git.
npx skills add LegendApp/legend-skills --skill commit-confirm -a claude-codeWhat commit-confirm does
This skill invokes $commit while overriding its scoping and confirmation defaults. Instead of committing immediately, it inspects staged, unstaged, and untracked files across the entire workspace. If you specify a narrower scope, the agent respects that limit.
The workflow prevents premature changes by requiring review first. Staging before approval is blocked. Once approved, the agent executes the agreed commit sequence without asking again. The base $commit skill is not installed automatically: without it, this wrapper halts and requests npx skills add LegendApp/legend-skills --skill commit.
What it helps with
- reviewing commit plans before staging any files
- grouping tracked and untracked changes across the whole tree
- blocking automatic commits until manual confirmation
- creating multi-commit sequences after one approval
Example prompts for the agent
- Prepare whole-tree commits with commit-confirm and wait for my review
- I approve the proposed plan, go ahead with the commits
- Run commit-confirm restricted to the edits made by this agent
How to install commit-confirm
1Skills CLI (Vercel)
npx skills add LegendApp/legend-skills --skill commit-confirm -a claude-code2Manually: put the files in place
~/.claude/skills/commit-confirm/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/commit-confirm/
1Skills CLI (Vercel)
npx skills add LegendApp/legend-skills --skill commit-confirm -a codex2Manually: put the files in place
.agents/skills/commit-confirm/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add LegendApp/legend-skills --skill commit-confirm -a cursor2Manually: put the files in place
.cursor/skills/commit-confirm/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install LegendApp/legend-skills commit-confirm2Manually: put the files in place
.github/skills/commit-confirm/SKILL.md1Skills CLI (Vercel)
npx skills add LegendApp/legend-skills --skill commit-confirm -a gemini-cli2Platform CLI
gemini skills install https://github.com/LegendApp/legend-skills --path commit-confirmManually: put the files in place
.devin/skills/commit-confirm/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add LegendApp/legend-skills --skill commit-confirm -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about commit-confirm
How to install commit-confirm in Claude Code?
Run npx skills add LegendApp/legend-skills --skill commit-confirm -a claude-code.
What does commit-confirm do?
It forces $commit into an approval-first flow across the full working tree, stopping before staging until you explicitly approve the plan.
Does commit-confirm require other dependencies?
Yes, it depends on the $commit skill. If it is missing, the tool stops and asks you to run npx skills add LegendApp/legend-skills --skill commit.
Source text
SKILL.md · MIT
--- name: commit-confirm description: "Use only for explicit commit-confirm invocation: propose whole-tree commits and wait for go." --- # Commit Confirm Use this wrapper only after the explicit opt-in described in the frontmatter. A normal approval-first commit request does not opt in to this skill or its whole-working-tree default. Use this skill to run `$commit` in approval-first mode, defaulting to the whole working tree. Before starting, load and follow `$commit`. This skill overrides its default scope and approval behavior; `$commit` owns working-tree inspection, grouping, message style, staging, committing, and reporting. Selected installs do not install dependencies automatically. If `$commit` is not installed or available, stop before staging or committing. Tell the user to install it with: ```bash npx skills add LegendApp/legend-skills --skill commit ``` Then ask them to retry after installation. ## Scope And Approval Override When using `$commit`, force plan mode: - Unless the user requests a narrower scope, use all-changes mode: inspect staged, unstaged, and untracked changes as the pool to group. Preserve explicit exclusions. - If the user names a subset or asks for only the current agent's changes, honor that narrower scope. - Always present a commit plan first and wait for explicit approval such as `go`. - Do not stage or commit before approval, even if there is only one logical commit. - After approval, create all agreed commits without asking again unless the working tree changes unexpectedly. - Treat `go` after a previously presented plan as approval for that plan, then re-check the working tree before staging.
© LegendApp · MIT · LegendApp/legend-skills