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 agentmods add skills/justinthomas2/agentrc/tddnpx skills add JustinThomas2/agentrc --skill tddgit clone --depth 1 https://github.com/JustinThomas2/agentrcWhat 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 | $0.00076 | $0.01596 |
| Opus 5 | $0.00038 | $0.00798 |
| Sonnet 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 2d 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.
- 2d 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 1mo ago), licensed MIT. It adds 76 tokens to every session and 1,596 once invoked, about $0.0004 per session on Opus 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
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…
agent-host-chat-contributions
Build and review cross-cutting agent-host chat behavior through lifecycle contributions. Use when adding turn lifecycle side effects, prompt or context injection, restored-history transformation, protocol-action observation, or when reviewing changes that add code to AgentSideEffects or AgentService.
auto-perf-optimize
Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.