test-driven-development - Guide implementation with the red-green-refactor cycle
Guides behavior changes and bug fixes through failing tests, minimal implementations, refactoring, and full-suite verification.
Tags
Updated: 2026-10-02Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Discover repository test conventions
- Write a failing test
- Implement minimal passing code
- Refactor without changing behavior
- Reproduce bugs with tests
- Run focused and full suites
- Classify tests by resource size
- Assert outcomes over interactions
- Prefer real implementations over mocks
- Apply Arrange-Act-Assert
Inputs
- Repository source code
- Behavior change requirements
- Repository test commands
- Test framework configuration
Outputs
- Failing and passing tests
- Implementation changes
- Refactored code
- Test execution results
Requirements
- Repository test tooling
- Code execution environment
