skill-tdd

Featured

Build features with tests-before-code rigor — use for new features needing test coverage

AI & Automation 3,887 stars 365 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

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