Command Palette

Search for a command to run...

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

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от howells★ 25 звёзд на GitHub

Об этом скилле

Requires the full Arc bundle. Arc-owned paths (`agents/`, `references/`, `disciplines/`, `templates/`, `scripts/`, `rules/`, `skills/`) resolve from the plugin root — the directory containing `agents/` and `skills/`. Everything else is the user's repository. **Load before committing:**
  • 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 changes
  • apps/<name>/** - App-specific changes
  • app/** - Route or feature changes, grouped by route/feature
  • components/** - Shared UI changes
  • lib/** / utils/** - Shared logic and helpers
  • Root config files (.eslintrc, turbo.json, etc.) - Config
  • *.stories.tsx with their component - Same commit as component
  • *.test.ts with 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:

  1. Stage only files for that group, including untracked files that belong to the group:

    git add [files...]
    
  2. Create commit with conventional message format:

    git commit -m "$(cat <<'EOF'
    type(scope): description
    EOF
    )"
    

Commit types:

  • feat - New feature
  • fix - Bug fix
  • refactor - Code refactoring
  • chore - Maintenance, deps, config
  • docs - Documentation
  • test - Tests
  • style - Formatting, no code change
  • perf - Performance improvement
  • ci - 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
Полный SKILL.md на GitHub

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

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

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

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

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

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

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

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

agents/openai.yaml

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), без исполняемых скриптов.

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

Сравнить commit с