Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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.

  1. Preferred execution

    • Only when the custom github-dev:commit-creator agent 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.
  2. 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 -A on unrelated work.
    • Never stage files under .github/pr-assets/ and never pass --no-verify or -n.
    • When a check could pick up unstaged or untracked files, invoke the scripts/verify-staged script from the installed commit-staged skill directory (using its resolved path while keeping your shell cwd inside the target repository root), and confirm git write-tree still matches before citing that tree ID.
  3. Write a clear Conventional Commit message

    • Header format: type: brief description or type(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-By for an assistant, Generated with ..., or session URLs).
  4. 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.
  5. 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)
Полный SKILL.md на GitHub

Установить commit-staged в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

scripts/verify-staged

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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить commit-staged с