/second-opinion:debug-feedback-loopfrom second-opinion
Construct a fast, deterministic pass/fail signal for a bug BEFORE hypothesising — the missing mechanics behind "reproduce the bug". Offers a ladder of loop-construction techniques (failing test, curl/CLI harness, headless browser, trace replay, bisection, fuzz, differential), ranked falsifiable hypotheses, and tagged-instrumentation cleanup. Use when a bug is hard to reproduce, flaky/non-deterministic, lacks an obvious repro, or when getting a reliable signal is the bottleneck. Complements (does not replace) systematic-debugging, which owns root-cause discipline — reach for this when the hard part is getting a signal, not staying disciplined. Use only when the user explicitly asks for it ("/debug-feedback-loop", "build a feedback loop for this bug"); do not start it on your own.
Ships in second-opinion. 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.
systematic-debugging owns the discipline — no fixes before root cause, one variable at
a time, question the architecture after 3 failed fixes. This skill owns the mechanics it
assumes: how to actually construct the fast, deterministic pass/fail signal that every later
phase consumes. Use them together — this is the "Reproduce" step done properly.
The feedback loop is the work. A fast, deterministic, agent-runnable pass/fail signal for the bug is 90% of the fix — bisection, hypothesis-testing, and instrumentation all just consume it. Without one, no amount of reading code will save you. Spend disproportionate effort here. Be aggressive. Refuse to give up.
Try these in roughly this order; stop at the first that gives a reliable signal.
git bisect run can drive it.Build the right loop and the bug is 90% fixed.
Treat the loop as a product. Once you have a loop:
The goal isn't a clean repro — it's a higher reproduction rate. Loop the trigger 100×, parallelise, add stress, narrow timing windows, inject sleeps. A 50%-flake bug is debuggable; 1% is not. Keep raising the rate until it's debuggable, then proceed.
Once the loop reproduces the bug, generate 3–5 ranked hypotheses before testing any of them — single-hypothesis generation anchors on the first plausible idea. Each must be falsifiable:
"If X is the cause, then changing Y makes the bug disappear / changing Z makes it worse."
If you can't state the prediction, it's a vibe — sharpen or discard it. Show the ranked list before testing — domain knowledge often re-ranks instantly ("we just deployed #3"). Don't block on it if the user is AFK; proceed with your ranking.
Each probe maps to one prediction from §4. Change one variable at a time.
[DBG-a4f2]. Cleanup at the end is a
single grep. Untagged probes survive into commits; tagged ones die.performance.now(), profiler, query plan), then bisect. Measure first, fix second.Write the regression test before the fix, but only if a correct seam exists — one that exercises the real bug pattern as it occurs at the call site. A too-shallow seam (single-caller test for a multi-caller bug) gives false confidence.
If no correct seam exists, that itself is the finding. The architecture is preventing the bug from being locked down — note it, fix at the best available seam, and route the structural problem to an architecture review after the fix lands.
Stop and say so explicitly. List what you tried. Ask the user for one of: (a) access to an environment that reproduces it, (b) a captured artifact (HAR, log dump, core dump, timestamped screen recording), or (c) permission to add temporary production instrumentation. Do not hypothesise without a loop.
[DBG-...] probe.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/agent-watchdogUse when asked to watch, babysit, audit, review, compare, or fix another agent's work from a Codex session ID, Claude Code session/transcript, chat/thread link, PR, branch, log, or pasted run summary. Monitor until the other agent is done or blocked, reconstruct what the user asked, inspect what the agent actually changed and verified, report gaps, and optionally make scoped fixes when the user authorizes repair./efficient-frontier-routingRoutes each task to a suitable model tier in Claude Code, Codex, or another agent that can start subagents on a chosen model (for example Gemini CLI or Antigravity CLI), following the user's routing preferences. Keeps small tasks local, delegates discovery, routine coding, and testing to cheaper subagents, and sends difficult decisions and risky reviews to a stronger one. Use when deciding whether to delegate, writing subagent handoffs, or setting routing preferences, or when asked to "save tokens", "use cheaper models", "fan out subagents", "stay inside my quota", or "efficient-frontier-routing help"./llm-councilRun any question, idea, or decision through a council of 5 AI advisors who independently analyze it, peer-review each other anonymously, and synthesize a final verdict. Based on Karpathy's LLM Council methodology. MANDATORY TRIGGERS: 'council this', 'run the council', 'war room this', 'pressure-test this', 'stress-test this', 'debate this'. STRONG TRIGGERS (use when combined with a real decision or tradeoff): 'should I X or Y', 'which option', 'what would you do', 'is this the right move', 'validate this', 'get multiple perspectives', 'I can't decide', 'I'm torn between'. Do NOT trigger on simple yes/no questions, factual lookups, or casual 'should I' without a meaningful tradeoff (e.g. 'should I use markdown' is not a council question). DO trigger when the user presents a genuine decision with stakes, multiple options, and context that suggests they want it pressure-tested from multiple angles./plan-arbiterUse when asked to compare, cross-review, merge, judge, choose, or arbitrate competing plans from multiple agents such as Codex and Claude Code; when given two or more proposed plans, session IDs, transcripts, plan documents, PR descriptions, or pasted strategies; or when the user wants one recommended execution plan after agents review each other's proposals./spec-reviewUse when a design spec, plan, or requirements doc is drafted/ratified/about-to-be-implemented and you want a rigorous second-model review that verifies the spec's claims against the real codebase — catching wrong data-model assumptions (scalar-vs-M2M), unverified schema/API claims, missing acceptance criteria, ambiguity, and internal contradictions before code is written. The spec-world analog of /codex:review for PRs.npx claudepluginhub stylusnexus/agent-plugins --plugin second-opinion