Skip to content
Back to templates

tdd-red-green-refactor

@randalolson/tdd-red-green-refactor

Use when you want to drive a feature implementation through a strict test-driven cycle of failing-test, minimal-pass, and refactor commits on the current branch.

Outcome

The feature described in the spec is implemented and covered by a passing test that was written before the implementation, with the work delivered in clean red-green-refactor order on the current branch.

Use this template

Paste any of these into your AI agent (or your shell) to fetch or fork the workflow.

Fetch with CLI
goodeye templates get @randalolson/tdd-red-green-refactor
Fork with CLI
goodeye templates fork @randalolson/tdd-red-green-refactor

Also available from

MCP
get_template(identifier="@randalolson/tdd-red-green-refactor")
REST
curl https://api.goodeyelabs.com/v1/templates/@randalolson/tdd-red-green-refactor