Systematic root-cause debugging workflow covering reproduce, investigate, hypothesize, fix, and prevent phases. Use for bugs, test failures, flaky behavior, production errors, or integration failures.
Ships in knowledge-virtuoso. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
No fix without root cause. Never apply a fix until you can explain WHY the bug exists, not only WHERE it shows up. Symptom-level fixes create new bugs.
Establish a reliable reproduction before investigating.
Output: Documented reproduction steps, minimal test case
If you cannot reproduce: Document what you tried, check environment differences, add instrumentation, and wait for the next occurrence. Do not move to Phase 2 on guesswork. Unreproducible bugs get logged, not "fixed."
Gather evidence systematically. Do NOT form hypotheses yet. This phase is about observation, not explanation.
git log --since="2 weeks ago", git bisect)Production vs development debugging:
Output: Evidence log (what you found, where, timestamps), affected component map
Form competing hypotheses ranked by evidence strength.
Output: Ranked hypothesis list with evidence and test plan
Validate one hypothesis at a time. Change a single variable per test.
Red flags (return to Phase 2 immediately):
Output: Confirmed root cause with evidence chain
Implement the fix at the source, not at the symptom.
Output: Fix with regression test, clean test suite
Make sure this class of bug cannot recur.
Output: Prevention measures, post-mortem (if significant)
Different bug types need different investigation approaches. See bug categories reference for the full guide.
| Category | First move | Key technique |
|---|---|---|
| Logic error | Read the code, trace conditions | Rubber duck walkthrough, truth tables |
| Data issue | Inspect actual vs expected data at each boundary | Boundary logging, data flow trace |
| State/race condition | Add timestamps to all state mutations | Sequence diagram, concurrency analysis |
| Integration failure | Check API contract compliance | Request/response logging, contract tests |
| Performance | Profile before guessing | Profiler, flame graphs, query analysis |
| Environment | Compare working vs broken env | Differential analysis, config audit |
| Intermittent/flaky | Increase observability first | Statistical logging, stress testing |
Stop debugging and escalate when:
Escalate to:
| Situation | Escalate to |
|---|---|
| Design or architecture issues | Architect |
| Cannot reproduce, need more info | QA team |
| Scope, priority, or trade-off questions | PM / Product Owner |
| Dependency or infrastructure issues | Platform / DevOps team |
| Security implications discovered | Security team immediately |
What SKILL.md sets; muted values are Claude Code's defaults
No slash command · from knowledge-virtuoso
npx claudepluginhub krzysztofsurdy/code-virtuoso --plugin knowledge-virtuoso6 skills in this plugin
/accessibilityWeb accessibility patterns and WCAG 2.1/2.2 compliance. Use to build accessible components, audit a UI for a11y issues, fix screen reader or keyboard problems, check contrast, or add ARIA./context-engineeringHow to budget and structure what a coding agent sees. Use when asked to trim, split or write AGENTS.md, CLAUDE.md, rules files or skill descriptions (for example 'CLAUDE.md is too long'), when an agent ignores instructions, forgets rules or drifts in long sessions, and when planning compaction or progress notes./docs-lookupLooks up current, version-correct docs before answering a library question from memory. Use when asked for an exact method signature, argument order, config key, CLI flag, or the call for 'our version' or a named version (for example 'in 7.2'). Check the docs or lockfile first even when sure, because APIs change between versions./performanceProfiling-driven performance optimization: caching, query tuning, N+1 fixes, memory, and load testing. Use to diagnose a bottleneck or set performance budgets./securityApplication security principles and OWASP Top 10. Use to review code for vulnerabilities, implement authentication or authorization, handle secrets, configure security headers, prevent injection (SQL, XSS, CSRF), or prepare for an audit.Other plugins' skills for the same job