test-driven-development

test-driven-development is a skill for Claude Code from transparent-pegasus/herdrpowers. It costs 17 tokens per session (3,052 once invoked), scanned A, original, MIT.

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 Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions subagents; mentions Claude Code.

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

Good fit 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.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/transparent-pegasus/herdrpowers/test-driven-development
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.

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.

Or install herdrpowers, the plugin that ships this one along with the rest of its 23 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/github.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/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.

agentmods 80×15 button for test-driven-development

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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 3,052 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00017 $0.03052
Opus 5.5 $0.00007 $0.01221
Sonnet 5.5 $0.00003 $0.00610
Haiku 4.5 $0.00002 $0.00305

Measured 24d ago against content hash 0c67e2d0df99, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 24d 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 · 357 lines

How it starts

The opening of the file, as written. The whole thing — 357 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 through orchestration and its profiles contract, including the selected composition. Apply present profile assignment overrides before choosing the writer. The writer's session determines the rules below.

A fresh worker writes them (mode: delegate). Separate targets use reset-backed Herdr panes; selected-profile owner targets require fresh in-process subagents, including solo composition. Missing subagent capability is a reported inability, never inline test authoring. The worker gets the task brief alone in its own worktree at BASE and never sees implementation. pane-driven-development's test-author contract binds it: tests only, never production code, expected RED evidence, and no re-delegation. The implementer follows the exact stated interface and does not write those tests.

The owning session writes them (mode: implementer, or an owner-session route). The implementing session owns RED-GREEN-REFACTOR. With a selected profile, the active owner may choose an optional subagent in nondelegated owner-session modes; workers may not. Two rules still bind:

  • 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 expected reason, plus the passing run after. Enabled reviewers audit the test code and missing or reconstructed RED evidence. Report permitted owner-session self-review as self-review, not an independent check; a disabled gate stays disabled.

Either shape: whoever writes a test produces its RED run, assertions trace to requirements, and the report names the writer and transport. fix-round-test-authoring answers the same question for a fix round. No-profile routing and review independence are unchanged. The Iron Law below binds the test owner: no production code without a failing test first.

Read the full file on GitHub · 357 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. 24d ago Changed 0c67e2d0df99
  2. 26d ago Changed fb278150815b
  3. 1mo ago Changed · +9 lines bba0776edfce
  4. 3mo 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 (15 stars, last pushed 5d ago), licensed MIT. It adds 17 tokens to every session and 3,052 once invoked, about $0.0001 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-30.

Related

test-driven-development compared with skills from other repositories

test-driven-development next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
test-driven-developmenttransparent-pegasus/herdrpowersSkill155d agoMITA17Claude Code
implementericrisco/rsc-harnessSkill7093d agoMITA151Claude Code, Codex
test-driven-developmentdamianvtran/local-operatorSkill235todayMITA48Claude Code, Codex
tddInsajin/autopus-adkSkill1112mo agoMITA11Claude Code, Codex
rudderRudderCode/RudderSkill24todayApache-2.0A101Claude Code, Codex
debuggingInsajin/autopus-adkSkill1112mo agoMITA16Claude Code, Codex
tddav/miSkill10724d agononeA48Claude Code, Codex