/supergraph:diagnosefrom supergraph
Provides a structured 6-phase debugging process with feedback loop, hypothesis falsification, and regression testing. Use when bugs exist or tests fail unexpectedly.
Ships in supergraph. 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.
Systematic debugging. Never guess and patch — build a feedback loop, prove the hypothesis, fix once.
Announce: "🐛 /supergraph:diagnose — building feedback loop..."
Read .supergraph-env for test/lint commands (if exists):
[ -f .supergraph-env ] && source .supergraph-env
This sets $TEST_CMD, $FOCUSED_TEST_CMD, $LINT_CMD. If absent, detect from project config (package.json → jest/vitest, pubspec.yaml → flutter test, etc.) same as /supergraph:scan.
Before touching any code, establish a fast, deterministic way to observe the bug.
# Identify the smallest command that shows the failure
$TEST_CMD --grep "<failing test name>" # focused test run
# or
<minimal repro command>
Goal: failure visible in < 5 seconds. If not, slim down the repro. Do NOT skip this phase. Debugging without a feedback loop is guessing.
test("<bug description>", () => { ... }) // RED
List falsifiable hypotheses, ordered most-to-least likely:
1. [Most likely] — [reason] — [how to falsify]
2. [Second] — [reason] — [how to falsify]
3. [Third] — [reason] — [how to falsify]
Rules:
search_graph(project=CBM_PROJECT, name_pattern=<suspect>)
trace_path(project=CBM_PROJECT, direction="inbound")
trace_path(project=CBM_PROJECT, direction="outbound")
Test hypothesis #1 first. Change ONE thing to observe ONE signal:
Rule: Never change the code under test and the instrumentation simultaneously.
Once root cause is confirmed:
$LINT_CMDMinimal fix means: fix the cause, not the symptom. If the fix touches a hub node → get user approval first.
If search/trace returns empty, label graph evidence unavailable and fall back to
Serena/filesystem evidence. Use the validated test-gaps recipe for missing tests.
Root cause: [X]
Fix: [Y]
Prevented recurrence by: [regression test / invariant documented]
git add [exact files]
git commit -m "fix: <description>"
✅ /supergraph:diagnose complete
- Root cause: [confirmed hypothesis]
- Fix: [what changed]
- Regression test: [test name / path]
- Tests: PASS | Lint: PASS
- Next: /supergraph:fix (if more issues) or /supergraph:verify
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub datit309/supergraph --plugin supergraph44 skills in this plugin
/analyzeRisk analysis and approach selection before planning. Use when requirements are ambiguous, approaches vary, or work touches hub/bridge nodes. Skip for typo fixes./architectureProactive architecture review — explore codebase structure, generate a self-contained HTML report with Mermaid diagrams and candidate improvements, then grill the findings. Use when planning a large refactor, onboarding to an unfamiliar codebase, or before a major architectural change./browser-agentAutonomous human-like browser control and professional QA/QC testing. Powered by agent-browser (Rust native CDP, zero Playwright) with ISTQB test matrix generation, automated testcase execution, console/network error tracing, and defect reporting.Other plugins' skills for the same job