/debugging-diagnostics:minimal-reproductionfrom debugging-diagnostics
Isolates bugs from large applications into standalone, runnable scripts or single test cases using the subtraction method.
Ships in debugging-diagnostics. 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.
You cannot reliably fix what you cannot reliably reproduce in isolation. Apply the subtraction method until a single file deterministically triggers the exact reported error.
Start with the failure. Take the code path that fails.
Remove the UI/Network. If the bug is reported via a web request, write a script that calls the internal controller directly.
Mock dependencies. If the bug doesn't require the database, mock it. If it doesn't require the third-party API, mock it. Template:
// repro.js — minimal harness, no framework
const { failingFunction } = require("./src/module");
const fakeDb = { query: async () => [{ id: 1, value: null }] }; // smallest stub that triggers it
failingFunction(fakeDb, { payloadKey: "trigger-value" })
.then(() => { console.log("NO REPRO"); process.exit(0); })
.catch((err) => { console.error("REPRO:", err.message); process.exit(1); });
(Exit 0 on no-repro / non-zero on repro also makes the script directly usable by git bisect run.)
Prune data. If the bug fails on a 10MB JSON payload, binary search the payload down to the exact 2 keys that trigger the failure.
Final output. The result must be a single file — a standalone script or one test case — that relies on ZERO external state, can be run with a single command, and deterministically outputs the exact error reported.
node repro.js)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
bug-isolation, reproduction, debugging, minimal-reproduction
npx claudepluginhub yeaight7/agent-powerups --plugin debugging-diagnostics8 skills in this plugin
/bug-huntUse when reproducing, isolating, and fixing a bug with the smallest safe change./failure-triageUse when confronted with an unknown failure in CI or production, before committing to a deep debugging approach./flaky-test-investigationUse when tests pass and fail intermittently without code changes, or a test passes alone but fails in the full suite.Other plugins' skills for the same job