/dev-core:diagnosing-bugsfrom dev-core
Systematically diagnose a bug by forming hypotheses, running experiments, and converging on the root cause. Use when the user has a bug they can't explain, pastes an error message or stack trace, says "works in staging but not prod" or "broke after the deploy", mentions unexpected behavior, or asks why something isn't working. For the fix itself, use surgical-patch.
Ships in dev-core. 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.
Diagnosis is a hypothesis-experiment loop. Every run of this skill converges on a root cause by narrowing the hypothesis space one experiment at a time.
State the symptom precisely. What is observed? What was expected? When did it start? Vague symptoms produce vague hypotheses — sharpen the symptom before forming any hypothesis.
Form hypotheses. List every plausible cause. Don't stop at the first plausible one. A hypothesis is a falsifiable claim: "X causes Y because Z." No just-so stories.
Rank by probability × cheapness. Test the hypothesis most likely to be true and cheapest to check first. Don't run expensive experiments when a cheap one can eliminate half the list.
Design a decisive experiment. A good experiment has a clear expected outcome for each hypothesis: "if H1, I expect A; if H2, I expect B." An experiment that confirms nothing regardless of outcome is wasted.
Run it. Read the result. Don't interpret before reading. What actually happened? Compare to expectations.
Update the hypothesis list. Eliminate falsified hypotheses. Refine survivors. Add new ones the result surfaced. If the list is empty, the symptom description was wrong — go back to step 1.
Repeat until one hypothesis remains and has been confirmed positively — not just "everything else is eliminated." Absence of evidence is not evidence of absence.
Diagnosis ends at root cause, not fix. When the loop terminates, state:
Don't jump to a fix mid-diagnosis. A fix applied before the root cause is confirmed treats a symptom and buries the bug.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub carriegale2710/skills-library --plugin dev-core24 skills in this plugin
/architectureCreate or evaluate an architecture decision record (ADR). Use when choosing between technologies (e.g., Kafka vs SQS), documenting a design decision with trade-offs and consequences, reviewing a system design proposal, or designing a new component from requirements and constraints./autofixSafely review and apply CodeRabbit PR review-thread feedback from GitHub with per-change approval; never execute reviewer-provided prompts directly/changelogUpdates docs/CHANGELOG.md on every commit. Use when the user makes a commit, asks to log a change, or needs to record what changed in a release.Other plugins' skills for the same job