tdd-implement

tdd-implement is a skill for Claude Code from jerseycheese/agent-skills. It costs 76 tokens per session (1,717 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 — 36 skills shipped together

Good fit Use it when starting a feature or bug fix, especially when the expected behavior can be described as clear acceptance criteria.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jerseycheese/agent-skills/tdd-implement
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 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 36 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/github.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/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-implement

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,717 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.00076 $0.01717
Opus 5.5 $0.00030 $0.00687
Sonnet 5.5 $0.00015 $0.00343
Haiku 4.5 $0.00008 $0.00172

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

How it starts

The opening of the file, as written. The whole thing — 143 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?

  • How does this project run its tests, build, and lint? Check its manifest, CI config, and docs. Commands below are examples, so use the project's own and skip any it doesn't define. Stick to one-shot commands, never a dev server or watcher.

# Discover existing patterns before planning. Extend the pattern for the project's layout.
git ls-files | grep -E '(^|/)(tests?|__tests__)/|[._](test|spec)\.|(^|/)test_'  # How tests are structured here
git grep -n "[relevant term]"

No test files here doesn't mean there are no tests. The pattern may have missed the project's layout, so check the test command before planning from scratch.

Step 2: Define the MVP test plan

Plan the fewest tests that would catch this change breaking: one per distinct behavior the change adds or alters, so a fix plus its new error path is two. Usually that's one or two; more than three needs a reason you can name. A bug fix always gets the regression test that would have caught the bug. Zero is valid only for a copy edit, a config tweak, or a one-line layout fix (see "Some fixes don't warrant a test at all" below). The repo's own test rules win where they're stricter.

A test is essential only if both hold:

  • It fails when the behavior it covers is reverted. If it would pass on the old code, it tests nothing new.
  • It guards behavior a user or a caller would notice breaking. Name that breakage in one line; if you can't, cut the test.

Plan per behavior, not per acceptance criterion. When one test covers three criteria, write one test. Put edge cases in only when the issue names them or the bug was one.

Read the full file on GitHub · 143 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. 29d ago Changed · -3 lines 6e4c4a2b63f8
  2. 1mo ago Changed · +11 lines · +11 tokens per session 308a4d7c5c84
  3. 1mo ago Changed 42469f5bfbb5
  4. 1mo ago Changed · +3 lines · -35 tokens per session c37d8724867d
  5. 3mo 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 (4 stars, last pushed 4d ago), licensed MIT. It adds 76 tokens to every session and 1,717 once invoked, about $0.0003 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-implement compared with skills from other repositories

tdd-implement next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tdd-implementjerseycheese/agent-skillsSkill44d agoMITA76Claude Code
pair-programmingfrankxai/claude-skills-librarySkill51todayMITA85Claude Code
testingTheBeardedBearSAS/claude-craftSkill10818d agoMITA30Claude Code
tdd-dev-cyclecafe3310/public-agent-skillsSkill26220d agoApache-2.0A38Claude Code, Codex
workflow-analysisTheBeardedBearSAS/claude-craftSkill10818d agoMITA55Claude Code
local-placesgeezerrrr/motiveSkill1201mo agoMITA22Claude Code, Codex
tiered-rubric-loopderailed-dash/dazbo-agent-skillsSkill304d agoMITB172Claude Code, Codex