Skip to content

Strict test-first workflow that deletes code written before a failing test and enforces red-green-refactor.

CCM score
52 of 100
skills.sh installs
474
GitHub stars
4K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full red-green-refactor cycle, with a plan agent, a test-writing agent, an implementation agent, and a final validation pass
  • Includes a verification checklist (failure reasons, minimal code, pristine output, real code over mocks) and a rationalization table to guard against skipping steps
  • Enforces a hard stop: any production code written before its failing test is deleted and restarted from the test
  • Designed for feature work where test coverage is critical, and for bug fixes that need regression tests

Install

$ npx -y skills add parcadei/continuous-claude-v3 --skill tdd -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

/tdd - Test-Driven Development Workflow

Strict TDD workflow: tests first, then implementation.

When to Use

  • "Implement X using TDD"
  • "Build this feature test-first"
  • "Write tests for X then implement"
  • Any feature where test coverage is critical
  • Bug fixes that need regression tests

TDD Philosophy

Overview

Write the test first. Watch it fail. Write minimal code to pass.

Core principle: If you didn't watch the test fail, you don't know if it tests the right thing.

Violating the letter of the rules is violating the spirit of the rules.

The Iron Law

NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST

Write code before the test? Delete it. Start over.

No exceptions:

  • Don't keep it as "reference"
  • Don't "adapt" it while writing tests
  • Don't look at it
  • Delete means delete

Implement fresh from tests. Period.

Red-Green-Refactor

RED - Write Failing Test

Write one minimal test showing what should happen.

Good:

test('retries failed operations 3 times', async () => {
  let attempts = 0;
  const operation = () => {
    attempts++;
    if (attempts < 3) throw new Error('fail');
    return 'success';
  };

Details

Repository
github.com/parcadei/continuous-claude-v3
Categories
Testing & QA, Agent Workflow & Planning
First seen
Jun 3, 2026

Questions

What does the tdd skill do for an agent?

The tdd skill runs a strict test-driven development workflow: it plans test cases, writes failing tests first, implements minimal code to pass them, and then validates the full suite. It enforces the rule that no production code is written without a failing test first.

Who should use the tdd skill?

The tdd skill suits any feature where test coverage is critical, and bug fixes that need regression tests. It is also meant for requests like implementing a feature test-first or writing tests before the implementation.

How do I install the tdd skill?

Run npx -y skills add parcadei/continuous-claude-v3 --skill tdd -y in your project. After installation, the agent can follow the red-green-refactor workflow described in the skill.

Which skills are the top alternatives to tdd in the Testing & QA category?

Within Testing & QA, tdd is listed alongside migrate-to-shoehorn, test-driven-development, webapp-testing and break-ui. The tdd skill focuses on the red-green-refactor cycle with a philosophy guide and a plan, write tests, implement and validate workflow.

What do I need in order to use the tdd skill?

The tdd skill runs test commands such as npm test or pytest against your project, so you need a test runner set up for the code you are building. The skill itself is installed with the single install command.

More from parcadei/continuous-claude-v3

All 108

Similar to Tdd

More Testing & QA