atomic-commit

atomic-commit is a skill for Claude Code, Codex from d-oit/rust-2026-template. It costs 76 tokens per session (1,032 once invoked), scanned A, original, MIT.

A Git workflow that validates changes, creates one commit, pushes it, opens a pull or merge request, and checks CI. A pull or merge request is a proposed code change submitted for review.

In plain words
What is it for?
Use it to submit completed changes to GitHub or GitLab, create a PR or MR, and verify its automated checks.
Why use it?
It puts the submission steps in one controlled sequence and stops when checks produce warnings or errors.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it to submit completed changes to GitHub or GitLab, create a PR or MR, and verify its automated checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/d-oit/rust-2026-template/atomic-commit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add d-oit/rust-2026-template --skill atomic-commit
Clone the repo
git clone --depth 1 https://github.com/d-oit/rust-2026-template

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for atomic-commit

README.md
[![agentmods](https://agentmods.dev/badge/skills/d-oit/rust-2026-template/atomic-commit/github.svg)](https://agentmods.dev/skills/d-oit/rust-2026-template/atomic-commit)
Your own site
<a href="https://agentmods.dev/skills/d-oit/rust-2026-template/atomic-commit"><img src="https://agentmods.dev/badge/skills/d-oit/rust-2026-template/atomic-commit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for atomic-commit

Your own site · 80×15
<a href="https://agentmods.dev/skills/d-oit/rust-2026-template/atomic-commit"><img src="https://agentmods.dev/badge/skills/d-oit/rust-2026-template/atomic-commit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,032 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00076 $0.01032
Opus 5.5 $0.00030 $0.00413
Sonnet 5.5 $0.00015 $0.00206
Haiku 4.5 $0.00008 $0.00103

Measured 20d ago against content hash 89397d870f47, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

atomic-commit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 20d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/atomic-commit/SKILL.md · 122 lines

How it starts

The opening of the file, as written. The whole thing — 122 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

  1. PRE_COMMIT - Validation (quality gate, secrets scan)
  2. COMMIT - Atomic commit creation (conventional format)
  3. PRE_PUSH - Remote sync check
  4. PUSH - Upload to origin
  5. PR_CREATE - Open pull request (GitHub) or merge request (GitLab)
  6. VERIFY - Wait for CI checks
  7. 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"
fi

CLI 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  Rollback

Quality Gates

Read the full file on GitHub · 122 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 20d ago Changed · -1 lines 89397d870f47
  2. 29d ago Changed 2c345288119e
  3. 1mo ago First seen · 123 lines · 76 tokens per session scan A 93263d48e15d

Subscribe to this mod's changes

atomic-commit is a skill published in the GitHub repository d-oit/rust-2026-template (14 stars, last pushed today), licensed MIT. It adds 76 tokens to every session and 1,032 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.