tdd
SolidTest-Driven Development enforcement skill - write tests first, always
Testing & QA 6 stars
1 forks Updated yesterday MIT
Install
Quality Score: 78/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# TDD Mode
[TDD MODE ACTIVATED]
## The Iron Law
**NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST**
Write code before test? DELETE IT. Start over. No exceptions.
## Red-Green-Refactor Cycle
### 1. RED: Write Failing Test
- Write test for the NEXT piece of functionality
- Run test - MUST FAIL
- If it passes, your test is wrong
### 2. GREEN: Minimal Implementation
- Write ONLY enough code to pass the test
- No extras. No "while I'm here."
- Run test - MUST PASS
### 3. REFACTOR: Clean Up
- Improve code quality
- Run tests after EVERY change
- Must stay green
### 4. REPEAT
- Next failing test
- Continue cycle
## Enforcement Rules
| 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. |
## Commands
Before each implementation:
```bash
npm test # Should have ONE new failure
```
After implementation:
```bash
npm test # New test should pass, all others still pass
```
## Output Format
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]
```
**Remembe...
Details
- Author
- mazenyassergithub
- Repository
- mazenyassergithub/oh-my-claudecode
- Created
- 4 years ago
- Last Updated
- yesterday
- Language
- TypeScript
- License
- MIT
Bundled in these plugins
Similar Skills
Semantically similar based on skill content — not just same category
Testing & QA Solid
tdd
Use when writing production code that needs tests - new features, bug fixes, refactoring. Enforces RED-GREEN-REFACTOR cycle before any implementation.
22 Updated 2 days ago
fusengine Testing & QA Listed
test-driven-development
Use when implementing any feature or bugfix, before writing implementation code
0 Updated today
Luis85 Testing & QA Solid
test-driven-development
Use when implementing any feature or bugfix, before writing implementation code
0 Updated 6 days ago
lhbsaa