skills/tdd/SKILL.md
Test-Driven Development enforcement skill - write tests first, always
npx skillsauth add mazenyassergithub/oh-my-claudecode tddInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
[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.
data-ai
Activate maximum performance mode with parallel agent orchestration for high-throughput task completion
tools
QA cycling workflow - test, verify, fix, repeat until goal met
tools
Review a plan with Critic
testing
Orchestrate parallel scientist agents for comprehensive research with AUTO mode