| name | incident-debug |
| description | Systematic production incident debugging with hypothesis-test-conclude methodology. |
| disable-model-invocation | true |
| allowed-tools | Bash(*) Read Grep Glob |
| arguments | ["symptom"] |
| argument-hint | API returning 500 errors on /users endpoint |
Incident Debug
Systematic production incident debugging using hypothesis-test-conclude methodology.
IMPORTANT: Do not make any production changes without explicit user approval.
Step 1: Triage
- When did it start? Check deployment logs, recent releases, and timestamps.
- Blast radius: How many users/services are affected? Is it total or partial?
- Recent changes: What was deployed or changed in the last 24-48 hours?
- Error patterns: Examine logs, error rates, and monitoring dashboards.
Step 2: Hypothesize
Generate 3-5 ranked hypotheses for the root cause:
- Most likely cause based on symptoms and recent changes.
- Second most likely cause.
- Infrastructure-related possibility.
- Data-related possibility.
- External dependency failure possibility.
For each hypothesis, define:
- What evidence would confirm it
- What evidence would refute it
- How to test safely
Step 3: Test Each Hypothesis
For each hypothesis, systematically gather evidence:
- Execute the defined test procedure.
- Record result as: CONFIRMED, REFUTED, or INCONCLUSIVE.
- If inconclusive, identify what additional data is needed.
- Move to the next hypothesis if refuted.
Step 4: Root Cause
Once a hypothesis is confirmed:
- Document the root cause clearly.
- Explain the chain of events that led to the incident.
- Identify any contributing factors.
Step 5: Remediation Options
Present three tiers of remediation:
- Immediate: Quick fix to restore service (hotfix, rollback, config change).
- Short-term: Proper fix addressing the root cause (days).
- Long-term: Systemic improvements to prevent recurrence (weeks).
Step 6: Verification
After the fix is applied:
- Confirm the original symptom is resolved.
- Verify no new issues were introduced.
- Monitor for recurrence over a defined period.