commit-confirm — скилл для Claude Code: что делает и как установить
Обёртка над скиллом $commit, которая собирает изменения со всего дерева проекта, готовит план коммитов и ждёт подтверждения перед отправкой в Git.
npx skills add LegendApp/legend-skills --skill commit-confirm -a claude-codeЧто делает commit-confirm
Скилл управляет созданием коммитов через вызов $commit, принудительно включая режим согласования. По умолчанию агент сканирует дерево целиком: проиндексированные, несохранённые и неотслеживаемые файлы. Если пользователь ограничил охват вручную, агент следует этим границам.
Перед изменениями формируется предварительный план разбивки правок. Индексация до одобрения запрещена. После согласования агент создаёт утверждённую цепочку коммитов, сверяя состояние репозитория перед стартом. Без установленного $commit инструмент откажется работать: его нужно ставить отдельно командой npx skills add LegendApp/legend-skills --skill commit.
Какие задачи решает
- согласовывать разбивку правок перед созданием коммитов
- собирать в коммиты файлы со всего рабочего дерева
- блокировать индексацию и коммиты до явного одобрения
- пакетно применять утверждённую цепочку коммитов
Примеры запросов агенту
- Спланируй коммиты для всех изменений в проекте через commit-confirm и жди моего согласия
- Подтверждаю предложенный план коммитов, выполняй
- Используй commit-confirm только для изменений текущего агента
Как установить commit-confirm
1Через Skills CLI (Vercel)
npx skills add LegendApp/legend-skills --skill commit-confirm -a claude-code2Вручную: положить файлы
~/.claude/skills/commit-confirm/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/commit-confirm/
1Через Skills CLI (Vercel)
npx skills add LegendApp/legend-skills --skill commit-confirm -a codex2Вручную: положить файлы
.agents/skills/commit-confirm/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add LegendApp/legend-skills --skill commit-confirm -a cursor2Вручную: положить файлы
.cursor/skills/commit-confirm/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install LegendApp/legend-skills commit-confirm2Вручную: положить файлы
.github/skills/commit-confirm/SKILL.md1Через Skills CLI (Vercel)
npx skills add LegendApp/legend-skills --skill commit-confirm -a gemini-cli2Командой платформы
gemini skills install https://github.com/LegendApp/legend-skills --path commit-confirmВручную: положить файлы
.devin/skills/commit-confirm/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add LegendApp/legend-skills --skill commit-confirm -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о commit-confirm
Как установить commit-confirm в Claude Code?
Выполните команду npx skills add LegendApp/legend-skills --skill commit-confirm -a claude-code.
Что делает скилл commit-confirm?
Он запускает $commit в строгом режиме предварительного плана и по умолчанию берёт все изменения репозитория, ожидая подтверждения перед записью в Git.
Что требуется для работы commit-confirm?
Необходим установленный скилл $commit. Если его нет, выполнение остановится с требованием запустить npx skills add LegendApp/legend-skills --skill commit.
Исходный текст
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