Red First

Regression-test-first bug fixing: reproduce, write a failing test that proves the bug, show it red, then fix to green with the minimal pattern-consistent change. Use whenever the user reports a bug, pastes failing behavior or a stack trace, or says "fix this bug", "found a bug", "write the failing regression test", "prove the bug first". A bug is not fixed until a test proves it was real. When a log file is the evidence, delegate diagnosis to the log-analyzer skill, then return here for the test-first fix.

digitaldreams 33b56e3 3.1 KB Updated

File contents

digitaldreams/tuhin/tree/main/skills/red-first commit 33b56e3b3f

Frequently asked questions

npx skillmds@latest add digitaldreams/red-first