Skip to main content
skill CX Codex

tdd · brianlovin — Claude Code skill: what it does, how to install

Guides agents through a disciplined red-green-refactor loop. It builds features one vertical slice at a time and tests public behavior over implementation details.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add brianlovin/agent-config --skill tdd -a claude-code
Open on GitHub

What tdd does

This skill enforces a strict test-driven workflow. Instead of generating dozens of tests upfront, the agent plans the public interface with you, identifies critical behaviors, and writes a single failing test. It then writes just enough code to make that test pass before moving on.

The workflow explicitly blocks horizontal slicing, where one writes all tests first and all code second. Tests target public APIs rather than internal methods or direct database state. Because tests ignore internal structure, later code changes will not break them.

Refactoring is permitted only after reaching green status. Touching code architecture while tests remain red is forbidden.

What it helps with

  • design testable public interfaces before implementation
  • verify end-to-end flows with minimal tracer bullet tests
  • keep tests working during internal code refactors
  • add features incrementally without speculative code

Example prompts for the agent

  • Build the shopping cart checkout using TDD and red-green-refactor
  • Fix the discount calculation bug test-first
  • Create integration tests for the user registration endpoint

How to install tdd

1Skills CLI (Vercel)

npx skills add brianlovin/agent-config --skill tdd -a claude-code

2Manually: put the files in place

~/.claude/skills/tdd/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/tdd/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about tdd

How to install tdd in Claude Code?

Run npx skills add brianlovin/agent-config --skill tdd -a claude-code in your terminal.

What does the tdd skill do?

It directs the coding agent through vertical TDD cycles, pairing each individual failing test with minimal code before refactoring.

Why does the skill discourage writing all tests upfront?

Writing tests in bulk tests speculative structure rather than real system behavior. Incremental cycles allow each test to adapt to what the previous step revealed.

Similar skills

Everything for Testing and QA →

tdd by other authors comes first.

tdd Matt Pocock Guides the red-green TDD loop: ensures tests are written first, keep them at public interfaces, and avoid coupling to implementation details. 1,141,062installs tdd backnotprop This skill makes the agent write a failing regression test for a bug before touching production code. It only kicks in when a cheap test path exists. CX Codex +1 5,100installs tdd codewithmukesh Guides a strict red-green-refactor cycle for .NET 10 applications using xUnit v3, WebApplicationFactory, and Testcontainers. CX Codex +1 2,800installs tdd parcadei A skill that keeps the agent on a strict red-green-refactor loop: failing test first, minimal code next, then verification. CX Codex +1 470installs rtk-tdd rtk-ai This skill enforces a Red-Green-Refactor workflow for Rust and activates on implementation, testing, refactoring, and bug-fixing tasks. CX Codex +1 2,100installs tdd-rust rtk-ai Skill for RTK filter development using TDD. Write a test with real data, implement minimum code, verify token savings, lock the output format with insta snapshots. CX Codex +1 1,400installs tdd-workflow ruvnet A skill that walks the agent through London School TDD: a failing test against mocks, the smallest passing implementation, then refactor. Steps are logged through MCP hooks. CX Codex +1 743installs laravel-tdd iSerter A skill that walks the agent through red-green-refactor in Laravel: a failing Pest test first, minimal code to pass, then cleanup. CX Codex +1 378installs tdd-gate davila7 The hook blocks edits to production files until a matching test exists. Useful if you want the agent to keep the TDD order. 192installs test-driven-development sickn33 Guides coding agents through a strict test-driven development workflow: red, green, and refactor. Useful when fixing bugs or implementing new features with regression checks. CX Codex +1 1,400installs

From the same set12

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor