From oh-my-claudecode
Enforces Test-Driven Development with strict Red-Green-Refactor workflow. Intercepts production code written without a preceding failing test.
How this skill is triggered — by the user, by Claude, or both
Slash command
/oh-my-claudecode:tddThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
[TDD MODE ACTIVATED]
[TDD MODE ACTIVATED]
NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST
Write code before test? DELETE IT. Start over. No exceptions.
| 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. |
Before each implementation:
npm test # Should have ONE new failure
After implementation:
npm test # New test should pass, all others still pass
When guiding TDD:
## 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]
Remember: The discipline IS the value. Shortcuts destroy the benefit.
npx claudepluginhub mazenyassergithub/oh-my-claudecode --plugin oh-my-claudecodeCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.