Content Preview
---
name: tdd-workflow
description: "Test-Driven Development workflow principles. RED-GREEN-REFACTOR cycle."
risk: unknown
source: community
date_added: "2026-02-27"
---
# 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 enougHow to Use
Recommended: Install to project (local)
mkdir -p .claude/skills
curl -o .claude/skills/tdd-workflow.md \
ย ย https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/main/skills/tdd-workflow/SKILL.mdSkill is scoped to this project only. Add .claude/skills/ to your .gitignoreif you don't want to commit it.
Alternative: Clone full repo
git clone https://github.com/sickn33/antigravity-awesome-skillsThen reference at skills/tdd-workflow/SKILL.md
Related Skills
testing
Testing strategies and methodologies including TDD, E2E testing, and multi-framework support
testingtestingtdd
by davepoon ยท buildwithclaude
tdd-workflow
Use this skill when writing new features, fixing bugs, or refactoring code. Enforces test-driven development with 80%+ coverage including unit, integration, and E2E tests.
tdd-workflowtddworkflow
by affaan-m ยท everything-claude-code
tdd-workflows-tdd-green
Implement the minimal code needed to make failing tests pass in the TDD green phase.
testingtddgreen
by sickn33 (Antigravity) ยท antigravity-awesome-skills
tdd-workflows-tdd-red
Generate failing tests for the TDD red phase to define expected behavior and edge cases.
testingtddred
by sickn33 (Antigravity) ยท antigravity-awesome-skills