obra logo
#136 by installsTesting & QAobra/superpowers

test-driven-development

TDD loop: write the failing test first, implement the minimal fix, verify, then refactor

Installs
261K
all time
This week
6.8K
installs
Repo stars
295.3K
GitHub
First seen
Jan 19, 2026
on skills.sh
Install
npx skills add https://github.com/obra/superpowers --skill test-driven-development
Works with Claude Code, Cursor, Codex, GitHub Copilot, Windsurf, Gemini CLI and other agents that read SKILL.md.
What it does

Write tests first, watch them fail, then implement minimal code to pass. Use when implementing any feature or bugfix, before writing implementation code

  • Follows the red-green-refactor cycle: write a failing test, verify it fails correctly, implement minimal code to pass, then refactor while keeping tests green
  • Requires deleting any production code written before tests exist; no exceptions for "reference" or "adaptation"
  • Emphasizes watching tests fail as proof they actually test the right thing; tests that pass immediately prove nothing