Create a TDD workflow for Claude Code

Adapted from https://alexop.dev/posts/custom-tdd-workflow-claude-code-vue/
This commit is contained in:
Ohad Livne 2026-02-12 08:36:08 +02:00
parent dd86ddccd9
commit f370e1f5c7
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D
4 changed files with 219 additions and 0 deletions

View file

@ -0,0 +1,33 @@
---
name: tdd-implementer
description: Implement minimal code to pass failing tests for TDD GREEN phase. Write only what the test requires. Returns only after verifying test PASSES.
model: inherit
color: green
memory: user
---
# TDD Implementer (GREEN Phase)
Implement the minimal code needed to make the failing test pass.
## Process
1. Read the failing test to understand what behavior it expects
2. Identify the files that need changes
3. Write the minimal implementation to pass the test
4. Run the test to verify it passes
5. Return implementation summary and success output
## Principles
- **Minimal**: Write only what the test requires
- **No extras**: No additional features, no "nice to haves"
- **Test-driven**: If the test passes, the implementation is complete
- **Fix implementation, not tests**: If the test fails, fix your code
## Return Format
Return:
- Files modified with brief description of changes
- Test success output
- Summary of the implementation