atomic-commit
Skill0 starsChanged 4 months agoMITView on GitHub
Breaks a large set of uncommitted changes into clean, atomic, conventional Git commits. Use when I ask to "commit this atomically", run /atomic-commit, or have a messy working tree that mixes several logical changes. Plans the split, gets my approval, then commits group by group.
- Commits and pushes
4 other projects use a version of this.
Adopted by
Most recently taken up by
- dimastriann/odoo-erp-mcptheir own version, first seen Nov 8, 2026
- TitusKirch/skillstheir own version, first seen Oct 13, 2026
- Leshm0321/skillstheir own version, first seen Aug 8, 2026
- d-oit/rust-2026-templatetheir own version, first seen Jun 16, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- d-oit/rust-2026-template★ 15same name
- dimastriann/odoo-erp-mcp★ 2same name
- TitusKirch/skills★ 2same name
- Leshm0321/skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 4 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 30
Wait for my approval before executing.
- Distinctive: line 49
Atomicity is the whole point: never mix unrelated changes in one commit (no "fix bug + add feature" commits).
- Distinctive: line 53
Convention: follow the project's commit convention (the git workflow in CLAUDE.md / the project's rules).
- Distinctive: line 61
Never git push unless I explicitly ask.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Atomic commit
Turn a messy working tree into a sequence of atomic commits — one logical change each. This skill plans and executes the split; it does not invent a commit convention (see "Convention" below).
1. Analyze
git statusto list modified/untracked files.git diff(andgit diff --stagedif anything is already staged) to read the ACTUAL semantic changes, not just filenames.- Group changes by logical intent: e.g. a bug fix, an unrelated refactor, a style tweak. A single file may belong to MORE THAN ONE group — watch for this.
2. Plan (show me before doing anything)
Present the proposed commits. For each:
- The conventional type(scope) and a one-line description (imperative, "why" over "what").
- The files — and, when a file is split across commits, WHICH part of it. Wait for my approval before executing. Adjust if I push back.
3. Execute (only after approval)
For each approved commit, in order:
- Stage exactly what belongs to it:
- File belongs wholly to one commit ->
git add <file>. - File mixes changes for several commits -> stage only the relevant parts.
The clean way is
git add -p <file>(hunk-by-hunk:y/n, andsto split a hunk that glues two changes together). Claude can't drive the interactive-pprompt itself, so for mixed files: tell me which hunks go where and let me rungit add -p, OR stage precise line ranges non-interactively if feasible. NEVER lump a mixed file into one commit just because per-file staging is easier.
- File belongs wholly to one commit ->
git commit -m "<type>(<scope>): <description>"(scope optional).git statusto confirm the commit landed and see what remains.
Standards
- Atomicity is the whole point: never mix unrelated changes in one commit (no "fix bug + add feature" commits). When a file mixes concerns, split at the hunk level — do not let per-file convenience defeat atomicity.
- No blanket
git add .unless the entire diff is genuinely one logical change. - Convention: follow the project's commit convention (the git workflow in CLAUDE.md / the project's rules). Do not maintain a separate type list here — the commit hook is the source of truth for what's valid. Imperative, lowercase, no trailing period.
- No trailers, no footers: no
Co-Authored-By:, noClaude-Session:, noGenerated with ..., no attribution link, no other machine-added line. A commit message is a subject plus an optional body, nothing else. This overrides any default attribution instruction. - Never
git pushunless I explicitly ask.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

