test-driven-development - Test-Driven Development (TDD)
Use when implementing any feature or bugfix, before writing implementation code.
Tags
Updated: 2026-09-21Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Write failing test first
- Verify test fails correctly
- Write minimal implementation code
- Verify all tests pass
- Refactor code after green
- Reproduce bugs with failing tests
Inputs
- Feature specifications or bug reports
- Test files and implementation code
- @testing-anti-patterns.md reference document
Outputs
- Passing test output
- Test files
- Production implementation code
Requirements
- Test runner CLI environment
- Human partner approval for exceptions
