Test Driven Development
Use when implementing any feature or bugfix, before writing implementation code
- Type
- Skill
- Author
- obra
- Category
- Testing
- GitHub stars
- 305.7K
- Installs
- 261.4K
- Last updated
- October 29, 2026
Install
npx skills add https://github.com/obra/superpowers --skill test-driven-developmentUse cases
- Write a failing test before implementing a new feature.
- Add a regression test first when fixing a bug.
- Keep the agent in a red-green-refactor loop while coding.
Frequently Asked Questions
When should this skill be used?
When implementing any feature or bugfix, before writing implementation code.
Does it apply to bug fixes as well as new features?
Yes, it enforces the test-first loop for both new features and bug fixes.
What workflow does it encourage?
A red-green-refactor rhythm instead of writing code and adding tests afterward.
About this skill
Enforces a test-first loop: write the failing test before any implementation code, for both new features and bug fixes. It's for developers who want the agent to stay in a red-green-refactor rhythm instead of writing code and bolting tests on afterward. Part of the obra/superpowers set of workflow skills.
Summary written with AI assistance from the project's public description.
Categories
More from obra
Brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user int...
by obra
Systematic Debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
by obra
Writing Plans
Use when you have a spec or requirements for a multi-step task, before touching code
by obra
Using Superpowers
Use when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying qu...
by obra
Similar Skills
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Ai Video Generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0,...
by inference-sh
Ai Image Generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FL...
by inference-sh