atomic-plan

atomic-plan is a command for Claude Code from damusix/atomic-claude. It costs 54 tokens per session (5,310 once invoked), scanned A, original, MIT.

A planning command that turns a coding task into a short implementation contract, and for larger work also creates a design document. It decides whether the task needs detailed planning or only a small inline outline.

In plain words
What is it for?
Use it to plan non-trivial features, document design choices, define checkpoints, and create Mermaid diagrams showing how parts fit together.
Why use it?
It prevents important decisions and business rules from being discovered halfway through coding. The resulting documents give people a shared plan to review before implementation.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: mentions subagents.

Good fit Use it to plan non-trivial features, document design choices, define checkpoints, and create Mermaid diagrams showing how parts fit together.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/damusix/atomic-claude/atomic-plan
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.

Clone the repo
git clone --depth 1 https://github.com/damusix/atomic-claude

Made for: Claude Code.

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-plan

README.md
[![agentmods](https://agentmods.dev/badge/commands/damusix/atomic-claude/atomic-plan/github.svg)](https://agentmods.dev/commands/damusix/atomic-claude/atomic-plan)
Your own site
<a href="https://agentmods.dev/commands/damusix/atomic-claude/atomic-plan"><img src="https://agentmods.dev/badge/commands/damusix/atomic-claude/atomic-plan/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-plan

Your own site · 80×15
<a href="https://agentmods.dev/commands/damusix/atomic-claude/atomic-plan"><img src="https://agentmods.dev/badge/commands/damusix/atomic-claude/atomic-plan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,310 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.00054 $0.05310
Opus 5.5 $0.00022 $0.02124
Sonnet 5.5 $0.00011 $0.01062
Haiku 4.5 $0.00005 $0.00531

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

Security

Grade A, and why

atomic-plan 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 14d 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.

context/commands/atomic-plan.md · 290 lines

How it starts

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

Plan before coding. Output is a spec — a checkpoint-table contract, not prose. Lives in docs/ because it's human-facing — <state-root>/.scratchpad/ is for LLM working memory, not user-invoked plans (<state-root> is the state_root field of atomic where --json, .atomic by default).

/atomic-plan is one command with one internal phase boundary. Lightweight tasks get an inline spec. Non-trivial tasks get a full design + spec-authoring loop with subagents. The LLM gauges triviality; the user confirms when uncertain.

Phases

Triviality picks the path: a trivial task gets an inline spec, a non-trivial one the full design and spec loop, and a borderline one whichever the user picks.

flowchart TD
    K{"Triviality?"} -->|trivial| CI["Clarify,<br/>inline spec"]
    K -->|borderline| U{"User picks?"}
    U -->|inline| CI
    U -->|abort| X["Stop"]
    U -->|full| F["Clarify, ground,<br/>diverge"]
    K -->|non-trivial| F
    F --> D["Write design"]
    D --> L["Spec loop"]
    CI --> H["Handoff"]
    L --> H
  • Triviality?: the tier table under Classify triviality.
  • User picks?: the borderline confirmation block.
  • Write design: an optional /pressure-test fits between design and spec loop.

Classify triviality

Gauge the task against this tier table. High confidence required for trivial — any uncertain signal pushes to borderline.

Tier Signals Flow
Trivial One cohesive slice; ≤3 files; no architectural choice; no new package/module; no cross-cutting concern; no public-contract change; one obvious approach; no business-logic shape to think through. Inline spec only. No design doc. No subagent loop. May also offer: "small enough to skip planning — implement directly?"
Borderline 4-8 files; one subsystem but unfamiliar code; small architectural or business-rule choice; partial unknowns; one viable approach with caveats. Ask the user. Surface the signals + your lean; let them pick full / inline / abort.
Non-trivial (default) Cross-system; new package/module; multiple viable approaches; touches existing contracts; phrased as "design X" / "rebuild Y" / "refactor Z"; >8 files; doesn't fit one cohesion slice; non-obvious business rules or feature shape to work out. Full flow: Ground → Diverge → Design → optional pressure-test → Spec loop.

Read the full file on GitHub · 290 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. 14d ago Changed · +26 lines 0a09307206aa
  2. 3mo ago First seen · 264 lines · 54 tokens per session scan A baa36aea9113

Subscribe to this mod's changes

atomic-plan is a command published in the GitHub repository damusix/atomic-claude (117 stars, last pushed yesterday), licensed MIT. It adds 54 tokens to every session and 5,310 once invoked, about $0.0002 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.

Related

atomic-plan compared with commands from other repositories

atomic-plan next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
atomic-plandamusix/atomic-claudeCommand117yesterdayMITA54Claude Code
agentloop-audit-dashboardalibaba/loongsuite-pilotCommand274todayApache-2.0A21Claude Code
agentloop-audit-queryalibaba/loongsuite-pilotCommand274todayApache-2.0A20Claude Code
add-agentivan-magda/claude-code-plugin-templateCommand725mo agoMITA12Claude Code
add-commandivan-magda/claude-code-plugin-templateCommand725mo agoMITA9Claude Code
add-skillivan-magda/claude-code-plugin-templateCommand725mo agoMITA11Claude Code
initivan-magda/claude-code-plugin-templateCommand725mo agoMITA13Claude Code