Superpowers: Test-Driven Development skill
Red, green, refactor: Claude writes a failing test before any real code.
Community, verifiedby Jesse VincentChecked November 8, 2026
Install Superpowers: Test-Driven Development free
Leave your email and the install steps open right here: one prompt to paste into your AI tool. Works for all 151 skills.
Test-Driven Development is one of the 15 skills in Jesse Vincent's Superpowers set. For every feature and bug fix, it makes Claude write a test, watch it fail, write only enough code to pass it, then tidy up while the tests stay green. It is instructions only, so it works anywhere skills load, but it only helps in a project where Claude can run the tests.
Who is Superpowers: Test-Driven Development for?
- Developers
- Teams adopting AI coding
- People who want proof the code works
What's inside Superpowers: Test-Driven Development
Test-Driven Development is a 330-line SKILL.md plus a 198-line guide to writing good tests; no scripts. It is pure instructions, so it works in any tool that reads skills, but it only pays off where Claude can run your project's tests.
When it switches on
It switches on whenever Claude is about to build a feature or fix a bug, before writing the code. Throwaway prototypes, generated code and config files are exceptions only if you agree.
What the instructions cover
- A hard rule: code written before its test is deleted and rebuilt from the test
- Running the whole test suite, not just the new test, and naming any failure in the report
- Good and bad test examples in TypeScript, and an eight-item checklist before calling work done
- A mutation check: imagine small bugs, like a wrong constant, and make sure some test would catch each
- Answers to eleven common excuses, such as "too simple to test"
| File | What it is |
|---|---|
SKILL.md | 330 lines: the core rule, the cycle, examples, excuses and the checklist |
writing-good-tests.md | 198 lines: naming the bug a test should catch, testing real code instead of mocks, the mutation check |
Watch out: The skill is strict on purpose: it tells Claude to throw away code written before a test, even hours of work, unless you allow an exception.
How to use Superpowers: Test-Driven Development: which prompts work?
Add a discount code feature to [YOUR APP] test-first: show me the failing test before any codeFix this rounding bug test-first and prove the new test fails without the fixBuild the password reset flow with red, green, refactor and run the whole test suite at the endHow do you install Superpowers: Test-Driven Development?
Skills follow the open Agent Skills standard, so this one is not tied to one company. Pick the AI tool you use. Not sure? The first tab covers most of them in one step. New to this? Our guide on how to install Claude skills walks through it, and Anthropic's plugin guide covers the Claude app.
Install this skill for me so it works in every project: run `npx skills add https://github.com/obra/superpowers/tree/main/skills/test-driven-development -g -y` in my terminal. If Node.js is missing, tell me how to install it first. When it's done, confirm the skill is installed and tell me how to start using it.Or do it yourself:
One command installs the skill: it finds the AI tools on your computer and asks which ones should get it.
npx skills add https://github.com/obra/superpowers/tree/main/skills/test-driven-development -gYou need Node.js installed (free, from nodejs.org). The -g flag makes the skill available in every project.
Good to know: The plugin route adds all 15 skills in Superpowers at once; the npx command above adds only this one.
Unlock the install steps
Free. Leave your email once to open the install steps for all 151 skills, and get the best new skills each month.
How did we check Superpowers: Test-Driven Development?
On November 8, 2026 we read all 2 files in the skill's folder, starting with its 330-line SKILL.md. The section on what's inside comes from those files. Its license is MIT. Its files were last changed in September 2026. We have not run it on a test task yet.
Not a developer? You can still use Superpowers: Test-Driven Development: you say in plain words what should work, Claude Code does the technical part and shows you what it checked. Working that way, from the first install to reading the result, is what our Claude Code course teaches (early access).
More skills worth a look
- Superpowers15 skills that make Claude Code brainstorm, plan, test and review before it codes
- TestedSuperpowers: BrainstormingTurn a rough idea into a clear written design before anything gets builtTest score8/10
- Superpowers: Subagent-Driven DevelopmentExecute a plan task by task with fresh subagents and a review after each step