Bug Fix Protocol
Forces a red-test-first bug fix plus a mandatory audit of why the test suite missed it.
Test report
- Verdict
- Tested · Works
- Score
- Tested
- Jul 13, 2026
- Environment
- Claude Code 2.x (agent harness)
- Upstream re-checked
- Aug 10, 2026 · 8b1e945
Ran a real red-green cycle on a discount-calc bug: baseline just silently patched the null-pct case, while following the skill produced a checked-in pytest regression test plus a concrete step-8 finding ('no None-guard test existed - add parametrized coverage + a type hint') that the baseline never produces.
Scored on four weighted criteria — install, triggering, output vs. baseline, docs. How scoring works
- Installs cleanly 5/5
- Triggers reliably 5/5
- Output vs. baseline 8/10
- Docs & honesty 3/5
What Bug Fix Protocol does
An 8-step disciplined protocol for fixing production bugs: reproduce, write a failing test first, trace the real root cause, apply the minimal fix, verify green, run the full suite, document, then (the mandatory final step) audit which test layer should have caught the bug and close that gap. Trigger it on 'fix this bug', 'production bug', 'regression test', 'post-mortem', or 'why did the tests miss this' - not for bugs caught locally during normal dev.
How to install Bug Fix Protocol
git clone https://github.com/CodeAlive-AI/ai-driven-development
cd ai-driven-development
mkdir -p ~/.claude/skills
cp -r skills/bug-fix-protocol ~/.claude/skills/bug-fix-protocol
Skills live in ~/.claude/skills/ (global) or .claude/skills/
(per-project). Restart Claude Code after installing.
Commands — how to trigger Bug Fix Protocol
-
/bug-fix-protocolForces a red-test-first bug fix plus a mandatory audit of why the test suite missed it.
It also activates on plain-language prompts like these:
-
Fix this production bug and write a failing test first -
Reproduce this regression, fix the root cause, and verify it's green -
Audit why our test suite missed this bug after fixing it
Frequently asked questions
- Is the Bug Fix Protocol skill free?
- Yes. The skill itself is free from CodeAlive-AI/ai-driven-development. SkillProof publishes the install command and an independent test verdict at no cost.
- Does Bug Fix Protocol work with Claude Code?
- We tested it with Claude Code 2.x (agent harness) on Jul 13, 2026. Verdict: Tested · Works. Ran a real red-green cycle on a discount-calc bug: baseline just silently patched the null-pct case, while following the skill produced a checked-in pytest regression test plus a concrete step-8 finding ('no None-guard test existed - add parametrized coverage + a type hint') that the baseline never produces.
- What is the Bug Fix Protocol SkillProof Score?
- 8.4/10 — installs cleanly 5/5, triggers reliably 5/5, output vs. baseline 8/10, docs & honesty 3/5.
- How do I install Bug Fix Protocol?
- Copy the install command from this page, run it in your terminal, and restart Claude Code. Skills live in ~/.claude/skills/ (global) or .claude/skills/ inside a project.
- Can I use Bug Fix Protocol with Cursor, Copilot, Gemini CLI, Codex or other AI tools?
- The SKILL.md format is native to Claude (Claude Code, Desktop, claude.ai). The instructions inside adapt to other assistants: Cursor rules, GitHub Copilot instructions, Windsurf rules, Custom GPTs, AGENTS.md for OpenAI Codex, and GEMINI.md for Google Gemini CLI — our conversion guides cover each, and the free converter on the tools page does the wrapping for you.