test-driven-development · obra/superpowers

Follow test-driven development when writing code

Guides you through the red-green-refactor workflow: write a failing test first, confirm it fails, then write the minimum code to pass, before refactoring. Useful when implementing features or bug fixes that need reliable, well-tested code.

Good for

  • Write a failing test before implementing a new feature
  • Fix a bug using red-green-refactor steps
  • Add test coverage before refactoring existing code
Source repository
obra/superpowers
Category
Coding

Open-source skills are maintained by their authors and listed as published, with attribution. Results depend on how well the skill fits your task and material.

A good place to start

Help me implement this feature using test-driven development, starting with a failing test.

Make your next great thing.

Bring a question, a file, or an idea that’s not quite there yet.