Skip to content

Phở Founder Lifetime: $59 once, 1 year of Phở AI included. Limited seats. See the offer

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.

  1. 01 Overview
  2. 02 When to Use
  3. 03 The Iron Law
  4. 04 Red-Green-Refactor
  5. RED - Write Failing Test
  6. Verify RED - Watch It Fail
  7. GREEN - Minimal Code
  8. Verify GREEN - Watch It Pass
  9. REFACTOR - Clean Up
  10. Repeat
  11. 05 Good Tests
  12. 06 Common Rationalizations
  13. 07 Red Flags - STOP and Start Over
  14. 08 Example: Bug Fix
  15. 09 Verification Checklist
  16. 10 When Stuck
  17. 11 Debugging Integration
  18. 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ở.