Skills Programación

Primero el test

Primero falla, luego pasa, luego se ordena

Test-Driven Development

Sigue rojo-verde-refactor: primero un test que falla y luego el código mínimo que lo hace pasar.

ClaudeCursorCodexGrok TDDtestsred-green-refactor

Qué es

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.

Prompt de ejemplo

Primero el test

Añade un límite de frecuencia con TDD. Muestra primero el test que falla y luego escribe la implementación.

Fuente: Superpowers

Leer la guía de instalación

Skills cercanos