test-driven-development

test-driven-development is a skill for Claude Code, Codex from transparent-pegasus/herdrpowers. It costs 17 tokens per session (2,897 once invoked), scanned A, original, Apache-2.0.

A development practice that writes checks for expected behavior as part of the implementation process. TDD means test-driven development.

In plain words
What is it for?
Use it when building a feature or fixing a bug, with tests written either by a separate worker or from the task requirements before or alongside implementation.
Why use it?
It separates the requirements from the implementation and helps catch code that does not match the requested behavior.

Skill for Claude CodeCodex

Part of the herdrpowers plugin — 16 skills, 7 commands shipped together

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.

agentmods
npx agentmods add skills/transparent-pegasus/herdrpowers/test-driven-development
Any agent
npx skills add transparent-pegasus/herdrpowers --skill test-driven-development
Clone the repo
git clone --depth 1 https://github.com/transparent-pegasus/herdrpowers

Made for: Claude Code, Codex.

Or install herdrpowers, the plugin that ships this one along with the rest of its 16 skills, 7 commands.

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 test-driven-development

README.md
[![agentmods](https://agentmods.dev/badge/skills/transparent-pegasus/herdrpowers/test-driven-development.svg)](https://agentmods.dev/skills/transparent-pegasus/herdrpowers/test-driven-development)
Your own site
<a href="https://agentmods.dev/skills/transparent-pegasus/herdrpowers/test-driven-development"><img src="https://agentmods.dev/badge/skills/transparent-pegasus/herdrpowers/test-driven-development.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,897 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00017 $0.02897
Opus 5 $0.00009 $0.01448
Sonnet 5 $0.00003 $0.00579
Haiku 4.5 $0.00002 $0.00290

Measured 3d ago against content hash fcd496bfe507, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

test-driven-development 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 3d 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.

skills/test-driven-development/SKILL.md · 348 lines

How it starts

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

Test-Driven Development (TDD)

Who Writes the Test (READ FIRST)

The resolved test-authoring assignment says — read it (see orchestration), do not assume. Two shapes ship, and they bind different rules.

A separate pane writes them (mode: delegate). That pane works from the task brief alone, in a worktree at the commit before the implementation, and is never shown the implementation — so its assertions cannot be shaped by code it read. If you are that pane, pane-driven-development's test author brief binds you: tests only, never production code, and a test that passes in that worktree is a defect to investigate and report. If you are the implementing pane, you implement the brief's stated interface exactly — someone else's assertions are already written against it — and you do not write the tests.

The implementing pane writes them (mode: implementer). The delegation brief that hands you a task also hands you its tests. That removes the structural guard against grading your own homework, so two compensating rules bind instead:

  • Assertions come from the requirements, never from the code. Write the test against the task brief's stated behavior and exact values, before the implementation exists. A test written after the code, shaped to match it, catches nothing.
  • The RED run is evidence you must produce. Your report carries the failing command and its output before implementation, with the reason the failure was expected, plus the passing run after. The reviewing panes treat missing or reconstructed RED evidence as a finding, and review your test code as the only independent check on it.

Either shape: whoever writes a test produces its RED run, assertions trace to the requirements, and the report names which pane wrote the tests. fix-round-test-authoring answers the same question for a fix round's covering tests. The Iron Law below binds whichever pane owns them: no production code without a failing test first.

Where Tests Go and How to Run Them

Read the full file on GitHub · 348 lines

Files

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.

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. 3d ago First seen · 348 lines · 17 tokens per session scan A fcd496bfe507

Subscribe to this mod's changes

test-driven-development is a skill published in the GitHub repository transparent-pegasus/herdrpowers (11 stars, last pushed 7d ago), licensed Apache-2.0. It adds 17 tokens to every session and 2,897 once invoked, about $0.0001 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-30.