test-driven-development
FeaturedUse when implementing any feature or bugfix, before writing implementation code
Testing & QA 391 stars
65 forks Updated 4 days ago MIT
Install
Quality Score: 89/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
<!--
Adapted from obra/superpowers test-driven-development skill (v5.0.7),
MIT-licensed, copyright 2025 Jesse Vincent. Modifications copyright 2026 Joe Amditis. v0.3.0 ports as a consumer category — no research
phase per the v0.2.0 architecture, since TDD is a sub-skill called
within other workflows whose specs/plans already encode the research
conclusions. The artifact handoff carries those conclusions.
See CREDITS.md.
-->
# Test-Driven Development (TDD)
## Overview
Write the test first. Watch it fail. Write minimal code to pass.
**Core principle:** If you didn't watch the test fail, you don't know if it tests the right thing.
**Violating the letter of the rules is violating the spirit of the rules.**
## When to Use
**Always:**
- New features
- Bug fixes
- Refactoring
- Behavior changes
**Exceptions (ask your human partner):**
- Throwaway prototypes
- Generated code
- Configuration files
Thinking "skip TDD just this once"? Stop. That's rationalization.
## The Iron Law
```
NO PRODUCTION CODE WITHOUT A FAILING TEST FIRST
```
Write code before the test? Delete it. Start over.
**No exceptions:**
- Don't keep it as "reference"
- Don't "adapt" it while writing tests
- Don't look at it
- Delete means delete
Implement fresh from tests. Period.
## Red-Green-Refactor
```dot
digraph tdd_cycle {
rankdir=LR;
red [label="RED\nWrite failing test", shape=box, style=filled, fillcolor="#ffcccc"];
verify_red [label="Verify fails\ncorrectly", shape=diamond];
gree...
Details
- Author
- jamditis
- Repository
- jamditis/claude-skills-journalism
- Created
- 8 months ago
- Last Updated
- 4 days ago
- Language
- Python
- License
- MIT
Bundled in these plugins
Similar Skills
Semantically similar based on skill content — not just same category
Testing & QA Listed
test-driven-development
Use when implementing ANY feature or bugfix, before writing implementation code. Write the failing test first, watch it fail, write minimal code to pass, refactor. Triggers whenever you are about to write production code, fix a bug, or change behavior — and especially when you catch yourself wanting to "skip tests just this once".
1 Updated 1 months ago
StielChancellor Testing & QA Listed
test-driven-development
Use when implementing any feature or bugfix, before writing implementation code. Also invoked via /tdd (alias archived — this is the canonical skill).
1 Updated 1 months ago
LucasSantana-Dev