tdd-cycle
Installation
SKILL.md
TDD Cycle Skill
Overview
Guides the Red-Green-Refactor TDD cycle: write a failing test describing desired behavior,
implement the minimum code to pass it, then improve the code while keeping tests green.
See references/testing-patterns.md for code examples, common patterns, and anti-patterns.
Test Type Selection
| Test Type | Use For | Location |
|---|---|---|
| Model spec | Validations, scopes, instance methods | spec/models/ |
| Request spec | API endpoints, HTTP responses | spec/requests/ |
| System spec | Full user flows with JavaScript | spec/system/ |
| Service spec | Business logic, complex operations | spec/services/ |
| Job spec | Background job behavior | spec/jobs/ |