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.
npx skills add damusix/atomic-claude --skill atomic-tddgit clone --depth 1 https://github.com/damusix/atomic-claudeWrote 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.
[](https://agentmods.dev/skills/damusix/atomic-claude/atomic-tdd)<a href="https://agentmods.dev/skills/damusix/atomic-claude/atomic-tdd"><img src="https://agentmods.dev/badge/skills/damusix/atomic-claude/atomic-tdd/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.
<a href="https://agentmods.dev/skills/damusix/atomic-claude/atomic-tdd"><img src="https://agentmods.dev/badge/skills/damusix/atomic-claude/atomic-tdd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00142 | $0.01141 |
| Opus 5.5 | $0.00057 | $0.00456 |
| Sonnet 5.5 | $0.00028 | $0.00228 |
| Haiku 4.5 | $0.00014 | $0.00114 |
Grade A, and why
atomic-tdd 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 17d 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.
How it starts
The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Test first. Watch it fail. Write minimal code. Watch it pass. Refactor green.
Auto-trigger on:
- "let's implement X", "add feature Y", "build out Z"
- "fix bug", "patch the regression"
- "write tests for", "write a test for"
- "make the code do X"
- Any pre-implementation language for behavior changes
Explicit: /atomic-tdd.
The iron law
Write the failing test before production code. Why: tests written after implementation mirror what the code does, not what it should do. Tests-first are specifications; tests-after are tautologies.
Wrote code before a failing test? Delete it. Start over. Why: keeping existing code as reference biases the test toward the implementation rather than the intent.
The cycle
A behavior reaches Green only after its test fails for the right reason in Red, and Refactor only after every test passes.
stateDiagram-v2
[*] --> Red
Red --> Red: passes or wrong failure
Red --> Green: fails for the right reason
Green --> Refactor: all tests green
Refactor --> Red: next behavior
Refactor --> [*]: no behavior left
- Red: write one minimal failing test and run it. The right reason is the feature missing, not a typo. A test that passes immediately is wrong: fix the test.
- Green: write the smallest code that makes the test pass, then run all tests. No "while I'm here" extras.
- Refactor: clean up and re-run. The suite must stay green, with no behavior change.
Required for
- New features — any new behavior
- Bug fixes — test reproduces the bug first, then fix
- Refactoring — existing tests must stay green; if none exist, add one first
- Behavior changes
Skip rules
TDD doesn't apply to these cases. Each skip requires an explicit skipped because: <reason> note in the response.
| Skip case | Example |
|---|---|
| Pure docs / Markdown / comment-only edits | Updating README, adding a JSDoc |
Pure config / .env / non-executable file edits |
Changing a JSON config, updating an env var |
| Generated code | Regenerated from a schema or spec, not hand-written |
| Throwaway prototypes the user explicitly flagged as throwaway | "Just spike this, we'll throw it away" |
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.
- 17d ago Changed · +8 lines 563c49be7c1b
- 3mo ago First seen · 103 lines · 142 tokens per session scan A 8b5d6c0ef995
atomic-tdd is a skill published in the GitHub repository damusix/atomic-claude (118 stars, last pushed yesterday), licensed MIT. It adds 142 tokens to every session and 1,141 once invoked, about $0.0006 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.
atomic-tdd compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| atomic-tdddamusix/atomic-claude | Skill | 118 | yesterday | MIT | A | 142 | Claude Code, Codex |
| implementopen-octo/octo-agent | Skill | 163 | yesterday | MIT | A | 97 | Claude Code, Codex |
| agentloop-audit-queryalibaba/loongsuite-pilot | Skill | 275 | today | Apache-2.0 | A | 66 | Claude Code, Codex |
| plan-pipeline-executeFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.6k | 3d ago | CC-BY-SA-4.0 | A | 54 | Claude Code |
| tdd-workflowFlorianBruniaux/claude-code-ultimate-guide | Skill | 7.6k | 3d ago | CC-BY-SA-4.0 | A | 44 | Claude Code |
| agent-test-generatortravisjneuman/.claude | Skill | 116 | today | MIT | A | 36 | Claude Code |
| ralphctl-test-driven-developmentlukas-grigis/ralphctl | Skill | 24 | 3d ago | MIT | A | 89 | Claude Code, Codex |