commit
БесплатноБез исполняемых скриптовНе проверенSmart commit, push, and npm publish with auto-splitting across domains. Creates atomic commits. Use when asked to "commit", "push changes", "publish", "save…
от howells★ 25 звёзд на GitHubОб этом скилле
rules/git.md— commit-message, husky, and lint-staged conventions this skill must respect. Its Hooks section describes repo setup (audit/launch territory), not a commit-time obligation — an unsatisfied MUST there is a note, not a task.references/diff-review-checklist.md— apply during the pre-commit review step (step 1).
Commit Changes
Commit, push, and publish changes, intelligently splitting into separate commits when changes span multiple domains.
Usage:
/arc:commit- Auto-analyze and commit (may create multiple commits)/arc:commit push- Commit, push, then publish changed npm packages if present/arc:commit publish- Alias for the push-and-publish path
On the push/publish path, /arc:commit publishes a package whose version is already committed and not yet on the registry. /arc:release owns bumping versions, changelogs, and coordinated multi-package releases. Route version bumps there instead of doing them here.
The canonical order across both skills is commit → push → publish → tag.
Read the user's invocation: no argument means commit only; "push" or "publish" both mean the push-and-publish path.
Inspect Current Git State
Run these commands first and read the output before deciding on a commit strategy:
git status --porcelain 2>/dev/null || echo "(no changes)"
git diff --stat 2>/dev/null | head -20 || echo "(no diff)"
git log --oneline -5 2>/dev/null || echo "(no commits)" # style reference
git status --porcelain is the authoritative file list (the stat is a preview, and it truncates); read the contents of untracked files before judging them stray.
If there are no changes, tell the user and stop.
Instructions
If no user response is available at any decision point, take the conservative path — exclude rather than commit, stop rather than push or publish — and report what needs a human.
1. Analyze Changes
Review the git state above. If you need more detail on what changed, inspect the working tree — e.g. git diff for unstaged changes, git diff --staged for staged changes, or git diff <path> to focus on a file. Apply references/diff-review-checklist.md as you read the diff so substantive defects (race conditions, trust-boundary gaps, data-safety and side-effect mistakes, stale references, test gaps, dead code, performance regressions) are caught before they land in a commit. Alongside it, scan the diff yourself for debug logs, secrets or credentials, and stray files that should not be committed. A hit blocks those lines from landing: exclude the file (or the hunk, via git add -p) from every commit, leave the working-tree content untouched, and report each hit. Never delete user work to make a commit clean. Never commit a suspected secret; if one may already be in history, say so — committed secrets need rotation, not just removal.
2. Determine Commit Strategy
Single commit if:
- All changes are in the same domain/area, OR
- Changes are tightly coupled (e.g., feature + its tests)
Multiple commits if changes span multiple unrelated domains:
- Different packages (e.g.,
packages/ui,packages/api) - Different apps (e.g.,
apps/web,apps/admin) - Config vs source changes
- Unrelated features or fixes
3. Group Files by Domain
Common groupings:
packages/<name>/**- Package-specific changesapps/<name>/**- App-specific changesapp/**- Route or feature changes, grouped by route/featurecomponents/**- Shared UI changeslib/**/utils/**- Shared logic and helpers- Root config files (
.eslintrc,turbo.json, etc.) - Config *.stories.tsxwith their component - Same commit as component*.test.tswith their source - Same commit as source
In a flat repo, group by top-level directory unless changes are coupled across them.
4. Create Commits
For each logical group:
Stage only files for that group, including untracked files that belong to the group:
git add [files...]Create commit with conventional message format:
git commit -m "$(cat <<'EOF' type(scope): description EOF )"
Commit types:
feat- New featurefix- Bug fixrefactor- Code refactoringchore- Maintenance, deps, configdocs- Documentationtest- Testsstyle- Formatting, no code changeperf- Performance improvementci- CI/CD changes
Commit message rules:
- Use imperative mood: "add" not "added", "fix" not "fixed"
- First line under 72 characters
- Each commit should be atomic (single purpose)
- If you need "and" in the message, consider splitting the co
Установить commit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл commit?
Smart commit, push, and npm publish with auto-splitting across domains. Creates atomic commits. Use when asked to "commit", "push changes", "publish", "save my work", or after completing implementation work. Automatically groups changes into logical commits.
Как установить скилл commit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл commit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic