atomic-code-changes

atomic-code-changes is a skill for Claude Code, Codex from Awish021/opencode. It costs 37 tokens per session (683 once invoked), scanned A, original, MIT.

A method for splitting software work into small, single-purpose changes that can each be checked, reviewed, and undone independently.

In plain words
What is it for?
Use it for features, bug fixes, refactors, migrations, tests, and related documentation work that could otherwise spread across the codebase.
Why use it?
It prevents unrelated fixes and cleanup from becoming tangled in one large change. Each step has a clear result and a way to verify it.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for features, bug fixes, refactors, migrations, tests, and related documentation work that could otherwise spread across the codebase.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/awish021/opencode/atomic-code-changes
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 Awish021/opencode --skill atomic-code-changes
Clone the repo
git clone --depth 1 https://github.com/Awish021/opencode

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-code-changes

README.md
[![agentmods](https://agentmods.dev/badge/skills/awish021/opencode/atomic-code-changes/github.svg)](https://agentmods.dev/skills/awish021/opencode/atomic-code-changes)
Your own site
<a href="https://agentmods.dev/skills/awish021/opencode/atomic-code-changes"><img src="https://agentmods.dev/badge/skills/awish021/opencode/atomic-code-changes/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-code-changes

Your own site · 80×15
<a href="https://agentmods.dev/skills/awish021/opencode/atomic-code-changes"><img src="https://agentmods.dev/badge/skills/awish021/opencode/atomic-code-changes.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 683 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.
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.00037 $0.00683
Opus 5.5 $0.00015 $0.00273
Sonnet 5.5 $0.00007 $0.00137
Haiku 4.5 $0.00004 $0.00068

Measured 1mo ago against content hash de1fcadcb736, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

atomic-code-changes 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 1mo 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.

skills/atomic-code-changes/SKILL.md · 83 lines

How it starts

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

Atomic Code Changes

Purpose

Keep each implementation step small enough to review, verify, and revert without dragging unrelated concerns along with it.

Core Principle

One change should have one reason to exist.

If the work needs multiple reasons, split it into multiple changes before editing.

Scope

  • Applies to implementation work: fixes, features, refactors, migrations, tests, and docs tied to a code change.
  • Use the smallest practical unit that still leaves the system coherent.
  • Stop at task boundaries; do not roll adjacent cleanups, formatting sweeps, or opportunistic fixes into the same change.
  • If a requested change is naturally broad, decompose it into ordered atomic steps first.

Atomic Change Definition

An atomic change is:

  • Single-purpose: solves one problem or advances one explicit step.
  • Coherent: leaves the codebase in a working, understandable state.
  • Verifiable: has a clear command, inspection, or manual check.
  • Reviewable: the diff can be explained in one short sentence.
  • Reversible: can be backed out without removing unrelated work.

Workflow

  1. Name the outcome. Write the next change as one sentence: "Make X do Y."
  2. Choose the verification. Decide the smallest test, build, lint, or inspection that proves it.
  3. Edit only for that outcome. Touch the minimum files needed; defer nearby improvements.
  4. Run the completion gate. Verify before starting another concern.
  5. Reassess scope. If the next edit has a different purpose, make it a separate step.

Completion Gates

Before moving on, confirm:

  • The change matches the named outcome.
  • Verification passed or the remaining gap is explicitly reported.
  • No unrelated formatting, cleanup, dependency, or behavior change slipped in.
  • Follow-up work is noted instead of half-implemented.

Scope Tripwires

Split the work when you notice:

  • "While I'm here..." edits.
  • A bug fix turning into a refactor.
  • A refactor requiring behavior changes.
  • Tests requiring new infrastructure.
  • More than one subsystem, API, or user-visible behavior changing at once.

Read the full file on GitHub · 83 lines

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. 1mo ago First seen · 83 lines · 37 tokens per session scan A de1fcadcb736

Subscribe to this mod's changes

atomic-code-changes is a skill published in the GitHub repository Awish021/opencode (11 stars, last pushed 4mo ago), licensed MIT. It adds 37 tokens to every session and 683 once invoked, about $0.0001 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-30.