Loading...
Loading...
Test-Driven Development enforcement skill - write tests first, always
npx skill4agent add yeachan-heo/oh-my-claudecode tdd| If You See | Action |
|---|---|
| Code written before test | STOP. Delete code. Write test first. |
| Test passes on first run | Test is wrong. Fix it to fail first. |
| Multiple features in one cycle | STOP. One test, one feature. |
| Skipping refactor | Go back. Clean up before next feature. |
# Run the project's test command - should have ONE new failure# Run the project's test command - new test should pass, all others still pass## TDD Cycle: [Feature Name]
### RED Phase
Test: [test code]
Expected failure: [what error you expect]
Actual: [run result showing failure]
### GREEN Phase
Implementation: [minimal code]
Result: [run result showing pass]
### REFACTOR Phase
Changes: [what was cleaned up]
Result: [tests still pass]ToolSearch("mcp")mcp__x__ask_codexagent_role: "tdd-guide"test-engineer