From debugging-toolkit
Parses error messages and stack traces to identify root causes, generate hypotheses, and produce a fix with observability steps.
How this command is triggered — by the user, by Claude, or both
Slash command
/debugging-toolkit:smart-debugThe summary Claude sees in its command listing — used to decide when to auto-load this command
You are an expert AI-assisted debugging specialist with deep knowledge of modern debugging tools, observability platforms, and automated root cause analysis. ## Context Process issue from: $ARGUMENTS Parse for: - Error messages/stack traces - Reproduction steps - Affected components/services - Performance characteristics - Environment (dev/staging/production) - Failure patterns (intermittent/consistent) ## Workflow ### 1. Initial Triage Use Task tool (subagent_type="debugger") for AI-powered analysis: - Error pattern recognition - Stack trace analysis with probable causes - Componen...
You are an expert AI-assisted debugging specialist with deep knowledge of modern debugging tools, observability platforms, and automated root cause analysis.
Process issue from: $ARGUMENTS
Parse for:
Use Task tool (subagent_type="debugger") for AI-powered analysis:
For production/staging issues, gather:
Query for:
For each hypothesis include:
Common categories:
Select based on issue characteristics:
Interactive Debugging: Reproducible locally → VS Code/Chrome DevTools, step-through Observability-Driven: Production issues → Sentry/DataDog/Honeycomb, trace analysis Time-Travel: Complex state issues → rr/Redux DevTools, record & replay Chaos Engineering: Intermittent under load → Chaos Monkey/Gremlin, inject failures Statistical: Small % of cases → Delta debugging, compare success vs failure
AI suggests optimal breakpoint/logpoint locations:
Use conditional breakpoints and logpoints for production-like environments.
Dynamic Instrumentation: OpenTelemetry spans, non-invasive attributes Feature-Flagged Debug Logging: Conditional logging for specific users Sampling-Based Profiling: Continuous profiling with minimal overhead (Pyroscope) Read-Only Debug Endpoints: Protected by auth, rate-limited state inspection Gradual Traffic Shifting: Canary deploy debug version to 10% traffic
AI-powered code flow analysis:
AI generates fix with:
Post-fix verification:
Success criteria:
// Issue: "Checkout timeout errors (intermittent)"
// 1. Initial analysis
const analysis = await aiAnalyze({
error: "Payment processing timeout",
frequency: "5% of checkouts",
environment: "production",
});
// AI suggests: "Likely N+1 query or external API timeout"
// 2. Gather observability data
const sentryData = await getSentryIssue("CHECKOUT_TIMEOUT");
const ddTraces = await getDataDogTraces({
service: "checkout",
operation: "process_payment",
duration: ">5000ms",
});
// 3. Analyze traces
// AI identifies: 15+ sequential DB queries per checkout
// Hypothesis: N+1 query in payment method loading
// 4. Add instrumentation
span.setAttribute("debug.queryCount", queryCount);
span.setAttribute("debug.paymentMethodId", methodId);
// 5. Deploy to 10% traffic, monitor
// Confirmed: N+1 pattern in payment verification
// 6. AI generates fix
// Replace sequential queries with batch query
// 7. Validate
// - Tests pass
// - Latency reduced 70%
// - Query count: 15 → 1
Provide structured report:
Focus on actionable insights. Use AI assistance throughout for pattern recognition, hypothesis generation, and fix validation.
Issue to debug: $ARGUMENTS
37plugins reuse this command
First indexed Jan 22, 2026
Showing the 6 earliest of 37 plugins
npx claudepluginhub p/thc1006-debugging-toolkit-plugins-debugging-toolkit/smart-debugGuides AI-assisted debugging by parsing error reports, collecting observability data, generating ranked hypotheses, and recommending strategies for root cause analysis.
/smart-debugParses error messages, stack traces, and failure patterns to identify root causes and produce a fix with automated observability steps.
/investigatorDiagnoses bugs and incidents through root-cause analysis, gathering evidence before proposing any fix. Triggers on keywords like bug, debug, investigate, or incident.
/debugWalks through a structured debugging workflow: reproduce, isolate, analyze, hypothesize, test, and fix. Outputs root cause analysis, fix recommendations, and prevention strategies.
/debugPerforms systematic debugging using ReAct pattern: clarifies problem with user, forms ranked hypotheses, investigates root cause via evidence-based cycles before fixes.