commit · fradser — скилл для Claude Code: что делает и как установить
Скилл commit для Claude Code создаёт атомарные conventional-коммиты через git-agent. Оформляет изменения по краткому намерению.
MIT 121 установок ★ 597 обновлён 2026-11-06
npx skills add FradSer/dotclaude --skill commit -a claude-codeЧто делает commit
Скилл принимает намерение из запроса или аргумента и запускает git-agent commit --intent "<intent>". Если нужные файлы уже добавлены в индекс, используется --no-stage; при ошибке авторизации 401 команда повторяется с --free. Для точного сообщения можно передать полный conventional-текст как значение --intent.
Перед запуском скилл не читает git status, git diff или git log: git-agent commit вызывается напрямую. Версия git-agent от v0.7.0 распознаёт атрибуцию модели через переменные окружения сессии. Без бинарника git-agent коммит не создастся, поэтому его нужно установить или выполнить Git-команды вручную.
Какие задачи решает
- создать атомарный conventional-коммит
- закоммитить уже staged-файлы без повторной индексации
- повторить коммит после ошибки авторизации 401
- задать точное сообщение коммита через намерение
- добавить соавтора к коммиту
Примеры запросов агенту
- Создай коммит с намерением «исправить обработку ошибок в API».
- Закоммить уже добавленные в индекс файлы и не меняй их staging.
- Создай коммит с соавтором
Alex; используй аргумент--co-author.
Как установить commit
1Через Skills CLI (Vercel)
npx skills add FradSer/dotclaude --skill commit -a claude-code2Вручную: положить файлы
~/.claude/skills/commit/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/commit/
1Через Skills CLI (Vercel)
npx skills add FradSer/dotclaude --skill commit -a codex2Вручную: положить файлы
.agents/skills/commit/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add FradSer/dotclaude --skill commit -a cursor2Вручную: положить файлы
.cursor/skills/commit/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install FradSer/dotclaude git-agent/skills/commit2Вручную: положить файлы
.github/skills/commit/SKILL.md1Через Skills CLI (Vercel)
npx skills add FradSer/dotclaude --skill commit -a gemini-cli2Командой платформы
gemini skills install https://github.com/FradSer/dotclaude --path git-agent/skills/commitВручную: положить файлы
.devin/skills/commit/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add FradSer/dotclaude --skill commit -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о commit
Как установить commit в Claude Code?
Выполните npx skills add FradSer/dotclaude --skill commit -a claude-code. Файл скилла появится в ~/.claude/skills/commit/SKILL.md.
Что делает commit?
Он создаёт атомарный conventional-коммит через git-agent, выводя намерение из запроса или аргументов. Для уже staged-файлов скилл применяет --no-stage.
Что произойдёт, если git-agent вернёт ошибку 401?
Скилл повторит команду с флагом --free. Если бинарник не найден, он сообщит об ошибке и попросит установить git-agent либо выполнить Git-команды вручную.
Исходный текст
SKILL.md · MIT
--- name: commit description: Creates atomic conventional git commits using git-agent. This skill should be used when the user requests "commit", "git commit", "create commit", or wants to commit changes using AI atomic commits. user-invocable: true argument-hint: "[intent or --co-author]" allowed-tools: ["Bash(git-agent:*)", "Bash(git:*)"] --- CRITICAL: - Do NOT run `git status`, `git diff`, `git log`, or any other read commands before `git-agent commit`. - Execute `git-agent commit` directly. `git-agent` (v0.7.0+) automatically detects active model attribution from session environment variables (`PI_MODEL`, etc.). ## Execution 1. Derive a concise one-sentence intent from the conversation or `$ARGUMENTS`. 2. Pass `--co-author "<co-author>"` if explicitly specified in `$ARGUMENTS` or user instructions. 3. Run primary commit command: ```bash git-agent commit --intent "<intent>" ``` 4. If specific files are already staged, pass `--no-stage`: ```bash git-agent commit --no-stage --intent "<intent>" ``` 5. On auth error (401), retry with `--free`: ```bash git-agent commit --free --intent "<intent>" ``` 6. **Fallback** (if `git-agent` binary is not found): report the error and ask the user to install git-agent or run git commands manually. CLI Reference: `../../references/cli.md` Attribution & retry-ladder reference: `../../references/coauthor-attribution.md` (covers `--no-attribution` and the `--free` retry) > **Deterministic messages:** When an exact commit message is required (e.g. version bump `chore: bump version to 0.11.0`), pass the full conventional message as the `--intent` value. The intent is used as the commit subject verbatim.
© FradSer · MIT · FradSer/dotclaude
Похожие скиллы
Все скиллы по теме «Git и GitHub» →Сначала — commit от других авторов.