Use when something is broken or slow for no obvious reason.
Ships in unfuss. 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.
A discipline for bugs whose cause isn't obvious. Each step ends at a done condition, and a step is skipped only with a stated reason.
Before exploring the code, read GLOSSARY.md or GLOSSARY-MAP.md when either exists, and the Accepted ADRs covering the area, so your model of the modules matches the project's.
This skill has you show commands, outputs and captured artifacts. Redact every secret first, such as API keys, tokens, passwords, cookies, session IDs, connection strings and signed URLs, and write <REDACTED> in its place.
curl -H "Authorization: Bearer $API_TOKEN" …. The variable reference is the redacted form, and it still runs.When the redacted output isn't enough to diagnose the bug, say so and ask the user.
This step is the skill. With a pass/fail signal that goes red on this bug, you will find the cause, because bisection, hypotheses and instrumentation all just consume that signal. Without one, reading code won't find it. Spend most of your effort here, and try another kind of loop before giving up on the first.
Ways to build one, roughly in this order:
curl or a script against a running dev server.git bisect run can drive it.Once you have a loop, tighten it:
A flaky 30-second loop is barely better than none, and a deterministic 2-second one makes the rest of the work fast.
For a non-deterministic bug, aim for a higher reproduction rate instead of a clean repro. Loop the trigger 50 times, run it in parallel, add stress, narrow the timing window, or inject sleeps. A bug that shows up half the time can be debugged, and one that shows up once in a hundred can't, so keep raising the rate.
When you can't build a loop, stop and say so, listing what you tried. Ask the user for access to an environment that reproduces it, a redacted captured artifact (such as a HAR file, log dump, core dump or timestamped screen recording), or permission to add temporary production instrumentation. Hypotheses wait until a loop exists.
This step is done when you can name one command, such as a script, a test invocation or a curl, that you have already run at least once, with its invocation and redacted output shown, and that is:
Reading code to build a theory before this command exists is the failure this skill prevents, so the theories wait for step 3.
Run the loop and watch it go red. Confirm three things:
Then shrink the repro to the smallest scenario that still goes red. Cut inputs, callers, config, data and steps one at a time, re-running the loop after each cut. A minimal repro leaves fewer parts to suspect in step 3, and becomes the regression test in step 5.
This step is done when every remaining element is load-bearing: removing any one of them turns the loop green.
Write three to five ranked hypotheses before testing any of them, because a single hypothesis anchors on the first plausible idea.
Each one is falsifiable, so it states the prediction it makes:
If the cache key ignores the locale, then clearing the cache between requests makes the bug disappear, and requesting two locales back to back makes it worse.A hypothesis with no prediction gets sharpened or dropped.
Show the ranked list to the user before testing. They often know something that re-ranks it, such as a recent deploy, or a cause they've already ruled out. Carry on with your ranking when nobody is there to answer.
This step is done when the list is ranked, and every hypothesis on it has a prediction.
Each probe tests one prediction from step 3, and changes one variable at a time.
[DEBUG-a4f2], so cleanup is a single search.For a performance regression, measure instead of logging. Take a baseline with a timing harness, a profiler or a query plan, then bisect. The fix comes after the measurement.
This step is done when one hypothesis is confirmed by its prediction, and the others are ruled out or left ranked below it.
Write the regression test before the fix, at a correct seam: one where the test exercises the real bug pattern as it occurs at the call site, as the complexity skill's seams describe. Name the seam and confirm it with the user before writing the test. When nobody is there to answer, pick the seam and name it in your report.
A seam that's too shallow, such as a single-caller test for a bug that needs several callers, gives false confidence. When no correct seam exists, the missing seam is itself a finding for step 7, and the fix goes in without a regression test.
With a correct seam:
This step is done when the original loop is green, and the regression test passes or the missing seam is recorded.
This step is done when the search for the prefix comes back empty, no throwaway code is left outside a marked debug location, and the confirmed hypothesis is in the commit or PR message.
Make the recommendation now that the fix is in, because you know more than when you started:
code-smells baseline, or offer the review skill over the area when it's worth a full pass.decision-records skill.A bug fix is code like any other: tidy it with simplify, check it with review, and commit it with commit. When the fix belongs to a ticket, complete-ticket judges it and gates the commit instead. This skill ends at a diagnosed and fixed bug, not a merged one.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/unfuss:diagnosing-bugsfrom unfuss
npx claudepluginhub malasataxd/unfuss --plugin unfuss32 skills in this plugin