debug-prod
Installation
SKILL.md
Production Debugging
Systematic production incident investigation. Mitigation comes before root cause — stop the bleeding first, then investigate why.
When to Use
- Something is broken or degraded in production right now
- Users are reporting errors or unexpected behavior in a live environment
- An alert fired and you need to understand what's happening
- You want to do a structured post-incident investigation
Iron Laws
- Mitigate before you investigate. Reducing user impact takes priority over finding root cause.
- Preserve evidence before changing anything. Capture logs, traces, and metrics snapshots before rolling back or restarting.
- Never guess — instrument and observe. Form a hypothesis, then get evidence. Never propose a fix based on intuition alone.
- Reproduce before fixing. If you cannot trigger the problem reliably, you cannot verify the fix.
- Protect context window. All log output goes to a file. Never dump raw logs inline — pipe through
grep/tailand show only relevant lines. - Clean before fixing. Run
git restore .to remove all debug instrumentation before implementing the fix.