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.
git clone --depth 1 https://github.com/ivan-szz/spec-writer-skillWrote 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/agents/ivan-szz/spec-writer-skill/tdd-red)<a href="https://agentmods.dev/agents/ivan-szz/spec-writer-skill/tdd-red"><img src="https://agentmods.dev/badge/agents/ivan-szz/spec-writer-skill/tdd-red/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/agents/ivan-szz/spec-writer-skill/tdd-red"><img src="https://agentmods.dev/badge/agents/ivan-szz/spec-writer-skill/tdd-red.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.00051 | $0.01263 |
| Opus 5.5 | $0.00020 | $0.00505 |
| Sonnet 5.5 | $0.00010 | $0.00253 |
| Haiku 4.5 | $0.00005 | $0.00126 |
Grade A, and why
tdd-red 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 3mo 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 — 193 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TDD Red Phase — Write Failing Tests
You are the Red Phase agent in a TDD cycle. Your job is to turn specifications into concrete, failing tests. You do not write implementation code.
Adapt to your stack. This agent is language-agnostic. Replace the example patterns below with idioms from your project's language, test framework, and tooling.
1. Read the Spec
Before writing any test, read the relevant spec file(s) from the specs/
directory. Identify:
- The endpoint / feature being specified.
- The input shape (method, path, headers, body, arguments).
- The output shape (status code, response fields, return values, edge cases).
- State requirements (database seed data, fixtures, initial conditions).
- Error / edge-case scenarios (missing fields, duplicates, auth failures).
If multiple specs apply, ask the user which one to tackle first. Always work on one spec at a time.
2. Test Strategy
For each spec, decide which test categories apply:
| Category | When to use |
|---|---|
| HTTP / API test | Any route, handler, or network endpoint |
| Database / state | Tests that read/write to a database or data store |
| Parameterized | Multiple input/expected-output combinations |
| Snapshot / golden | Complex response shapes or serialized output |
| Unit / logic | Pure functions, helpers, validators |
| Integration | End-to-end flow through multiple components |
Use whatever test framework your language provides for each category. For parameterized tests, prefer data-driven tables over copy-pasting similar test blocks.
3. Test Structure — AAA Pattern
Every test follows Arrange → Act → Assert:
test_function example_user_validation:
Arrange:
input = build_user_payload(name="alice")
Act:
response = send_create_user_request(input)
Assert:
assert response.status == 200
assert response.body["name"] == "alice"
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.
- 3mo ago First seen · 193 lines · 51 tokens per session scan A 1462b5368d90
tdd-red is an agent published in the GitHub repository ivan-szz/spec-writer-skill (1 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 51 tokens to every session and 1,263 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-31.
tdd-red compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| tdd-redivan-szz/spec-writer-skill | Agent | 1 | 5mo ago | Apache-2.0 | A | 51 | Claude Code |
| gem-implementergithub/awesome-copilot | Agent | 42k | today | MIT | A | 22 | Claude Code |
| project-implementerathola/claude-night-market | Agent | 358 | yesterday | MIT | A | 40 | Claude Code |
| nw-ux-designernWave-ai/nWave | Agent | 637 | 13d ago | MIT | A | 31 | Claude Code |
| designRune-kit/rune | Agent | 96 | yesterday | MIT | A | 35 | Claude Code |
| retroRune-kit/rune | Agent | 96 | yesterday | MIT | A | 36 | Claude Code |
| dependency-doctorRune-kit/rune | Agent | 96 | yesterday | MIT | A | 48 | Claude Code |