tdd-cycle

tdd-cycle is a skill for Claude Code from raisedadead/claude-code-plugins. It costs 92 tokens per session (840 once invoked), scanned A, original, ISC.

A test-first coding workflow for one small behaviour change: write a test that fails, make it pass, then refactor. It first agrees on the public boundary being tested, such as a function, web route, or command-line interface.

In plain words
What is it for?
Adding a feature, fixing a bug, or writing code with TDD (test-driven development). It is intended for work outside a larger build process that already defines the change.
Why use it?
It gives a clear definition of done and helps ensure tests check real behaviour rather than implementation details. Working on one slice at a time keeps the change focused.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the whetstone plugin — 11 skills, 7 agents shipped together

Good fit Adding a feature, fixing a bug, or writing code with TDD (test-driven development). It is intended for work outside a larger build process that already defines the change.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/raisedadead/claude-code-plugins/tdd-cycle
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 raisedadead/claude-code-plugins --skill tdd-cycle
Clone the repo
git clone --depth 1 https://github.com/raisedadead/claude-code-plugins

Made for: Claude Code.

Or install whetstone, the plugin that ships this one along with the rest of its 11 skills, 7 agents.

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 tdd-cycle

README.md
[![agentmods](https://agentmods.dev/badge/skills/raisedadead/claude-code-plugins/tdd-cycle/github.svg)](https://agentmods.dev/skills/raisedadead/claude-code-plugins/tdd-cycle)
Your own site
<a href="https://agentmods.dev/skills/raisedadead/claude-code-plugins/tdd-cycle"><img src="https://agentmods.dev/badge/skills/raisedadead/claude-code-plugins/tdd-cycle/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 tdd-cycle

Your own site · 80×15
<a href="https://agentmods.dev/skills/raisedadead/claude-code-plugins/tdd-cycle"><img src="https://agentmods.dev/badge/skills/raisedadead/claude-code-plugins/tdd-cycle.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 840 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.00092 $0.00840
Opus 5.5 $0.00037 $0.00336
Sonnet 5.5 $0.00018 $0.00168
Haiku 4.5 $0.00009 $0.00084

Measured 15d ago against content hash 88fb04371bc7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tdd-cycle 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 15d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/run_slice.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/whetstone/skills/tdd-cycle/SKILL.md · 66 lines

How it starts

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

tdd-cycle — one slice, red before green

Test-first for ad-hoc work that no ledger is driving. Agree the seam, watch the test fail, make it pass, keep the suite green. Refactoring is a separate pass.

When to use

  • Adding a feature or fixing a bug where the test should define "done".
  • Any behaviour-bearing edit outside a dossier:build covenant. Under a covenant, dossier:build drives WHEN and WHAT and composes this skill's run-slice as its RED/GREEN proof (dossier ADAPTERS §whetstone); the §T row already fixes the seam, so the interview is skipped. One ledger drives one edit.

The seam (agree it first)

Before the first assertion, name the seam: the public boundary you test through — a function signature, an HTTP route, a CLI. Get the user's agreement on it. Assert behaviour through that boundary, so the test survives a refactor and fails when the behaviour is wrong. A wrong seam buys tests that pass over broken behaviour, or break on every rename. Highest-value moment in the loop; spend it.

The loop (one slice at a time)

  1. RED — write one failing test. Then prove it fails for the right reason:

    run-slice red --expect '<text the failure must print>' <test-command>
    

    run-slice red exits non-zero when the test passed — a test that never failed characterises nothing. With --expect, it also exits non-zero when the output does not match the pattern (an extended regex), so a failure from a typo or a missing import does not count as RED. Check the test against reference/anti-patterns.md and reference/examples.md before running it; mock only where reference/mocking.md allows.

  2. GREEN — minimum code to pass:

    run-slice green <test-command>
    

    Just enough for this one test.

  3. Full-suite gate:

    run-slice full <suite-command>
    

    The slice leaves everything else green.

  4. Next slice — one seam, one test, one implementation per cycle. Repeat from RED.

A test that fails, then passes on a rerun with no change, is a flake signal. Measure it before any fix:

Read the full file on GitHub · 66 lines

Files

What ships with it

4 files 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. 15d ago Changed 88fb04371bc7
  2. 17d ago Changed · +8 lines · +1 tokens per session 79cd2ce0a4b5
  3. 1mo ago Changed d5ac4ce97006
  4. 2mo ago Changed 5926110d2acd
  5. 3mo ago First seen · 58 lines · 91 tokens per session scan A ce4a6d2f4abc

Subscribe to this mod's changes

tdd-cycle is a skill published in the GitHub repository raisedadead/claude-code-plugins (3 stars, last pushed 4d ago), licensed ISC. It adds 92 tokens to every session and 840 once invoked, about $0.0004 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.

Related

tdd-cycle compared with skills from other repositories

tdd-cycle next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tdd-cycleraisedadead/claude-code-pluginsSkill34d agoISCA92Claude Code
engram-testing-coverageGentleman-Programming/engramSkill8.4k7d agoMITA25Claude Code, Codex
iterative-developmentalinaqi/maggySkill7134d agoMITA24Claude Code
tddglebis/claude-skillsSkill417todayMITA92Claude Code
mobiai-mobile-tddArisGuimera/MobiAI-CoreSkill496yesterdayMITA38Claude Code
nw-leanux-methodologynWave-ai/nWaveSkill63612d agoMITA37Claude Code
nw-ddd-eventsourcingnWave-ai/nWaveSkill63612d agoMITA38Claude Code