apply-tdd

apply-tdd is a skill for Claude Code, Codex from narumiruna/skills. It costs 29 tokens per session (676 once invoked), scanned A, original, MIT.

A test-first workflow for implementing non-trivial behaviour changes. TDD, or test-driven development, means writing a focused test that describes the expected behaviour before implementing the change.

In plain words
What is it for?
Use it to plan behaviour changes into testable units, write meaningful failing tests, implement the required code, and validate the resulting behaviour.
Why use it?
It avoids tests that merely repeat configuration and focuses testing on stable behaviour where a failing test can reveal a real regression.

Skill for Claude CodeCodex

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

Good fit Use it to plan behaviour changes into testable units, write meaningful failing tests, implement the required code, and validate the resulting behaviour.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/narumiruna/skills/apply-tdd"><img src="https://agentmods.dev/badge/skills/narumiruna/skills/apply-tdd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 676 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.00029 $0.00676
Opus 5.5 $0.00012 $0.00270
Sonnet 5.5 $0.00006 $0.00135
Haiku 4.5 $0.00003 $0.00068

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

Security

Grade A, and why

apply-tdd 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 14d 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.

deprecated/skills/apply-tdd/SKILL.md · 51 lines

How it starts

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

Applying TDD (Deprecated Reference)

This workflow is excluded from active discovery but retained for repository reference and explicit local compatibility.

Use tests as executable behavior specifications, not as a coverage ritual.

Scope the Boundary

Before writing a test:

  1. Load test boundaries, resolve the repository's actual production and test layouts from its manifests, package configuration, imports, runner configuration, and established paths, then apply the matching ecosystem fallback only where that evidence is insufficient. More-specific repository instructions override the fallback.
  2. Partition eligible work by observable behavior rather than by file.
  3. Apply TDD to a work unit only when all are true:
    • it changes a contract observable at a stable boundary
    • a focused test can fail for the intended reason before implementation
    • the test would catch a plausible regression that cheaper validation would not catch as clearly

Treat supporting edits such as config, wiring, schemas, fixtures, and generated artifacts as part of the behavior slice, not as separate units that each require a red-green cycle. Test custom parsing, defaults, validation, precedence, or resulting runtime behavior; do not write a test that merely repeats static config values, standard framework declarations, or metadata.

If no meaningful behavior contract exists, skip TDD and use the cheapest proportionate check: parse or schema validation, compile or type checking, linting, a focused smoke check, an existing integration test, or the repository gate. Do not add production abstractions solely to make a low-risk declarative edit unit-testable, and do not require an exception report for work that is outside this boundary.

Cycle

  1. Identify the smallest observable behavior that should change.
  2. Add or update the narrowest test at a stable boundary that proves the behavior. Control time, randomness, network, storage, and other external inputs so the test is deterministic and isolated.
  3. Run it and confirm the intended test executes and fails for the intended reason. Discovering zero tests is not a red state. If the test passes, correct it or establish why another check is the valid red state.
  4. Implement the smallest change that makes the test pass. Do not weaken or delete a correct test to accommodate the implementation.
  5. Run the focused test, then relevant integration or end-to-end coverage and the repository gate.
  6. Refactor only while tests are green and without changing behavior.

Read the full file on GitHub · 51 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. 14d ago Changed · +4 lines · -22 tokens per session ab43ee96a349
  2. 2mo ago First seen · 47 lines · 51 tokens per session scan A a8b048a1486f

Subscribe to this mod's changes

apply-tdd is a skill published in the GitHub repository narumiruna/skills (19 stars, last pushed 4d ago), licensed MIT. It adds 29 tokens to every session and 676 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-09-07.

Related

apply-tdd compared with skills from other repositories

apply-tdd next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
apply-tddnarumiruna/skillsSkill194d agoMITA29Claude Code, Codex
engram-testing-coverageGentleman-Programming/engramSkill8.4k6d agoMITA25Claude Code, Codex
iterative-developmentalinaqi/maggySkill7123d agoMITA24Claude Code
tddglebis/claude-skillsSkill417todayMITA92Claude Code
mobiai-mobile-tddArisGuimera/MobiAI-CoreSkill495todayMITA38Claude Code
nw-leanux-methodologynWave-ai/nWaveSkill63611d agoMITA37Claude Code
nw-ddd-eventsourcingnWave-ai/nWaveSkill63611d agoMITA38Claude Code