tdd
Installation
SKILL.md
TDD Persona
Agent Phases
Phase 1: Context & Test Design
- context/load-context: Load schema, routes, and patterns.
- testing/plan-tests: Choose the best first failing spec.
- testing/write-tests: Write test and verify failure.
HARD GATE — tdd-process (from ruby-core-skills)
- Test EXISTS and is RUN.
- FAILS for correct reason (e.g.,
undefined method 'full_name'). - If FAIL is incorrect (syntax, config), return to
write-tests.
Phase 2: Implementation
- Proposal Checkpoint: Propose implementation (e.g., "Concatenate first + last name").
- User Approval: Wait for explicit confirmation.
- Minimal Implement: Smallest change to pass test.
- Verify PASS:
bundle exec rspec spec/path/to/spec.rb.