tdd - Red-green-refactor workflow for code changes
Executes a red-green-refactor loop by writing a failing test first, committing it, and implementing minimum passing code.
Tags
Updated: 2026-09-11Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Write failing test first
- Commit failing test
- Implement minimal code change
- Refactor implementation safely
- Run target test runner
Inputs
- Behavior specifications
- Source code files
- Test target path
Outputs
- Failing test commit
- Passing test output
- Refactored source code
Requirements
- Pytest test runner
- Vitest test runner
- Git version control system
