Engineering · Skill
Test-Driven Development (TDD)
Use when implementing any feature or bugfix, before writing implementation code
Open in PhởWhat the skill covers
The sections of its instructions, in order.
- 01 Overview
- 02 When to Use
- 03 The Iron Law
- 04 Red-Green-Refactor
- RED - Write Failing Test
- Verify RED - Watch It Fail
- GREEN - Minimal Code
- Verify GREEN - Watch It Pass
- REFACTOR - Clean Up
- Repeat
- 05 Good Tests
- 06 Common Rationalizations
- 07 Red Flags - STOP and Start Over
- 08 Example: Bug Fix
- 09 Verification Checklist
- 10 When Stuck
- 11 Debugging Integration
- 12 Final Rule
Reference files
1 file Phở can open while it uses the skill.
- writing-good-tests.md
More in Dev workflow
- Verification Before Completion
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any…
- Code Review Reception
Use when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and…
Similar engineering skills
Frequently asked questions
What does Test-Driven Development (TDD) do?
Use when implementing any feature or bugfix, before writing implementation code
Is Test-Driven Development (TDD) free to use?
Yes. Test-Driven Development (TDD) is published by Jesse Vincent under the MIT licence, and you can use it with a free Phở account.
How do I use Test-Driven Development (TDD) in Phở?
Press Open in Phở, then Try to apply it to your next message, or add the Dev workflow set so Phở loads it whenever a request matches.
Does Test-Driven Development (TDD) need other tools?
No. It works in a normal Phở chat with what you type or upload.
Copied unchanged from obra/superpowers at commit 22f0b46 and credited to Jesse Vincent, who is not affiliated with Phở. The full instructions and licence text ship with the skill inside Phở.