Skip to content
Back to skills

Git Atomic Commit

ASecurity

Split a large diff into atomic, review-friendly commits. Use when asked to "split commits", "create atomic commits", "chunk this diff", or prepare clean commit history.

  • 3 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 11, 2026
code-qualityrailsgitapi

Works with

  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 11, 2026

npx -y skills add 0xharryriddle/codex-field-kit --skill git-atomic-commit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Git Atomic Commit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Git Atomic Commit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/0xharryriddle-git-atomic-commit/badge)](https://www.skillsdirectory.com/skills/0xharryriddle-git-atomic-commit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: git-atomic-commit
description: Split a large diff into atomic, review-friendly commits. Use when asked to "split commits", "create atomic commits", "chunk this diff", or prepare clean commit history.
---

# Git Atomic Commit

Always produce small commits where each commit has one logical purpose and passes checks.

## Required Guardrails

1. Run `git-run-checks` before the first commit and after each meaningful commit group.
2. Never mix refactor + behavior change + formatting in one commit unless unavoidable.
3. Keep commit ordering dependency-safe (prerequisites first).

## Atomic Slicing Process

1. Inspect changes with `git status --short` and `git diff`.
2. Draft commit slices by concern:
   - mechanical move/rename
   - API or schema changes
   - behavior changes
   - tests
   - docs/chore
3. Stage only one slice (`git add -p` or path-based staging).
4. Verify staged diff with `git diff --cached`.
5. Commit with a Conventional Commit message (delegate to `git-conventional-commit`).
6. Repeat until working tree is clean.

## Quality Checks per Slice

- Commit compiles and tests at least at smoke level.
- Message explains intent, not implementation trivia.
- Follow-up commits do not silently depend on unstaged files.

## Optional Helper Script

Use `./scripts/suggest-slices.sh` to get candidate commit groupings from file paths.

## Boris-Inspired Operating Rules

- Read first, code less, and edit only what is necessary.
- Keep context tight and decisions explicit.
- Prefer deterministic command sequences over ad-hoc experimentation.
- Surface assumptions and risks before finalizing each commit.

## Claude Mapping (Optional)

- Use parallel agents only for independent subproblems; merge results into one coherent commit plan.
- Keep each subagent assigned to one commit slice to avoid overlap.

Files in this skill

  • SKILL.md1.8 KB
  • agents/openai.yaml204 B
  • references/slicing-rules.md393 B
  • scripts/suggest-slices.sh738 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.