🧪 Test-Driven Development (Full Cycle)
Group Skill — Orchestrates sub-skills for writing code with TDD from start to finish. Activate by saying: "Use TDD workflow" or "test-driven development"
When to Use
- Writing code with TDD methodology
- Need to ensure high test coverage
- Building reliable, well-tested features
Step-by-Step Workflow
Phase 1: Plan
Skill: writing-plans
- Break feature into testable units
- Define acceptance criteria
- Identify edge cases
Phase 2: RED
Skill: tdd-workflows-tdd-red
- Write failing tests first
- Define expected behavior
- Test edge cases early
Phase 3: GREEN
Skill: tdd-workflows-tdd-green
- Write minimal code to pass tests
- Focus on correctness first
- Avoid premature optimization
Phase 4: REFACTOR
Skill: tdd-workflows-tdd-refactor
- Clean up code while tests stay green
- Improve design and readability
- Remove duplication
Phase 5: E2E
Skill: e2e-testing-patterns
- Write integration tests
- Test user flows end-to-end
- Verify system interactions
Phase 6: Coverage
Skill: test-automator
- Ensure coverage meets goals
- Identify untested paths
- Generate coverage reports
Phase 7: Review
Skill: code-reviewer
- Quality gate review
- Check test quality
- Verify edge cases covered
Completion
Feature is fully tested with RED-GREEN-REFACTOR cycle. 🧪
Sub-Skills Referenced
writing-planstdd-workflows-tdd-redtdd-workflows-tdd-greentdd-workflows-tdd-refactore2e-testing-patternstest-automatorcode-reviewer