Skip to main content
skill CX Codex

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.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add LegendApp/legend-skills --skill commit-confirm -a claude-code
Open on GitHub

What 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-code

2Manually: put the files in place

~/.claude/skills/commit-confirm/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/commit-confirm/

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

Similar skills

All skills for Git and GitHub →

From the same set9

legend-list-best-practices A skill for @legendapp/list work: it implements the list by the library's own contracts or audits existing usage for recycling, measurement and scroll anchoring bugs. CX Codex +1 546installs legend-state-best-practices A skill that sets the rules for @legendapp/state: observable ownership, subscriptions, effects and persistence. Useful when you build or audit reactive code. CX Codex +1 475installs react-coding-style A skill that steers your coding agent through React implementation and review: narrow subscriptions, stable identities, honest hook dependencies. CX Codex +1 466installs simplify Simplifies code or diffs while preserving runtime behavior and test coverage. It strips unneeded abstractions and speculative generality without sacrificing readability. CX Codex +1 455installs diagnose A skill that investigates a bug through falsifiable hypotheses, discriminating probes and recorded evidence, then reports how solid the answer is. CX Codex +1 423installs diagnose-fix-loop A skill that keeps the agent looping: diagnose, make one scoped fix, verify with the same signal, diagnose again. It targets causes, not symptoms. CX Codex +1 420installs commit Turns the changes from your current task into one or more tidy commits and keeps unrelated work out. Handy when the working tree has piled up several unrelated edits. CX Codex +1 404installs git-integrate Drives a rebase, merge, cherry-pick or revert through verified completion and leaves unrelated work alone. Useful when an operation stalls on a conflict. CX Codex +1 389installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor