Discusión

Test-First Bug Fix Workflow

De Wikiprompt, la enciclopedia libre de prompts

Ilker Ulusoy
Contribuido porIlker UlusoyFuente

21 feb 2026

Test-First Bug Fix Workflow A structured prompt for debugging with a test-first methodology, guiding the AI to reproduce, fix, and verify bugs while documenting changes.

Contenido del PromptGuardar

Este prompt está en inglés - funciona con todos los modelos de IA.

I have a bug: ${bug}. Take a test-first approach: 1) Read the relevant source files and existing tests. 2) Write a failing test that reproduces the exact bug. 3) Run the test suite to confirm it fails. 4) Implement the minimal fix. 5) Re-run the full test suite. 6) If any test fails, analyze the fai...

Iniciá sesión para ver el prompt completo

Iniciar Sesión para Continuar

Uso

Este prompt está diseñado para usarse con coding. Copiá el contenido de arriba y pegalo en tu herramienta de IA preferida.

Para mejores resultados, personalizá los marcadores (indicados con corchetes o mayúsculas) con tus requisitos específicos.

Referencias

Categorías:coding| prompts.chat| test-first| debugging

Discusión