tdd-cycle
Installation
SKILL.md
TDD Cycle
Execute a complete Red -> Green -> Refactor cycle.
Workflow
1. Verify Task File
Check for .tasks/YYYY-MM-DD-*.md. If missing, create one before proceeding.
2. RED — Write Failing Test
- Show test inventory from task file, ask which test to implement
- Study patterns from existing tests (unit ->
assert_test.sh, doubles ->doubles_test.sh) - Write the failing test following Arrange-Act-Assert
- Run:
./bashunit path/to/test.sh— must fail - Verify failure is for the RIGHT reason (not syntax error or wrong setup)
- Update task file: current red bar + logbook entry