tdd-workflow

star 444

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

Dokhacgiakhoa By Dokhacgiakhoa schedule Updated 2/11/2026

name: tdd-workflow description: Test-Driven Development workflow principles. RED-GREEN-REFACTOR cycle. category: security version: 4.1.0-fractal layer: master-skill

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

Install via CLI
npx skills add https://github.com/Dokhacgiakhoa/antigravity-ide --skill tdd-workflow
Repository Details
star Stars 444
call_split Forks 137
navigation Branch main
article Path SKILL.md
More from Creator
Dokhacgiakhoa
Dokhacgiakhoa Explore all skills →