Agent skill

tdd-workflow

Test-Driven Development workflow principles. RED-GREEN-REFACTOR cycle.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/tdd-workflow-spencergeee-spentrade

SKILL.md

TDD Workflow

Write tests first, code second.


1. The TDD Cycle

🔴 RED → Write failing test
    ↓
🟢 GREEN → Write minimal code to pass
    ↓
🔵 REFACTOR → Improve code quality
    ↓
   Repeat...

2. The Three Laws of TDD

  1. Write production code only to make a failing test pass
  2. Write only enough test to demonstrate failure
  3. Write only enough code to make the test pass

3. RED Phase Principles

🧠 Knowledge Modules (Fractal Skills)

1. What to Write

2. RED Phase Rules

3. Minimum Code

4. GREEN Phase Rules

5. What to Improve

6. REFACTOR Rules

7. Multi-Agent Pattern

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results