tdd
Installation
SKILL.md
TDD Best Practices
Test-Driven Development with behavior-focused testing, factory patterns, and the Red-Green-Refactor cycle.
Core Principle
Every single line of production code must be written in response to a failing test.
This is non-negotiable. If you're typing production code without a failing test demanding it, you're not doing TDD.
The Sacred Cycle: Red → Green → Refactor
1. RED - Write a Failing Test
Write a test that describes the desired behavior. The test must fail because the behavior doesn't exist yet.
Rules: