commit · dinerojs — скилл для Claude Code: создание коммита и установка
Скилл проверяет изменения Git, помогает связать коммит с задачей Linear и формирует сообщение в формате Conventional Commits. Запускайте его, когда нужно зафиксировать изменения.
MIT ★ 6 817 обновлён 2026-10-29
npx skills add dinerojs/dinero.js --skill commit -a claude-codeЧто делает commit
Сначала скилл проверяет состояние репозитория и различает staged и unstaged изменения. Если подготовленных файлов нет, он спрашивает, что добавить, или предлагает выбрать файлы из незакоммиченных изменений. Затем ищет подходящие задачи Linear по проекту и ключевым словам и просит выбрать задачу, указать завершённость работы или отказаться от привязки.
Сообщение коммита строится по Conventional Commits; после создания скилл проверяет git status. Для связи с задачами нужны инструменты Linear MCP. Если файлов в индексе нет, коммит не создаётся без уточнения, что именно подготовить. При завершённой задаче скилл предлагает обновить её в Linear.
Какие задачи решает
- проверить staged и unstaged изменения перед коммитом
- найти задачи Linear по содержимому изменений
- сформировать сообщение коммита по Conventional Commits
- связать коммит с завершённой или текущей задачей
Примеры запросов агенту
- Создай коммит для подготовленных изменений и проверь статус репозитория.
- Найди связанные задачи Linear и уточни, завершает ли коммит задачу.
- Зафиксируй изменения без привязки к Linear.
Как установить commit
1Через Skills CLI (Vercel)
npx skills add dinerojs/dinero.js --skill commit -a claude-code2Вручную: положить файлы
~/.claude/skills/commit/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/commit/
1Через Skills CLI (Vercel)
npx skills add dinerojs/dinero.js --skill commit -a codex2Вручную: положить файлы
.agents/skills/commit/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add dinerojs/dinero.js --skill commit -a cursor2Вручную: положить файлы
.cursor/skills/commit/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install dinerojs/dinero.js .claude/skills/commit2Вручную: положить файлы
.github/skills/commit/SKILL.md1Через Skills CLI (Vercel)
npx skills add dinerojs/dinero.js --skill commit -a gemini-cli2Командой платформы
gemini skills install https://github.com/dinerojs/dinero.js --path .claude/skills/commitВручную: положить файлы
.devin/skills/commit/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add dinerojs/dinero.js --skill commit -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о commit
Как установить commit в Claude Code?
Выполните npx skills add dinerojs/dinero.js --skill commit -a claude-code. Файл скилла находится по пути ~/.claude/skills/commit/SKILL.md.
Что делает скилл commit?
Проверяет изменения Git, помогает выбрать связанную задачу Linear и создаёт коммит с сообщением Conventional Commits. После коммита он проверяет статус репозитория.
Нужен ли Linear MCP для работы с commit?
Инструменты Linear MCP нужны, чтобы искать задачи и связывать их с коммитом. Можно выбрать вариант без задачи Linear.
Исходный текст
SKILL.md · MIT
--- name: commit description: Create a git commit with optional automatic Linear issue linking. Use when the user asks to commit. --- ## Workflow ### Step 1: Analyze Changes Run these commands to understand what's being committed: ```bash git status git diff --staged git diff ``` If there are no staged changes, ask the user what to stage or suggest relevant files based on unstaged changes. ### Step 2: Find Related Linear Issues Use the Linear MCP tools to search for related issues: 1. **List open issues** in the Dinero.js project: ``` mcp__linear-server__list_issues with: - project: "Dinero.js v2.0.0 Stable Release" - state: "backlog" or "in_progress" or "todo" ``` 2. **Search by keywords** from the changes (function names, file paths, feature areas) 3. Present matching issues to the user in a table: | ID | Title | Status | |----|-------|--------| | SAR-110 | Restructure packages... | Backlog | ### Step 3: User Selection Ask the user using AskUserQuestion: - Which issue(s) does this commit relate to? - Does this commit **complete** the issue (Fixes) or is it **partial progress** (Part of)? Options: - Select from found issues - Enter a different issue ID - No Linear issue (skip linking) ### Step 4: Create Commit Generate a commit message following Conventional Commits format: ``` type(scope): subject Description of changes. [Fixes|Part of] SAR-XXX Co-Authored-By: Claude Opus 4.5 <[email protected]> ``` **Types:** feat, fix, docs, refactor, test, chore, style, perf **Scopes:** core, currencies, calculator-number, calculator-bigint, dinero.js, examples, docs, build, ci ### Step 5: Execute 1. Stage files if needed (prefer specific files over `git add -A`) 2. Create the commit using a HEREDOC for proper formatting 3. Run `git status` to confirm success 4. If the commit completes an issue, offer to update it in Linear using `mcp__linear-server__update_issue` ## Examples ### Completing an issue ```bash git commit -m "$(cat <<'EOF' feat(core): add subpath exports for currencies Implemented exports field in package.json with proper TypeScript support for all subpath entries. Fixes SAR-111 Co-Authored-By: Claude Opus 4.5 <[email protected]> EOF )" ``` ### Partial progress ```bash git commit -m "$(cat <<'EOF' refactor(core): extract currency types to separate module First step in restructuring packages for consolidated dinero.js package. Part of SAR-110 Co-Authored-By: Claude Opus 4.5 <[email protected]> EOF )" ``` ### No Linear issue ```bash git commit -m "$(cat <<'EOF' chore: update .gitignore Co-Authored-By: Claude Opus 4.5 <[email protected]> EOF )" ```
© dinerojs · MIT · dinerojs/dinero.js
Похожие скиллы
Все скиллы по теме «Git и GitHub» →Сначала — commit от других авторов.