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/transparent-pegasus/herdrpowers/test-driven-developmentnpx skills add transparent-pegasus/herdrpowers --skill test-driven-developmentgit clone --depth 1 https://github.com/transparent-pegasus/herdrpowersWrote 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/transparent-pegasus/herdrpowers/test-driven-development)<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>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 | $0.00017 | $0.02897 |
| Opus 5 | $0.00009 | $0.01448 |
| Sonnet 5 | $0.00003 | $0.00579 |
| Haiku 4.5 | $0.00002 | $0.00290 |
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.
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
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.
- 3d ago First seen · 348 lines · 17 tokens per session scan A fcd496bfe507
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.
Other skills, from other repositories
engineering-workflow
可靠工程工作流的执行细则——探索→计划→TDD→系统化调试→代码审查→完成前验证。供方法论教练在开发任务中逐步引导。.
test-driven-development
TDD: enforce RED-GREEN-REFACTOR, tests before code.
vitest-best-practices
Comprehensive vitest testing patterns covering test structure, AAA pattern, parameterized tests, assertions, mocking, test doubles, error handling, async testing, and performance optimization. Use when writing, reviewing, or refactoring vitest tests, or when user mentions vitest, testing, TDD, test coverage, mocking…
writing-plans
Use when you have a spec or requirements for a multi-step task, before touching code.
test-driven-development
Use when implementing any feature or bugfix, before writing implementation code.
rudder
Use locally captured coding-session intent to resolve a device-local behavioral spec, generate focused tests from that spec, implement the smallest production changes through red-green TDD, and verify coverage with the repository's native tooling. Use when the user asks to run Rudder, create or regenerate tests for…