atomic-commit
Skill15 starsChanged 5 months agoMITView on GitHub
Atomic git workflow - validates, commits, pushes, creates PR/MR, and verifies CI with zero-warnings policy. Orchestrates complete code submission as state machine with rollback on failure. Supports GitHub (gh) and GitLab (glab). Triggers: "commit changes", "push and create PR", "submit code", "atomic commit".
- 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
- sowahq/claude-code-stacktheir own version, first seen Oct 15, 2026
- TitusKirch/skillstheir own version, first seen Oct 13, 2026
- Leshm0321/skillstheir own version, first seen Aug 8, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- dimastriann/odoo-erp-mcp★ 2same name
- TitusKirch/skills★ 2same name
- Leshm0321/skills★ 1same name
- sowahq/claude-code-stack★ 0same 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 repository29 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms-full.txtllms.txt
- llms.txtllms.txt
- anti-ai-slopSkill
- architecture-diagramSkill
- build-rustSkill
- codacySkill
- crates-io-name-checkSkill
- dora-reportSkill
- goap-agentSkill
- harnessSkill
- issue-triageSkill
- lint-rustSkill
- metrics-reporterSkill
- privacy-firstSkill
- release-rustSkill
- reviewing-pull-requestsSkill
- secret-lintSkill
- self-fix-loopSkill
- skill-creatorSkill
- skill-evaluatorSkill
- stacked-prsSkill
- task-decompositionSkill
- test-rustSkill
- tokio-performanceSkill
- triz-analysisSkill
- triz-solverSkill
- verify-actionsSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
2
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 29
COMMIT - Atomic commit creation (conventional format)
- Distinctive: line 33
VERIFY - Wait for CI checks
“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 Skill
When to Use
Atomic workflow: validate → commit → push → PR/MR → verify. All changes committed as single unit with zero warnings policy.
For large features (3+ distinct concerns), consider the stacked-prs skill instead.
Overview
Orchestrates complete code submission as state machine with 7 phases:
- PRE_COMMIT - Validation (quality gate, secrets scan)
- COMMIT - Atomic commit creation (conventional format)
- PRE_PUSH - Remote sync check
- PUSH - Upload to origin
- PR_CREATE - Open pull request (GitHub) or merge request (GitLab)
- VERIFY - Wait for CI checks
- REPORT - Success summary
Zero warnings policy: Any warning fails the workflow and triggers rollback.
Platform Detection
Auto-detect from git remote:
REMOTE=$(git remote get-url origin)
if echo "$REMOTE" | grep -qi "github"; then
PLATFORM="github"; CLI="gh"
elif echo "$REMOTE" | grep -qi "gitlab"; then
PLATFORM="gitlab"; CLI="glab"
fiCLI Command Mapping
| Action | GitHub (gh) | GitLab (glab) |
| Create PR/MR | gh pr create --title "..." | glab mr create --title "..." |
| Check CI | gh pr checks | glab ci status |
| Merge | gh pr merge 123 --squash | glab mr merge 123 --squash |
Arguments
| Argument | Description | Default |
--message, -m | Commit message (auto-detect if omitted) | auto |
--platform github|gitlab | Force platform | auto-detect |
--dry-run | Validate only, no commits/pushes | false |
--skip-ci | Skip CI verification | false |
--timeout | CI wait timeout in seconds | 1800 |
--base-branch | Target branch for PR/MR | main |
State Machine
[Start] → PRE_COMMIT → COMMIT → PRE_PUSH → PUSH → PR_CREATE → VERIFY → REPORT → [Success]
↓ ↓ ↓ ↓ ↓ ↓
[Fail] Rollback Rollback Rollback Rollback RollbackQuality Gates
| Phase | Check | Failure Action |
| PRE_COMMIT | ./scripts/quality-gates.sh zero warnings | Abort |
| PRE_COMMIT | No secrets in diff | Abort |
| COMMIT | Valid conventional format | Rollback |
| PRE_PUSH | Remote accessible | Rollback |
| PUSH | SHA verification | Rollback |
| PR_CREATE | gh/glab CLI authenticated | Rollback |
| VERIFY | All CI checks green | Rollback |
Rust-Specific Checks
Before committing, verify:
cargo fmt --checkpassescargo clippy --workspace --all-targets --all-features -- -D warningspassescargo nextest run --workspacepasses- No
unsafeblocks without// SAFETY:comments
Commit Format
type(scope): Brief description (50 chars max)
- Why (not what) - user perspective
- Reference issues: Fixes #123Types: feat, fix, docs, style, refactor, perf, test, ci, chore
Rationalizations
| Rationalization | Reality |
| "I'll skip the quality gate, it's just a small change" | Small changes cause the majority of production incidents. |
| "Rollback is too complicated, I'll just fix forward" | Fix-forward creates tangled history and makes it harder to isolate what broke. |
| "I don't need to verify CI, the changes are cosmetic" | Cosmetic changes can still break builds, linters, or type checks. |
Red Flags
- Bypassing the quality gate for "trivial" changes
- Committing without running validation checks
- Disabling rollback on failure
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.

