What problem does it solve?
It solves the problem of recurring production defects by requiring every bug fix to address not only the code symptom but also the testing-system blind spot that allowed the defect to ship.
Core Features & Use Cases
- Two-fix discipline (code + testing system): Treats each production bug as both a software defect and an incomplete quality net.
- Test-first repair workflow: Forces creation of a failing test (red) before implementing the minimal fix (green).
- Testing-system audit (step 8): Diagnoses why coverage missed the issue and prescribes concrete improvements to prevent the next occurrence.
- Use cases: Applying the protocol to production incidents, regression investigations, post-mortems, and defect-driven test gap audits.
Quick Start
Use the bug-fix-protocol skill when you are told to fix a production bug, and ask the AI to follow the eight steps from reproduction and failing test through an explicit step-8 testing-system audit.