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 JustinThomas2/agentrc --skill tddgit clone --depth 1 https://github.com/JustinThomas2/agentrcWrote 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/justinthomas2/agentrc/tdd)<a href="https://agentmods.dev/skills/justinthomas2/agentrc/tdd"><img src="https://agentmods.dev/badge/skills/justinthomas2/agentrc/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/justinthomas2/agentrc/tdd"><img src="https://agentmods.dev/badge/skills/justinthomas2/agentrc/tdd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00076 | $0.01596 |
| Opus 5.5 | $0.00030 | $0.00638 |
| Sonnet 5.5 | $0.00015 | $0.00319 |
| Haiku 4.5 | $0.00008 | $0.00160 |
Grade A, and why
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 2mo 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 — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Tests are read far more often than they are written, and a bad test is worse
than no test: it fails when the code is fine, passes when the code is broken,
or freezes a design decision nobody meant to commit to. These rules describe
what good looks like. They are language-agnostic; worked examples in
TypeScript live in references/examples.md.
What makes a good test
- Tests behavior, not implementation. Assert on what a caller can observe: return values, thrown errors, messages sent across a boundary, persisted state. Never on private fields, internal call counts, or the order of internal steps. A correct refactor must not break a good test.
- Fails for one reason you care about. A test can rarely have only one technical cause of failure, and chasing that is a dead end. The real rule is one behavior or requirement per test: when it goes red, the name alone should tell you which requirement broke.
- Deterministic. Same input, same result, on any machine, in any order, at any time of day. No real clocks, no real network, no reliance on test execution order or on state another test left behind.
- Readable as documentation. The test name states the requirement in domain language, not mechanics. Someone who has never seen the implementation should learn what it guarantees by reading the test.
- Structured as Arrange, Act, Assert by default. Set up the state, perform the one action under test, then assert on the outcome, with the three phases visually distinct (a blank line between them is enough). Default, not law: parameterized tests, property-based tests, and some integration tests do not map onto separated phases, and forcing the shape onto them makes them worse. Depart from AAA when the test genuinely does not fit it, not to save a few lines.
Anti-patterns
- Testing implementation details. Asserting that a helper was called, or reaching into private state. This is the most common way tests become a tax on refactoring instead of a safety net for it.
- Snapshot-everything. Broad snapshots assert on everything and therefore specify nothing. Every unrelated change produces a diff, and the habitual fix is to re-record the snapshot, which is not review. Snapshots are for genuinely opaque large output, and even then, prefer targeted assertions on the parts that carry meaning.
- Shared mutable fixtures. State built once and mutated by several tests couples them, makes failures order-dependent, and makes any single test unreadable in isolation. Construct fresh state per test.
- Tests that mirror the code. One test file per source file, one test per method, is a structure that follows the implementation rather than the requirements. Organize around behaviors instead, so that reshaping the code does not mean rewriting the suite.
- Tautological assertions. Computing the expected value with the same logic the code uses, or asserting a mock returns what it was configured to return. The test passes by construction and verifies nothing.
- Interleaved act and assert. Alternating actions and checks inside one test hides which action a failure belongs to. If several actions each need assertions, that is several tests, or one action whose observable outcome you assert once.
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.
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.
- 2mo ago First seen · 133 lines · 76 tokens per session scan A b3f8ca9622a7
tdd is a skill published in the GitHub repository JustinThomas2/agentrc (2 stars, last pushed 3mo ago), licensed MIT. It adds 76 tokens to every session and 1,596 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.
Other skills, from other repositories
engram-testing-coverage
TDD and coverage standards for Engram. Trigger: When implementing behavior changes in any package.
principle-test-behavior-not-implementation
Apply when you write, change, or keep a test. Assert what the code's users can observe, so that the test fails when that behavior breaks and keeps passing when only the internals change.
conductor-implement
Execute tasks from a track's implementation plan following TDD workflow.
tdd
This skill should be used when the user wants to implement features or fix bugs using test-driven development. Enforces the RED-GREEN-REFACTOR cycle with vertical slicing, context isolation between test writing and implementation, human checkpoints, and auto-test feedback loops. Uses multi-agent orchestration with the…
mobiai-mobile-tdd
You MUST use this before writing any implementation code for a mobile feature, bug fix, refactor, or behavior change. Tests come before implementation — no exceptions.
iterative-development
TDD iteration loops using Claude Code Stop hooks - runs tests after each response, feeds failures back automatically.