commit-staged
БесплатноЗапускает вложенные скриптыНе проверенThis skill should be used when user asks to "commit these changes", "write commit message", "stage and commit", "create a commit", "commit staged files", or…
от fcakyon★ 1 223 звезды на GitHubОб этом скилле
Commit Staged
Complete autonomous workflow for committing staged changes cleanly once deterministic checks pass.
When invoked with extra text, treat that text as additional context about why the change exists and reflect the strongest findings in the commit body. Commit hooks enforce format, verification trailers, hook integrity, and attribution rules without interactive confirmation pauses.
Process
First, when /simplify is available in this client, run /simplify on the staged diff (docs-only commits included) as four parallel review agents and apply improvements before committing. On standalone skill installs without /simplify, do a brief inline cleanup pass over the staged diff.
Preferred execution
- Only when the custom
github-dev:commit-creatoragent is registered (Claude Code plugin installs), delegate to it with any extra context. - In all other clients (Codex CLI, Antigravity CLI, Cursor, T3 Code, or standalone skill installs), follow steps 2 to 5 directly.
- Only when the custom
Analyze staged changes only
- List staged files:
git diff --cached --name-only - Read the staged diff:
git diff --cached - Ignore unstaged edits completely. Never run
git add -Aon unrelated work. - Never stage files under
.github/pr-assets/and never pass--no-verifyor-n. - When a check could pick up unstaged or untracked files, invoke the
scripts/verify-stagedscript from the installedcommit-stagedskill directory (using its resolved path while keeping your shellcwdinside the target repository root), and confirmgit write-treestill matches before citing that tree ID.
- List staged files:
Write a clear Conventional Commit message
- Header format:
type: brief descriptionortype(scope): brief description(append!before:only for breaking changes). Keep the header concise (aim for <= 50 chars). - Allowed types:
feat,fix,refactor,docs,style,test,build,chore,perf,ci,revert. - Use plain language and explain why in an optional short paragraph or bullet list when the diff alone does not show motivation.
- Never add AI-attribution trailers (
Claude-Session,Co-Authored-Byfor an assistant,Generated with ..., or session URLs).
- Header format:
Require a
verification:trailer- After a blank line at the end of the commit message, include one lowercase
verification:line. - State the actual checks run against this staged state and their observed results, plus any material limitation or skipped scope.
- If nothing runnable applied, write
verification: none (<reason>). Never put future test plans in the trailer.
- After a blank line at the end of the commit message, include one lowercase
Commit cleanly
- Update existing docs only when the staged changes make documented guidance wrong.
- Pass multiline messages cleanly with
-m ... -m ...,-F - <<'EOF', or--trailer.
Examples
fix(web): stop duplicate jobs on save
verification: save regression test passed 20 consecutive runs
docs: add skills install snippets
verification: none (docs only, no runnable checks)
Установить commit-staged в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл commit-staged?
This skill should be used when user asks to "commit these changes", "write commit message", "stage and commit", "create a commit", "commit staged files", or explicitly invokes "commit-staged".
Как установить скилл commit-staged?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл commit-staged запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic