Enforced Red-Green-Refactor TDD cycle with discrete commits per phase. Use when implementing a feature, fixing a bug, or adding any production code. Walks through red (failing test), green (minimum code to pass), refactor (clean up) with a separate commit at each step.
Implement a feature or fix using a strict Red-Green-Refactor cycle. Each phase gets its own commit to create a clear audit trail.
The requirement to implement is: $ARGUMENTS
/branch.test-type conventional commit message, e.g. test(scope): add test for <behaviour>.feat or fix-type conventional commit message.refactor-type conventional commit message.Ask the user: "Continue with another test case, or is this implementation complete?"
If continuing, repeat from Phase 1.