About
The TDD Red-Green-Refactor skill optimizes Claude Code for high-integrity software development by mandating a strict test-first methodology. It guides the AI agent to identify minimal observable behaviors, write failing Vitest cases, implement the smallest possible fix to achieve a 'green' state, and perform safe refactoring. This skill is particularly critical for maintaining complex codebases where regressions must be avoided, specifically enforcing the use of Vitest over other runners like bun:test to maintain environment consistency and reliability.