---
name: tdd
description: Test-Driven Development workflow — red, green, refactor
version: 1.0.0
---

# TDD Skill

## Workflow
1. **Red**: Write a failing test that defines the expected behavior
2. **Green**: Write the minimum code to make the test pass
3. **Refactor**: Clean up the code while tests remain green

## Rules
- Never write production code without a failing test
- Write only enough test to fail
- Write only enough code to pass
- Tests must be deterministic and isolated
