/git:atomic-commitsfrom git
Use this skill to create safe, focused, atomic Git commits with strict Conventional Commits messages. Proactively use only after a completed substantial work unit on a feature branch when the diff contains coherent commit-sized changes; otherwise wait for explicit user request. It partitions large diffs by intent, stages only specific files or hunks, verifies each unit, and never touches remote history.
Ships in git. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Create one or more focused Git commits that are independently reviewable, revertible, and cherry-pickable. Optimize commit messages for future AI/code agents: concise header, useful body, no diff duplication.
Proactively invoke this skill only when all are true:
Do not auto-trigger for exploratory edits, partial work, unresolved failures, review checkpoints, dirty generated output, or ambiguous changes. In those cases, wait for the user.
main, master, develop, release/*, or any branch project docs mark protected unless the user explicitly overrides.git add ., git add -A, git commit -a, or --no-verify..env*, credentials, dependency directories, generated build artifacts, coverage, caches, logs, or large binaries unless explicitly requested.scripts/git-safety-scan.py is read-only. It reports branch safety, upstream, status, conflicts, untracked files, risky paths, diff stats, and changed-file clusters.Resolve the skill directory from the active SKILL.md, then run:
python3 "$SKILL_DIR/scripts/git-safety-scan.py" --repo "$REPO" --format markdown
Use --format json when planning with structured data.
Run preflight
git status --porcelain=v1 -uall, current branch, upstream status, and untracked files.Analyze the full diff
git diff --stat, git diff --name-status, and relevant file diffs.Plan atomic units
git add -p -- <path> or equivalent.references/atomic-planning.md if the diff is large or mixed.Verify before each commit
Stage safely
git add -- path/to/file.git add -p -- path/to/file.git diff --cached --stat and git diff --cached.Commit
git diff --cached contains exactly one logical unit.type(scope): imperative summary
feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert.! only for breaking changes and include a BREAKING CHANGE: footer.Continue
git status --porcelain=v1 -uall and re-check remaining diff.Use assets/commit-message-template.md when a body is useful. Keep bodies factual and agent-oriented:
Do not include noisy implementation dumps that duplicate the diff.
Report only:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub liljamesjohn-archive/claude-code-skills --plugin git