git-commit · nimbalyst — скилл для Claude Code: создание коммита с ИИ
Скилл формирует предложение коммита в интерактивном виджете Nimbalyst. Он срабатывает по запросу «smart commit» или при нажатии «Commit with AI».
npx skills add nimbalyst/nimbalyst --skill git-commit -a claude-codeЧто делает git-commit
Скилл собирает изменённые за текущую сессию файлы и передаёт их в виджет предложения коммита Nimbalyst. Если список файлов уже есть в запросе, он использует его; иначе вызывает mcp__nimbalyst__get_session_edited_files и сверяет результат с git status.
Затем скилл вызывает mcp__nimbalyst__developer_git_commit_proposal: передаёт все изменённые файлы сессии, объяснение выбора и сообщение коммита. Сообщение начинается с префикса вроде fix: или feat:, описывает результат для пользователя и укладывается в лимит длины строки. В виджете можно проверить файлы и текст перед подтверждением. Для обычной просьбы создать коммит этот скилл не подходит: он не запускает git add и git commit, а предлагает использовать стандартные команды Git.
Какие задачи решает
- подготовить предложение коммита по изменениям текущей сессии
- собрать все изменённые файлы сессии для коммита
- сформулировать сообщение коммита с описанием результата
- проверить файлы и сообщение перед подтверждением коммита
Примеры запросов агенту
- Сделай smart commit по изменениям этой сессии.
- Подготовь коммит через Commit with AI и покажи выбранные файлы.
- Сформулируй сообщение коммита по всем изменённым файлам сессии.
Как установить git-commit
1Через Skills CLI (Vercel)
npx skills add nimbalyst/nimbalyst --skill git-commit -a claude-code2Вручную: положить файлы
~/.claude/skills/git-commit/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/git-commit/
1Через Skills CLI (Vercel)
npx skills add nimbalyst/nimbalyst --skill git-commit -a codex2Вручную: положить файлы
.agents/skills/git-commit/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add nimbalyst/nimbalyst --skill git-commit -a cursor2Вручную: положить файлы
.cursor/skills/git-commit/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install nimbalyst/nimbalyst git-commit2Вручную: положить файлы
.github/skills/git-commit/SKILL.md1Через Skills CLI (Vercel)
npx skills add nimbalyst/nimbalyst --skill git-commit -a gemini-cli2Командой платформы
gemini skills install https://github.com/nimbalyst/nimbalyst --path packages/extensions/developer/claude-plugin/skills/git-commitВручную: положить файлы
.devin/skills/git-commit/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add nimbalyst/nimbalyst --skill git-commit -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о git-commit
Как установить git-commit в Claude Code?
Выполните npx skills add nimbalyst/nimbalyst --skill git-commit -a claude-code. Файл скилла появится по пути ~/.claude/skills/git-commit/SKILL.md.
Что делает git-commit?
Собирает изменённые за сессию файлы и передаёт их вместе с предложением сообщения в виджет Nimbalyst, где их можно проверить перед подтверждением.
Когда срабатывает git-commit?
Используйте его при нажатии «Commit with AI» или по явной просьбе о smart commit. Для обычной просьбы создать коммит скилл предписывает стандартные команды Git.
Исходный текст
SKILL.md · MIT
--- name: git-commit description: Create git commits using Nimbalyst's interactive commit proposal widget. ONLY use when the user explicitly clicks "Commit with AI" button or asks for "smart commit". For regular commit requests, use standard git commands instead. --- # Git Commit Workflow in Nimbalyst This skill is for the "Commit with AI" feature which provides an interactive commit proposal widget. **IMPORTANT: Only use this when:** - The user clicks the "Commit with AI" button (you'll see a message asking you to use developer_git_commit_proposal) - The user explicitly asks for "smart commit" or "commit with AI" **Do NOT use this for:** - Generic commit requests like "commit this", "commit the changes", "make a commit" - For those, use standard git commands: `git add` and `git commit` ## Required Steps 1. **Check if file context is already provided in the prompt** When the user clicks "Commit with AI", the prompt includes a pre-fetched list of session-edited files with uncommitted changes. If you see a file list in the prompt (lines like `- path/to/file.ts (modified)`), skip step 2 and go directly to step 3 using those files. 2. **Get session-edited files (fallback only)** Only if no file list was provided in the prompt: Call `mcp__nimbalyst__get_session_edited_files` to get ALL files you edited during this AI session, then cross-reference with git status. 3. **Propose the commit** Call `mcp__nimbalyst__developer_git_commit_proposal` with: - `filesToStage`: ALL session-edited files that have changes (do not cherry-pick a subset) - `commitMessage`: A well-crafted commit message following the guidelines below - `reasoning`: Explanation of why these files were selected ## Commit Message Guidelines - Start with type prefix: `feat:`, `fix:`, `refactor:`, `docs:`, `test:`, `chore:` - **Focus on IMPACT and WHY, not implementation details** - Title describes user-visible outcome or bug fixed - Use bullet points (dash prefix) only for multiple distinct changes - Keep lines under 72 characters - No emojis - Lead with problem solved or capability added, not technique used ### Good vs Bad Examples **BAD**: "feat: add pre-edit tagging for non-agentic AI providers" **GOOD**: "fix: OpenAI/LMStudio diffs now persist across app restarts" **BAD**: "refactor: extract helper function for validation" **GOOD**: "fix: prevent crash when user input is empty" ## Important - Do NOT run `git add` or `git commit` commands directly - Do NOT add "Co-Authored-By" or attribution lines - Do NOT add marketing taglines or links - Include ALL session-edited files that have changes - the user can deselect files in the widget if needed - The widget allows users to review, edit the message, and select/deselect files before confirming
© nimbalyst · MIT · nimbalyst/nimbalyst
Похожие скиллы
Все скиллы по теме «Git и GitHub» →Сначала — git-commit от других авторов.