test-driven-development

test-driven-development is a skill for Claude Code, Codex from wsauret/flywheel. It costs 16 tokens per session (522 once invoked), scanned A, original, Apache-2.0.

A test-driven development method for changing behavior through a failing test, a minimal implementation, and cleanup. TDD means writing the test before the code and using its results as evidence.

In plain words
What is it for?
Use it for new behavior and regressions: choose the right existing test, confirm the intended failure, make the smallest fix, and keep the test passing during refactoring.
Why use it?
It prevents changes from being accepted without proving the intended behavior, and helps avoid tests that pass for the wrong reason.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for new behavior and regressions: choose the right existing test, confirm the intended failure, make the smallest fix, and keep the test passing during refactoring.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wsauret/flywheel/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 wsauret/flywheel --skill test-driven-development
Clone the repo
git clone --depth 1 https://github.com/wsauret/flywheel

Made for: Claude Code, Codex.

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/wsauret/flywheel/test-driven-development/github.svg)](https://agentmods.dev/skills/wsauret/flywheel/test-driven-development)
Your own site
<a href="https://agentmods.dev/skills/wsauret/flywheel/test-driven-development"><img src="https://agentmods.dev/badge/skills/wsauret/flywheel/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/wsauret/flywheel/test-driven-development"><img src="https://agentmods.dev/badge/skills/wsauret/flywheel/test-driven-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 522 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.
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.00016 $0.00522
Opus 5.5 $0.00006 $0.00209
Sonnet 5.5 $0.00003 $0.00104
Haiku 4.5 $0.00002 $0.00052

Measured 16d ago against content hash a0f82aa315c1, 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 16d 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.

src/agent-skills/test-driven-development/SKILL.md · 39 lines

How it starts

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

Test-Driven Development

A behavior change is complete only when a public-behavior test fails for the intended reason, passes after the least implementation, and remains green through refactoring.

Input and method

Start with one behavior change or regression and an executable test seam.

  1. Find the owner. Search the tests for the one that already asserts this behavior at the strongest boundary. Extend that test or its table when it exists; add a new test only for behavior no existing test asserts. Test the same contract at another layer only for a distinct risk the owner cannot reach, such as transport or lifecycle.
  2. Write the smallest test through the public surface.
  3. Run RED and confirm the intended failure rather than a typo, missing import, or unrelated setup failure. A negative test must fail for the reason its name states, not for a missing field or another guard.
  4. Write the least code that makes the test pass and run GREEN.
  5. Refactor only while GREEN remains preserved.
  6. Add only contract-relevant edge cases: the implementation's real empty, missing, malformed, duplicate, or boundary branches.

Do not write a test that:

  • greps imports or restates a declared type, registration, or flag;
  • computes its expected value with the code under test;
  • replays a shared helper's generic behavior in every caller's suite;
  • carries a name that promises more than its assertions check.

When implementation already exists, establish RED against the unchanged baseline or safely isolate only your own change. Never discard other work or reconstruct unavailable history to manufacture evidence. If no test framework exists, use the narrowest repeatable executable behavior check.

Unit tests stay fast and hermetic. Place persistent regression tests according to existing test conventions.

Result

Stop with exactly one result:

  • completed: report test location, the owner test you checked and whether you extended it, exact RED and GREEN commands, exit codes, intended RED reason, passing evidence, and refactor outcome.
  • skipped: name one allowed category, such as pure refactor with existing coverage, documentation, configuration, or no useful test seam; provide evidence and the narrowest substitute behavior check.
  • blocked: report why honest RED cannot be established or GREEN cannot be reached, with observed output.

Read the full file on GitHub · 39 lines

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. 16d ago Changed · -2 lines a0f82aa315c1
  2. 28d ago First seen · 41 lines · 16 tokens per session scan A 9cfa7df91af6

Subscribe to this mod's changes

test-driven-development is a skill published in the GitHub repository wsauret/flywheel (19 stars, last pushed today), licensed Apache-2.0. It adds 16 tokens to every session and 522 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-11-03.

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-developmentwsauret/flywheelSkill19todayApache-2.0A16Claude Code, Codex
codew-release-qa-sweepHmbown/CodeWhaleSkill41k2d agoMITA31Claude Code, Codex
gh-find-prsHmbown/CodeWhaleSkill41k2d agoMITA27Claude Code, Codex
contributor-onboardingHmbown/CodeWhaleSkill41k2d agoMITA57Claude Code, Codex
fleet-managerHmbown/CodeWhaleSkill41k2d agoMITA25Claude Code, Codex
handoffHmbown/CodeWhaleSkill41k2d agoMITA70Claude Code, Codex
skill-creatorHmbown/CodeWhaleSkill41k2d agoMITA51Claude Code