implement-with-tdd

implement-with-tdd is a skill for Claude Code from thoughtbot/rails-consultant. It costs 21 tokens per session (1,599 once invoked), scanned A, original, MIT.

An implementation workflow that builds a specified feature from the outside in using TDD. TDD, or test-driven development, means writing a failing test, making it pass, and then improving the code.

In plain words
What is it for?
Use it to implement a specification, plan, or feature by turning its behavior into tests, running the test suite, and stopping after the simplest passing implementation before later cleanup.
Why use it?
Plausible code can still be wrong, while a failing test gives a concrete signal about the next behavior to implement. Working from acceptance criteria keeps the change tied to what was requested.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the rails-consultant plugin — 15 skills shipped together

Good fit Use it to implement a specification, plan, or feature by turning its behavior into tests, running the test suite, and stopping after the simplest passing implementation before later cleanup.

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

Made for: Claude Code.

Or install rails-consultant, the plugin that ships this one along with the rest of its 15 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 implement-with-tdd

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/thoughtbot/rails-consultant/implement-with-tdd"><img src="https://agentmods.dev/badge/skills/thoughtbot/rails-consultant/implement-with-tdd.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,599 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.00021 $0.01599
Opus 5.5 $0.00008 $0.00640
Sonnet 5.5 $0.00004 $0.00320
Haiku 4.5 $0.00002 $0.00160

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

Security

Grade A, and why

implement-with-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 23d 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/implement-with-tdd/SKILL.md · 145 lines

How it starts

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

Implement with TDD

Work from the outside in and let each failure name the next move. Stop at shameless green; a later step refactors.

The discipline exists because you're fluent enough to write plausible code for almost anything, and plausible isn't correct. A failing test tells them apart.

What you were handed

The thing to build: $ARGUMENTS

If that's empty, ask. If it's a path, read it.

Take the acceptance criteria as the scope. Those are behavior, and behavior is what you can test. A suggested design, a test path, an ordering: that's a guess from a session that never ran the suite. Yours will run it, so your evidence is better. Where the repo contradicts the plan the repo is right — say so rather than diverge quietly.

A ## Where to look section is the exception to that distrust, not to the scope rule. Those paths are where a prior session already found the relevant code, so they save you the search and not the judgment: open them before you go looking for anything else, and treat nothing on the list as work you owe. The criteria are still the whole scope. If a path is gone or turns out to be irrelevant, skip it and say so in the report — don't edit the SPEC.

The list names the commit it was written at. When that isn't HEAD, the paths usually still hold and the reason beside each one may not, so read the file before you act on its description.

Before the first test

Learn the suite:

  • The command for one test file, and the one for everything
  • Which layers exist here (end-to-end, request or API, unit) — you can only start at the outermost layer the repo actually has
  • The local idiom: factories or fixtures, helpers, naming

Read the two or three tests nearest your area and copy their style, even where you'd write it differently. references/test-style.md covers how to write the test itself and what belongs at each layer; read it before the first one.

If the suite can't be made to run using the repo's documented setup, stop and report what's missing — a missing database or service isn't something to work around. If there's no test framework at all, stop and ask which to use.

Read the full file on GitHub · 145 lines

Files

What ships with it

2 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. 23d ago First seen · 145 lines · 21 tokens per session scan A 8ba6df798a4d

Subscribe to this mod's changes

implement-with-tdd is a skill published in the GitHub repository thoughtbot/rails-consultant (39 stars, last pushed 10d ago), licensed MIT. It adds 21 tokens to every session and 1,599 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-07.

Related

implement-with-tdd compared with skills from other repositories

implement-with-tdd next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
implement-with-tddthoughtbot/rails-consultantSkill3910d agoMITA21Claude Code
csiftwdhwg001/csiftSkill341mo agoMITA227Claude Code, Codex
recursive-decompositionmassimodeluisa/recursive-decomposition-skillSkill552mo agoMITA144Claude Code
generate-tasksfoyzulkarim/skillsSkill433d agononeA75Claude Code
abd-testRealDougEubanks/ClaudeMarketplaceSkill11mo agoMITA31Claude Code
unity-testingIdoCohen560/claude-unity-game-studioSkill304mo agoMITA78Claude Code
uw-code-reviewIdoCohen560/claude-unity-game-studioSkill304mo agoMITA124Claude Code