Skills Coding

Test first

Red, then green, then refactor

Test-Driven Development

Follow red-green-refactor: write a failing test first, then the minimum code that passes.

ClaudeCursorCodexGrok TDDtestsred-green-refactor

What it is

Test-Driven Development from Superpowers makes the agent write the test before the implementation. It keeps scope small, prefers one failing assertion at a time, and refuses large untested dumps of code.

Example prompt

Test first

Add rate limiting with TDD. Show the failing test first, then the implementation.

Source: Superpowers

Read the full install guide

Related skills