skill-tdd
FeaturedBuild features with tests-before-code rigor — use for new features needing test coverage
AI & Automation 3,887 stars
365 forks Updated today MIT
Install
Quality Score: 99/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Test-Driven Development (TDD)
## MANDATORY COMPLIANCE — DO NOT SKIP
**When this skill is invoked, you MUST run the TDD pipeline through `orchestrate.sh` (red → green → refactor) with real provider dispatch. You are PROHIBITED from:**
- Writing implementation before a failing test exists
- Simulating provider output instead of dispatching via `orchestrate.sh`
- Declaring the task "too small for TDD" and skipping the cycle without asking the user
- Marking work complete while any test is red or skipped
- Rationalizing that a direct edit is faster — the user invoked TDD for test-first discipline
## The Iron Law
<HARD-GATE>
NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST
</HARD-GATE>
**Violating the letter of this rule is violating the spirit of this rule.**
Write code before the test? **Delete it. Start over.**
- Don't keep it as "reference"
- Don't "adapt" it while writing tests
- Don't look at it
- Delete means delete
## Red-Green-Refactor Cycle
```
┌─────────┐
│ RED │ ← Write ONE failing test
└────┬────┘
↓
┌─────────┐
│ VERIFY │ ← Watch it FAIL (mandatory)
└────┬────┘
↓
┌─────────┐
│ GREEN │ ← Write MINIMAL code to pass
└────┬────┘
↓
┌─────────┐
│ VERIFY │ ← Watch it PASS (mandatory)
└────┬────┘
↓
┌─────────┐
│REFACTOR │ ← Clean up (stay green)
└────┬────┘
↓
[REPEAT]
```
## Phase 1: RED - Write Failing Test
Write ONE minimal test showing what should happen.
**Good ...
Details
- Author
- nyldn
- Repository
- nyldn/claude-octopus
- Created
- 6 months ago
- Last Updated
- today
- Language
- Shell
- License
- MIT
Integrates with
Bundled in these plugins
Similar Skills
Semantically similar based on skill content — not just same category
Testing & QA Solid
tdd
Test-Driven Development enforcement skill - write tests first, always
6 Updated today
mazenyassergithub AI & Automation Listed
test-driven-development
Use when implementing any feature, refactoring, or writing a bugfix.
2 Updated today
slowdini 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 yesterday
fusengine