/skill-madness:diagnose-loopfrom skill-madness
Disciplined bug diagnosis focused on building a fast, deterministic pass/fail reproduction loop first. Use for hard bugs, flaky tests, and performance regressions.
Ships in skill-madness. 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; scripts run unread.
Tradeoff caveat. This skill biases toward thoroughness over speed. For trivial bugs with obvious causes (typos, off-by-one, a missing import the stack trace already points at), skip phases and just fix it. For everything else — flaky tests, performance regressions, "it works on my machine," intermittent failures, anything you've stared at for more than 15 minutes — the discipline is the point. Adapted from mattpocock's
diagnosepattern.
diagnose-loop vs systematic-debugging. The plugin skill
superpowers:systematic-debuggingis the general "form a hypothesis before you touch a fix" discipline for any bug or unexpected behavior. Reach fordiagnose-loop(this skill) specifically when the payoff is in building a fast, deterministic, binary feedback loop first — flaky tests, performance regressions, hard-to-reproduce or intermittent failures. For a straightforward bug where you just need disciplined hypothesizing,superpowers:systematic-debuggingis the lighter fit.
Spend disproportionate effort here. Be aggressive. Be creative. Refuse to give up.
Every later phase mechanically consumes Phase 1's output. A fast deterministic loop turns hypothesizing into a binary search; a slow or noisy loop turns it into guessing. Building the loop is the work — the rest is bookkeeping.
A good loop has three properties: it runs in seconds, it returns a binary pass/fail signal, and it fails for the same reason every time. Optimize for those before doing anything else.
In order of cost — pick the cheapest one that actually reproduces the bug.
curl / HTTP request that reproduces — for API and webhook bugs; capture as a shell script so it replays in one line.diff against known-good output — golden-file testing for any tool that emits text.playwright skill. Never diagnose UI behavior from a headless run or from reading the component source: rendering and interaction bugs only show up in a real browser. Run Playwright with headless: false and keep the visible window part of the loop.git bisect — when the bug is recent and a known-good commit exists; the loop is the bisect script.Last resort: Human-in-the-loop bash harness — the user runs a step, the agent reads stdout. See scripts/hitl-loop.template.sh. Use this only when none of the above are reachable (e.g., bug needs physical hardware, a paid third-party service, or a manual UI step). Concrete snippets for all ten methods live in references/feedback-loop-recipes.md.
Make the loop faster, sharper, and more deterministic before using it to investigate. A 30-second loop that fires automatically beats a 5-second loop you have to remember to run. Sharpen by narrowing the test surface, stripping irrelevant setup, and removing log noise that hides the signal.
If the bug reproduces less than half the time, you don't have a loop yet — you have a coin flip. Raise the reproduction rate from ~1% to ~50% before doing anything else. Methods:
for i in {1..20}; do ...; done &) to surface racesRun the loop and confirm it shows the user's failure, not a nearby one. Read the failing assertion or output character-by-character against the reported symptom. Two bugs that look alike are still two bugs.
Generate three to five ranked falsifiable hypotheses. Each one uses the format in references/hypothesis-format.md: "If <X> is the cause, then <changing Y> will make the bug disappear." Show the list to the user before testing any of them — the user often knows which one is most likely from context the agent doesn't have.
Test one hypothesis at a time. Change one variable per loop iteration. Tag every debug log, print, or breakpoint with a unique token like [DEBUG-7f3a] (any short random string works) so Phase 6 cleanup is a single grep -r '\[DEBUG-7f3a\]'. Untagged debug output is how console.log("here") ships to production.
Write the regression test at the correct seam — the smallest scope where the bug is observable. If the natural seam doesn't exist (the test would have to reach into private implementation details to observe the failure), note this in the PR. A missing seam is a signal that the module has an architectural problem; recommend a follow-up invocation of architecture-rescue rather than papering over it with a brittle test.
grep -r '\[DEBUG-xxxx\]' . — every tagged line comes out.architecture-rescue as a follow-up issue.Forbidden: Skipping Phase 1. If you don't have a fast deterministic loop, no amount of staring at code will find the bug. Reading code without a loop is guessing with extra steps.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
87 skills in this plugin
/accessibility-auditAudit and fix web accessibility against WCAG 2.2 AA, Section 508 and the ADA: axe scan, keyboard, screen-reader and zoom checks, plain-language content and PDFs, source fixes, and an honest conformance report (ACR/VPAT draft). Use for any a11y review, fix or compliance question. Trigger on "accessibility audit", "is this ADA compliant", "Section 508", "WCAG", "VPAT", "a11y"./andonRun work through a live Andon board (the kanban that dispatches cards to Claude Code, Codex and Gemini on your machines): push a plan's cards with the skills each run must load, read the board, answer what needs you, administer a machine, and refresh this skill when Andon changes. Trigger on "/andon", "put this plan on andon", "what needs me on andon", "why isn't my card running".
/npx claudepluginhub ivy00johns/skill-madness --plugin skill-madnessOther plugins' skills for the same job