
This is a structured debugging workflow that walks you through reproduce, isolate, diagnose, and fix steps instead of letting you flail around randomly. You trigger it with an error message, stack trace, or vague complaints like "this broke after the deploy" or "works in staging but not prod." It produces a formatted debug report with root cause analysis and prevention suggestions. If you have monitoring or source control connectors hooked up, it'll pull logs, recent commits, and deploy history to correlate with the issue. The four step framework is obvious in retrospect but genuinely helpful when you're staring at a cryptic 500 error at 2am and need to think systematically instead of cargo culting fixes from Stack Overflow.
$ npx -y skills add anthropics/knowledge-work-plugins --skill debug --agent claude-codeInstalls into .claude/skills of the current project.
If you see unfamiliar placeholders or need to check which tools are connected, see CONNECTORS.md.
Run a structured debugging session to find and fix issues systematically.
/debug $ARGUMENTS
┌─────────────────────────────────────────────────────────────────┐
│ DEBUG │
├─────────────────────────────────────────────────────────────────┤
│ Step 1: REPRODUCE │
│ ✓ Understand the expected vs. actual behavior │
│ ✓ Identify exact reproduction steps │
│ ✓ Determine scope (when did it start? who is affected?) │
│ │
│ Step 2: ISOLATE │
│ ✓ Narrow down the component, service, or code path │
│ ✓ Check recent changes (deploys, config changes, dependencies) │
│ ✓ Review logs and error messages │
│ │
│ Step 3: DIAGNOSE │
│ ✓ Form hypotheses and test them │
│ ✓ Trace the code path │
│ ✓ Identify root cause (not just symptoms) │
│ │
│ Step 4: FIX │
│ ✓ Propose a fix with explanation │
│ ✓ Consider side effects and edge cases │
│ ✓ Suggest tests to prevent regression │
└─────────────────────────────────────────────────────────────────┘
Tell me about the problem. Any of these help:
## Debug Report: [Issue Summary]
### Reproduction
- **Expected**: [What should happen]
- **Actual**: [What happens instead]
- **Steps**: [How to reproduce]
### Root Cause
[Explanation of why the bug occurs]
### Fix
[Code changes or configuration fixes needed]
### Prevention
- [Test to add]
- [Guard to put in place]
If ~~monitoring is connected:
If ~~source control is connected:
If ~~project tracker is connected:
Sponsors