/sdd:systematic-debuggingfrom sdd
Use when a bug is reported or a test fails unexpectedly, before proposing any fix - "debug this", "why is this failing", "it's broken", a regression, a flaky test, or a slow path. Registers a loop that goes red on the bug by script first, ranks falsifiable hypotheses, counts failed fixes by script and stops at three, bisects when a good version exists, and turns the fixed bug into a case.
Ships in sdd. 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.
Scripts live in <this skill's directory>/../../scripts/. Redact secrets in
anything you show: write <REDACTED> in their place.
Everything else consumes this. Find one command that drives the bug's code path and asserts the user's exact symptom: a failing test at the seam that reaches it, a curl against a running server, a CLI run diffed against a known good output, a replayed payload, a throwaway harness. Make it fast and deterministic; for a flaky bug, raise the reproduction rate until it is debuggable.
python3 <scripts>/repro.py record "<command>"
It is refused unless the command fails now. No registered loop, no hypotheses. If you cannot build one, say so, list what you tried, and ask the user for an environment, a captured artifact, or permission to instrument.
Cut inputs, callers, config and steps one at a time, rerunning the loop after each cut, until every remaining part is needed for it to fail.
List three to five, ranked, each falsifiable: "if X is the cause, changing Y makes the bug disappear". Show the list to the user, but do not wait on it.
If a known good version exists, bisect instead of guessing:
python3 <scripts>/repro.py bisect <id> <good-ref>.
Each probe tests one prediction. Tag every debug log [DEBUG- plus four hex
digits and ], the same tag throughout; verify blocks while any remains.
Rerun the loop after every attempted fix: python3 <scripts>/repro.py run <id>.
A red run on a changed tree counts as a failed fix. At three it prints STOP:
question the design instead of trying a fourth fix, and ask the user.
When it is green, add the bug to its story's spec as a new unexpected case, and name the regression test with that case's ID. Remove every tagged log. State the hypothesis that proved right in the commit message.
Continue with /sdd:verifying-before-done.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub mtch3n/trellis --plugin sdd7 skills in this plugin
/releasing-migrationsThe user merges the draft migrations written during development into numbered migrations, once, right before tagging a release, and runs the migration checks./solo-building-from-casesUse when a story's cases are approved and one agent builds them - the user chose solo at the approval, or asks to implement an approved spec. Builds each case test-first with the case ID in the test name, never edits an approved case's test to make it pass, and writes migrations as drafts./team-workflowUse only when the user chose team at the case approval, or explicitly asks for several agents to build an approved spec. Needs Trellis - cases become cards, workers claim them and run only their own tests, one worker owns the migrations, and the coordinator verifies once at integration.