Skip to content
Agent Orchestration
Skill

/diagnosis

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes

From plugin
superlite
24912 skills8 agents19 commands6 hooks

Claude Code

$ npx -y skills add iha2/superlite --skill diagnosis --agent claude-code

SKILL.md

diagnosis.SKILL.md
name: diagnosis
description: Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes

Diagnosis

Find the root cause before fixing. A fix without a known cause is a guess, and guesses create new bugs. Do not stack several changes at once.

Obvious failures: fix directly

A typo, a missing import, a clear stack trace pointing at the faulty line, a failing assertion whose cause is plain on reading the code. Fix it, re-run the focused test, move on. No ceremony.

Everything else

1. **Reproduce.** Get a reliable, minimal trigger: a command, a test, an input. Read the full error and stack trace, not just the first line. If it cannot be reproduced, gather more data (logs, inputs, environment); do not guess. 2. **Check what changed.** Recent diffs, new dependencies, config and environment differences often point straight at the cause. 3. **Trace the evidence.** In multi-component systems, log or inspect what enters and leaves each boundary to find which component breaks. For bad values, trace backward through the call chain to where the bad value originates and fix it there, not at the symptom. Compare with similar working code and list every difference. 4. **Hypothesize.** State the single most likely root cause in one sentence: "X is wrong because Y". Base it on evidence, not hunch. 5. **Probe.** Test the hypothesis with the smallest possible change or observation: one print, one assertion, one input. Change one thing at a time. Confirmed: go on. Refuted: form a new hypothesis from what you learned. Do not pile fixes on top. 6. **Fix.** Write a failing regression test that captures the bug (see `superlite:testing`), apply one fix at the root cause, and run the focused tests. Do not bundle refactors or "while I'm here" changes. 7. **Verify.** Confirm the original reproduction now passes and nothing nearby broke (focused run; the full suite goes through `bash <skill-dir>/../swarm/scripts/superlite-cli run_tests --full` at the wave or branch end; focused: `--fast PATHS`; read its one-line summary).

When fixes fail

  • **After 2 failed fixes:** stop. Re-read the evidence from scratch. Your model of the problem is wrong somewhere; list what you assumed and check each assumption.
  • **After 3 failed fixes:** change the approach. Attended: tell the human what you tried and what you learned, and ask. Unattended: hand it to a fresh agent on a stronger model with the repro, the evidence and the failed attempts. Three failures in different places often signal an architectural problem, not a bug. Record the ruling.

Red flags: back to step 1

  • "Quick fix now, investigate later."
  • "Just try changing X and see."
  • Proposing a fix before tracing where the bad value comes from.
  • Another fix attempt without new evidence.
  • "It's probably X" with nothing checked.

Handing off investigation

Give a subagent the repro, the error text and the hypotheses already ruled out. Ask for the cause and evidence, not a patch. Keep its report short.

Wrap-up

State the root cause, the fix, the regression test, and the evidence that it passes. If the cause was never found, say so rather than shipping a guess.

Read more
@iha2
Ships withsuperlite

A fast software factory workflow for Claude Code: one approval gate, parallel waves, routed models

24912 skills8 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
249
Star history of iha2/superlite on GitHub, a chart by star-history.com

Other skills on superlite.

drafting

drafting

Use when you have an approved design or requirements for a multi-step task and need an implementation plan, before touching code.

@iha2@iha2Install Skill
feature-prototype

feature-prototype

Use in feature mode after the feature plan is approved, to cut the smallest runnable container of an existing app for the…

@iha2@iha2Install Skill
inventing

inventing

Use when the user asks to build a feature or component, add functionality, or change behavior, before any implementation code is…

@iha2@iha2Install Skill
mvp-prototype

mvp-prototype

Use in MVP mode (/superlite:mvp), after the .mvp.md feature plan is written, to make the one-file clickable prototype, check it,…

@iha2@iha2Install Skill
proof

proof

Use when about to claim work is complete, fixed, or passing, before committing or creating PRs

@iha2@iha2Install Skill
research

research

Use when the user wants a topic researched with sources, a sourced report at a chosen language level, or conflicting evidence…

@iha2@iha2Install Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

clawdis2w393k
@steipete@steipeteInstall Skill
computer-use

computer-use

Drives the GUI of a visible local app window through `orca computer`: accessibility tree, clicks, typing, menus, dialogs, and…

orca2w111k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip2w109k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about diagnosis.

Which coding agents can use diagnosis?
diagnosis installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.