/magician:unravel <bug or error description>from magician
Systematic hypothesis-first debugging for bugs, errors, regressions, failing tests, and outages. Guides one-change-at-a-time investigation with knowledge graph lookups and a hypothesis preflight gate before any code changes.
Ships in magician. 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.
None: SKILL.md is the whole skill.
Bundled command: if
kgis not found, run it as${CLAUDE_PLUGIN_ROOT}/tools/kgand give subagents that full path. If that is missing too (Claude chat ships no plugin tools), skip thekgsteps and search the code directly.
Debug systematically. No random changes in the hope something helps.
Scale /effort to bug complexity — for deep, multi-layer root-cause hunts use xhigh (max only as an opt-in for a frontier problem; it is session-only). See lore/models.md.
Trigger phrases: "I have a bug / it's broken / not working / crashing", an error, exception, or stack trace, a regression, a test failure, a production issue or outage when the app is deployed. The investigation is grounded with /magic and the knowledge graph (kg query / kg blast) for root-cause research. Not for new features (/conjure, /ward) or performance tuning (/accelerate).
Describe the symptom — exact error message, stack trace, reproduction steps
State what you believe is wrong — one sentence: "I believe X is failing because Y"
State what evidence would confirm or refute it
Hypothesis gate (AskUserQuestion). Put the hypothesis to the user via AskUserQuestion (never bare prose) — "Does this hypothesis match what you're seeing?":
End your turn at the tool call. Do not read any code or make any change until the user picks or redirects. Treat a free-form "yes / matches / looks right" as Matches — investigate.
Once the hypothesis is agreed at the Phase 1 gate, run Phases 2–4 autonomously: don't stop to ask the owner before reading code, grep, kg query/blast/neighbors, adding targeted logging, running the failing case, or running the test suite. This skill pre-approves reads and the kg lookups only; reproduction commands, test runs, and edits go through Claude Code's normal permission prompt unless the user runs in auto mode or approves them. Re-gate only on the real side effect — the commit (git add/commit/push, per Phase 4). This does not weaken the Phase 1 HARD-GATE. See lore/autonomy.md.
kg query "<symptom/error/symbol>" to jump straight to the relevant file:line (and kg neighbors/kg blast to see what interacts with it) instead of broad greps — then read just those ranges.
file:line and often the fix itself; the top frame shows where it blew up, but the first frame in your own code is usually the real culprit. Feed that symbol straight into kg query./magic (context7 + web) to gather external evidence — known issues, version-specific bugs, correct API usage — and fold it into the hypothesis ranking in Phase 3.fix: <root cause>, not just symptom — in auto mode, confirm with the user before committing (the commit is a side effect).If this skill runs as a dispatched unit and hits something that blocks or degrades the work, do not wait for a human who is not there and do not silently ship a degraded result — return the Obstacles block from lore/obstacles.md (fields: STATUS, OBSTACLE, BLOCKER, SEVERITY, WORKAROUND, RECURRENCE, SCOPE, NEXT) to the caller alongside whatever you completed; interactively, say the same in prose.
"Root cause confirmed: . Fix applied and regression test added. Run /certify."
What SKILL.md sets; muted values are Claude Code's defaults
highnpx claudepluginhub alexander-tyagunov/magician --plugin magician25 skills in this plugin
/acceleratePerformance profiling and optimization, baseline first. Use when something is slow or must hit a latency/throughput target./almanacOne-time workspace setup; .workspace/, .gitignore, CLAUDE.md, optional AGENTS.md and REVIEW.md. Run once per project./autopsyBlameless post-mortem / RCA; timeline, 5-Whys, action items, committed write-up. Use after an incident or outage./blueprintTurns an approved spec into a TDD task plan, parallelism map and plan.md + plan.html. Use after spec approval, before coding./certifyVerification loop; tests, types, lint, build, Playwright for UI; evidence before success claims. Use to verify a change is green./chronicleSession history, references, context size, learnings. Use to review past sessions, remember or recall a reference, or capture learnings.Other plugins' skills for the same job