
debugging-toolkit
Interactive debugging agent and command that traces root causes and reduces developer friction.
- version
- 1.2.0
- GitHub stars
- 126
Own this plugin? Claim it
What it does
- Adds the
/smart-debugcommand, adebuggeragent, and adx-optimizeragent for error triage and workflow tuning - Runs a 10-phase debugging workflow from triage and hypothesis ranking through fix validation and regression tests
- Pulls observability data from Sentry, DataDog, and Jaeger, and prefers production-safe techniques during investigation
- Designed for developers chasing intermittent failures or trimming onboarding and build friction in their projects
Interactive debugging, developer experience optimization, and smart debugging workflows
Add marketplace
/plugin marketplace add HermeticOrmus/LibreUIUX-Claude-CodeRun it inside Claude Code once, then install the plugin below.
Install
/plugin install debugging-toolkit@libreuiuxRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceYou 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
- Component dependency analysis
- Severity assessment
- Generate 3-5 ranked hypotheses
- Recommend debugging strategy
2. Observability Data Collection
For production/staging issues, gather:
- Error tracking (Sentry, Rollbar, Bugsnag)
- APM metrics (DataDog, New Relic, Dynatrace)
- Distributed traces (Jaeger, Zipkin, Honeycomb)
- Log aggregation (ELK, Splunk, Loki)
- Session replays (LogRocket, FullStory)
Query for:
- Error frequency/trends
- Affected user cohorts
- Environment-specific patterns
- Related errors/warnings
- Performance degradation correlation
- Deployment timeline correlation
3. Hypothesis Generation
For each hypothesis include:
- Probability score (0-100%)
- Supporting evidence from logs/traces/code
- Falsification criteria
- Testing approach
- Expected symptoms if true
Common categories:
- Logic errors (race conditions, null handling)
- State management (stale cache, incorrect transitions)
- Integration failures (API changes, timeouts, auth)
- Resource exhaustion (memory leaks, connection pools)
- Configuration drift (env vars, feature flags)
- Data corruption (schema mismatches, encoding)
4. Strategy Selection
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
5. Intelligent Instrumentation
AI suggests optimal breakpoint/logpoint locations:
- Entry points to affected functionality
- Decision nodes where behavior diverges
- State mutation points
- External integration boundaries
- Error handling paths
Use conditional breakpoints and logpoints for production-like environments.
6. Production-Safe Techniques
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
7. Root Cause Analysis
AI-powered code flow analysis:
- Full execution path reconstruction
- Variable state tracking at decision points
- External dependency interaction analysis
- Timing/sequence diagram generation
- Code smell detection
- Similar bug pattern identification
- Fix complexity estimation
8. Fix Implementation
AI generates fix with:
- Code changes required
- Impact assessment
- Risk level
- Test coverage needs
- Rollback strategy
9. Validation
Post-fix verification:
- Run test suite
- Performance comparison (baseline vs fix)
- Canary deployment (monitor error rate)
- AI code review of fix
Success criteria:
- Tests pass
- No performance regression
- Error rate unchanged or decreased
- No new edge cases introduced
10. Prevention
- Generate regression tests using AI
- Update knowledge base with root cause
- Add monitoring/alerts for similar issues
- Document troubleshooting steps in runbook
Example: Minimal Debug Session
// 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
Output Format
Provide structured report:
- Issue Summary: Error, frequency, impact
- Root Cause: Detailed diagnosis with evidence
- Fix Proposal: Code changes, risk, impact
- Validation Plan: Steps to verify fix
- Prevention: Tests, monitoring, documentation
Focus on actionable insights. Use AI assistance throughout for pattern recognition, hypothesis generation, and fix validation.
Issue to debug: $ARGUMENTS
Readme
Debugging Toolkit
Root cause analysis, developer experience optimization, and AI-assisted smart debugging workflows.
Overview
The debugging-toolkit plugin provides agents and a command for systematic debugging and developer experience improvement. Use it when encountering errors, test failures, or unexpected behavior that needs root cause analysis, or when you want to reduce development friction through better tooling, workflows, and automation. The smart-debug command orchestrates a comprehensive AI-powered debugging workflow from triage through fix validation.
Contents
Agents
-
debugger -- Debugging specialist for errors, test failures, and unexpected behavior. Captures error messages and stack traces, identifies reproduction steps, isolates failure locations, implements minimal fixes, and verifies solutions. Provides root cause explanations with evidence, specific code fixes, testing approaches, and prevention recommendations. Uses the
haikumodel. -
dx-optimizer -- Developer Experience (DX) specialist that reduces friction and automates repetitive tasks. Covers environment setup simplification (onboarding under 5 minutes), workflow automation (aliases, shortcuts, build optimization), tooling enhancement (IDE settings, git hooks, CLI commands), and documentation (setup guides, troubleshooting). Delivers measurable improvements to development velocity. Uses the
haikumodel.
Commands
- smart-debug -- AI-assisted debugging workflow with 10 structured phases: initial triage with hypothesis generation, observability data collection (Sentry, DataDog, Jaeger), hypothesis ranking with probability scores, strategy selection (interactive, observability-driven, time-travel, chaos, statistical), intelligent instrumentation placement, production-safe techniques, root cause analysis, fix implementation with impact assessment, validation, and prevention through regression tests and monitoring.
Usage
Install the plugin by adding it to your Claude Code configuration:
claude plugins add debugging-toolkit
Then invoke the command with your issue description:
/smart-debug Intermittent 504 timeout errors in checkout flow affecting 5% of users
Related Plugins
- error-debugging -- Error-specific analysis with multi-agent review capabilities
- error-diagnostics -- Error classification, structured logging, and observability setup
- distributed-debugging -- Debugging across distributed systems and Kubernetes clusters
Details
- Marketplace
- HermeticOrmus/LibreUIUX-Claude-Code
- Source
- plugins/debugging-toolkit
- Author
- Seth Hobson
- Category
- Development
- License
- MIT
- Keywords
- debugging, developer-experience, troubleshooting, essential
- Listed since
- Apr 7, 2026
More from HermeticOrmus/LibreUIUX-Claude-Code
All 71- dependency-managementv1.2.0
- deployment-strategiesv1.2.0
- deployment-validationv1.2.0
- design-masteryv1.1.0
- developer-essentialsv1.0.0
- distributed-debuggingv1.2.0
- documentation-generationv1.2.0
- error-debuggingv1.2.0
- error-diagnosticsv1.2.0
- framework-migrationv1.2.2
- frontend-mobile-developmentv1.2.0
- frontend-mobile-securityv1.2.0
- full-stack-orchestrationv1.2.1
- functional-programmingv1.2.0
- game-developmentv1.2.0
- git-pr-workflowsv1.2.1
- hr-legal-compliancev1.2.0
- incident-responsev1.2.1
- javascript-typescriptv1.2.1
- julia-developmentv1.0.0
- jvm-languagesv1.2.0
- kubernetes-operationsv1.2.1
- libreuiux-hooksv1.0.0
- llm-application-devv1.2.1
Similar to debugging-toolkit
More Developer Tools
error-diagnosticsPluginHermeticOrmus/LibreUIUX-Claude-Code126 starsError tracing, root cause analysis, and smart debugging for production systems
developer-toolkitPluginarmanzeroeight/fastagent-plugins29 starsEssential development tools for code review, debugging, and refactoring. Includes strategic agents for high-level decisions and tactical skills for specific ope
engineering-debuggingPluginmarslanalvi/SkillsStack5 starsDebugging, root-cause analysis, error handling and regression hunting
bug-detectivePluginrohitg00/awesome-claude-code-toolkit2.8K starsDebug issues systematically with root cause analysis and execution tracing
distributed-debuggingPluginHermeticOrmus/LibreUIUX-Claude-Code126 starsDistributed system tracing and debugging across microservices
debuggerSkillzhaono1/agent-playbook678 installsSystematic debugging workflow that reproduces, isolates, and verifies fixes across JavaScript, Python, and Go.