# Test-Driven Development (Superpowers)

> Enforces true red or green TDD before implementation code is written

Source: https://aistack.sh/skill/test-driven-development-superpowers
Real source: https://github.com/obra/superpowers/tree/main/skills/test-driven-development
Author: Jesse Vincent (obra)
Category: development
Works with: claude-code
Last verified: 2026-09-06

Part of the Superpowers methodology. Use when implementing any feature or bugfix: write a failing test first, then the minimum code to pass it, then refactor.

## Install

### claude-code

```
git clone https://github.com/obra/superpowers.git
mkdir -p ~/.claude/skills/test-driven-development-superpowers
cp -r superpowers/skills/test-driven-development/* ~/.claude/skills/test-driven-development-superpowers/
```

This skill ships inside the Superpowers repo rather than as a single-skill package. The Superpowers plugin (installable via /plugin install superpowers@claude-plugins-official) bundles this skill and others together; the steps above install just this one skill using Claude Code's documented manual-skill path (~/.claude/skills/<name>/SKILL.md).

---

From aistack.sh. Last verified 2026-09-06.
