/sdd:debug <failure-summary>from sdd
Root-cause-first debugging protocol - reproduce, isolate, confirm the root cause, then plan the minimal fix. Use when an implementer is blocked, verification fails, or repeated remediation does not converge.
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.
This skill is for fresh-context root cause investigation. It combines local evidence, runtime/config inspection, and external documentation or issue research when available. It is not a patch generator for guess-first debugging.
This is the protocol the impl orchestrator's debugger role implements
(skills/impl/templates/debugger-prompt.md): the template is the single
source of truth for the dispatch contract, and where the two differ, the
template's outcome block wins. This document carries the full method and
stands alone for ad-hoc use - investigating any failure by hand, with no
orchestrator dispatch.
beans is the only tracker - verdicts and outcomes are bean state (statuses, verdict lines, tags), never checkboxes or progress notes written into documents; when running standalone, report findings in chat and let the caller record any beans.
BLOCKEDDo not use this skill to speculate about fixes before gathering evidence.
Provide:
git diff or summary of uncommitted failed changesrequirements.md, design.md)## Implementation NotesRun the failing command. Capture and read carefully:
Shrink the failure to the smallest reproducing unit - one command, one file, one code path.
Form ONE primary hypothesis and validate it against evidence before proposing anything:
package.json,
pyproject.toml, go.mod, Makefile, README*, build config,
tsconfig or equivalent language/runtime config, runtime-specific
config, dependency versions and scripts, relevant changed files from
git diff.A hypothesis is confirmed by evidence, never by trying a fix to see what happens. Classify the confirmed cause with one category:
MISSING_DEPENDENCYRUNTIME_MISMATCHMODULE_FORMATNATIVE_ABICONFIG_GAPLOGIC_ERRORTASK_ORDERING_PROBLEMTASK_DECOMPOSITION_PROBLEMSPEC_CONFLICTEXTERNAL_DEPENDENCYThe smallest set of repo-fixable actions that removes the cause rather than the symptom - each action naming its file path - plus the verification commands that will prove resolution. Decide the outcome:
Do not propose a brute-force code fix as a substitute for revising the task beans or the approved plan, and do not escalate prematurely when the issue is plainly repo-fixable.
If the first confirmed hypothesis fails verification, you get exactly one refinement. Past that, return UNRESOLVED with the root cause found so far and the escalation block filled.
Do not propose a multi-fix shotgun plan. Identify the root cause first, then produce the smallest plausible fix plan. If the true problem is a spec conflict or architecture problem, say so directly.
| Rationalization | Reality |
|---|---|
| “This probably just needs a quick patch” | Patch-first debugging creates rework. |
| “Let’s try a few fixes” | Multi-fix guessing hides root cause. |
| “The spec is probably wrong, I’ll adapt it” | Spec conflicts must be surfaced explicitly. |
| “The docs search is optional” | For runtime/dependency issues, docs and version issues often contain the shortest path to root cause. |
End the investigation with exactly one outcome block in this shape
(identical to the debugger template's contract; the orchestrator parses
the heading and the - OUTCOME: line mechanically):
## Debug Outcome
- OUTCOME: RESOLVED | UNRESOLVED
- ROOT_CAUSE: <1-2 sentence root cause>
- CATEGORY: MISSING_DEPENDENCY | RUNTIME_MISMATCH | MODULE_FORMAT | NATIVE_ABI | CONFIG_GAP | LOGIC_ERROR | TASK_ORDERING_PROBLEM | TASK_DECOMPOSITION_PROBLEM | SPEC_CONFLICT | EXTERNAL_DEPENDENCY
- FIX_PLAN: <RESOLVED only - numbered minimal repo-fixable actions with file paths>
- VERIFICATION: <command(s) to confirm the fix>
- STUCK: <UNRESOLVED only - what is established and why it does not resolve>
- ESCALATION: <UNRESOLVED only>
1. Per plan: <what the plan/task bean specified>
2. Actual: <what happened>
3. Why it matters: <consequence>
4. Options: accept as-is / fix now / change the plan / abort
- CONFIDENCE: HIGH | MEDIUM | LOW
RESOLVED always carries a root cause and a fix plan. UNRESOLVED always carries the root cause found so far, why it is stuck, and the filled escalation block - the main context forwards that block to the user verbatim. Output in English.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub jazz-man/claude-marketplace --plugin sdd15 skills in this plugin
/discoveryEntry point for new work. Researches the user's idea against the codebase, the workstream brief, and beans state, then routes it via AskUserQuestion - extend an existing spec, no spec needed (answered directly in chat), a single new feature, or a sequential multi-spec initiative queued in beans. Writes .sdd/brief.md./implExecute the active feature's approved task plan one task at a time - dispatch subagent implementers and reviewers, run the bounded fix loop, verify completion with fresh evidence, and stop after every task for the user's review./initWrite the user-owned .claude/rules/sdd.md workflow-rules file from the plugin's default workflow map (single source of truth - no second copy anywhere). Refuses politely when the file exists and offers a read-only diff instead of overwriting. User-invoked./reviewAdversarial task-local review protocol - verify an implementation is real, complete, bounded, spec-aligned, and backed by mechanical evidence. Use after an implementer finishes a task, after remediation, or before accepting a task as complete./spec-designGenerative fork - research the active feature (discovery by classification) and write design.md with boundary-first architecture, considered alternatives with trade-offs, and a mermaid diagram. Use after /sdd:spec-requirements; the main context presents the result and runs the confirm gate./spec-initBirth a new feature - the only skill that creates one. Guards the single-active-feature rule, creates .sdd/specs/<name>/ and the in-progress epic bean that records the spec path, then names the next command.