tdd-implement

tdd-implement is a skill for Claude Code from jerseycheese/agent-skills. It costs 100 tokens per session (1,245 once invoked), scanned A, original, MIT.

A Test-Driven Development workflow for building a feature or fix. TDD means writing tests that describe the expected behavior first, then writing the smallest implementation that makes them pass.

In plain words
What is it for?
Use it when starting a feature or bug fix, especially when the expected behavior can be described as clear acceptance criteria.
Why use it?
It turns acceptance criteria into checks before implementation and helps avoid unnecessary code. The tests focus on behavior a user would notice.

Skill for Claude Code

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

Part of the workflow-skills plugin — 31 skills shipped together

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.

agentmods
npx agentmods add skills/jerseycheese/agent-skills/tdd-implement
Any agent
npx skills add jerseycheese/agent-skills --skill tdd-implement
Clone the repo
git clone --depth 1 https://github.com/jerseycheese/agent-skills

Made for: Claude Code.

Or install workflow-skills, the plugin that ships this one along with the rest of its 31 skills.

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-implement

README.md
[![agentmods](https://agentmods.dev/badge/skills/jerseycheese/agent-skills/tdd-implement.svg)](https://agentmods.dev/skills/jerseycheese/agent-skills/tdd-implement)
Your own site
<a href="https://agentmods.dev/skills/jerseycheese/agent-skills/tdd-implement"><img src="https://agentmods.dev/badge/skills/jerseycheese/agent-skills/tdd-implement.svg" alt="Measured on agentmods" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,245 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00100 $0.01245
Opus 5 $0.00050 $0.00622
Sonnet 5 $0.00020 $0.00249
Haiku 4.5 $0.00010 $0.00125

Measured 5d ago against content hash 63937151c565, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

tdd-implement 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 5d 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/tdd-implement/SKILL.md · 132 lines

How it starts

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

TDD Implementation

The goal is to write honest tests that define behavior, implement the minimum code to pass them, then clean up. No rigging tests to pass. No over-engineering beyond what the tests require.

Step 1: Understand what you're building

Before writing a single test, be clear on:

  • What problem does this solve?
  • What are the acceptance criteria (from the issue, the user, or both)?
  • What already exists in the codebase that you can build on?
# Discover existing patterns before planning
find src/ -name "*.test.*" -o -name "*.spec.*" | head -5  # How tests are structured here
find src/ -name "*.ts" -o -name "*.tsx" | xargs grep -l "[relevant term]" | head -5

Step 2: Define the MVP test plan

Write down 3-5 tests before touching implementation code. Each test should:

  • Map directly to a specific acceptance criterion
  • Test user-observable behavior, not internal implementation
  • Answer: "Would a user notice if this broke?"

Tests to avoid:

  • "renders without crashing"
  • Prop-passing tests
  • Checking that a function was called (unless it's the actual requirement)
  • Exhaustive edge cases not in the acceptance criteria
  • Tests that just re-assert a simple layout/visual fix — a box-sizing, padding, or margin tweak guards a value, not behavior, and only bloats the suite

Some fixes don't warrant a test at all

TDD doesn't mean every change gets a spec. When the entire fix is a one-line CSS/layout change, a config tweak, or a copy edit, a dedicated test (Playwright or unit) that pins a single property value is test bloat, not coverage — it makes the suite slower and noisier without catching a real regression class. For these, verify it live (run the app, observe the behavior) and lean on the existing visual-regression / smoke coverage instead of adding a new spec. Say so plainly ("one-line layout fix — no dedicated test") and move on rather than padding the suite to satisfy a checkbox. Reserve new tests for changes with real behavior a user could notice breaking.

Read the full file on GitHub · 132 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. 5d ago First seen · 132 lines · 100 tokens per session scan A 63937151c565

Subscribe to this mod's changes

tdd-implement is a skill published in the GitHub repository jerseycheese/agent-skills (1 stars, last pushed 4d ago), licensed MIT. It adds 100 tokens to every session and 1,245 once invoked, about $0.0005 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-31.