8-step protocol for fixing production bugs: write a failing test, apply minimal fix, verify green, then audit the testing system to prevent recurrence.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ai-driven-development:bug-fix-protocolThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
A bug fix is **two fixes in one**: fix the code, **and** fix the testing system that let the bug through. Skipping the second step means the same class of bug ships again.
A bug fix is two fixes in one: fix the code, and fix the testing system that let the bug through. Skipping the second step means the same class of bug ships again.
The full protocol (philosophy, eight steps with examples, audit checklist, anti-patterns) lives in PROTOCOL.md. Read it before applying.
Use this protocol whenever a defect reaches production, staging, or a customer environment. Do not use it for bugs caught locally during normal development — those are part of the writing process, not testing-system failures.
When applying the protocol, return:
If step 8 produces "we couldn't have caught this," investigate further — that answer is almost always wrong, and accepting it is how the testing system stagnates.
Full text: PROTOCOL.md.
npx claudepluginhub cscannellnexus/ai-driven-development2plugins reuse this skill
First indexed Jun 3, 2026
8-step protocol for fixing production bugs: write a failing test, apply minimal fix, verify green, then audit the testing system to prevent recurrence.
Debug skill: reproduce failure, name cause, write regression test, apply minimal fix. Use for unexplained bugs, flaky tests, or errors.
Systematic debugging methodology for finding and fixing bugs through root cause analysis. Covers reproduce-investigate-hypothesize-fix-prevent workflow, evidence-based diagnosis, and bug category strategies.