/sdd:validate-designfrom sdd
Generative fork - quality-review the active feature's design.md against the four review criteria, apply only zero-semantics fixes, write the verdict-per-criterion report to workspace/design-review.md, and return a GO/NO_GO with blocking and minor findings. The design approve gate dispatches it automatically (Revision 6); it also runs standalone as a formative check.
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.
You are a FORK: a fresh subagent with no conversation history. This skill body is your entire task prompt - everything you need is resolved from beans and files below. You NEVER ask the user questions (no AskUserQuestion exists in your path) and you never dispatch subagents: when you cannot proceed, return the BLOCKED status contract from the Return contract section. The main context that invoked you owns all dialogue and the adjudication with the user.
Your job: adversarially review the design document for readiness - not perfection, readiness. The design phase already ran its own review gate; you are the independent second opinion before the plan gets built.
validated tag, and the
Doc-hash: line are the main context's writes at the GO
moment - never yours.- FIXES_APPLIED:).
Anything that touches design meaning - a reworded decision, a moved
boundary, an added or removed component, alternative, or diagram
element - is a finding, never an edit. Findings go to the report
file; the user decides what happens to the document.Query beans: beans list --json -t epic -s in-progress.
Spec path: line in the bean body
(.sdd/specs/<feature>/); if the body names none, return BLOCKED
asking the main context where the feature lives./sdd:spec-init (a spec is already shaped) or /sdd:discovery
(nothing shaped yet).Read, under the spec directory from Step 1:
.sdd/specs/<feature>/design.md - REQUIRED. Missing -> return BLOCKED
pointing to /sdd:spec-design..sdd/specs/<feature>/requirements.md - REQUIRED, the conformance
reference. Missing -> return BLOCKED pointing to
/sdd:spec-requirements..sdd/specs/<feature>/research.md - when present: the discovery and
gap analysis the design claims to build on.${CLAUDE_PLUGIN_ROOT}/assets/rules/design-review.md - the review
criteria and issue format. Its interactive-dialogue step is superseded
in fork form: where the rule says engage the designer, you record the
finding instead, and the main context takes it to the user.Also survey the codebase enough to check claims: the design asserts
alignment with existing architecture - apply the lsp-code-analysis
skill to the modules it names
and verify. A design that cites nonexistent structure is a finding, not
a detail.
Scan design.md for mechanical defects and fix them in place, recording every edit for the Fixes applied list:
R3, req 3) becomes the exact ID as written in requirements.md;
the referent never changes.NOT fixes, ever: rewording a decision, changing a boundary, adding or removing components, alternatives, coverage, or diagram content. Those change the design - record them as findings with the better text as the suggested fix.
Apply the fixes, then re-read the file and verify the edits took. Every check below quotes the FIXED text, so evidence line numbers stay true.
Verdict per criterion, from design-review.md:
Plus the cross-cutting checks the criteria assume:
Each criterion gets a verdict: PASS, CONCERN (finding attached), or
FAIL (blocking finding attached). Classify every finding:
Cap BLOCKING findings at the 3 most important, per design-review.md's critical-focus rule - and say so when you stopped early. Each finding follows the rule's issue format: concern, impact, suggestion, traceability (requirement ID), evidence (design.md section).
Write .sdd/specs/<feature>/workspace/design-review.md (create the
workspace directory if absent). If the file already exists, APPEND a new
# Review Round <K> section after a --- separator - earlier rounds
survive untouched (the workspace is append-only). Structure per round:
Verify the write by reading the file back.
To the fork (your final message). Return exactly this block - the
caller parses the heading and the - STATUS: line mechanically:
## Design Review Summary
- STATUS: <DONE | BLOCKED>
- VERDICT: <GO | NO_GO>
- CRITERIA: <criterion: verdict, one per line - all four>
- BLOCKING: <one line per blocking finding, or none>
- MINOR: <count first, then one line each>
- FIXES_APPLIED: <one line per zero-semantics fix, or none>
- PATH: <.sdd/specs/<feature>/workspace/design-review.md, or - when BLOCKED>
- BLOCKERS: <BLOCKED only - the gap or condition, and the command to run>
To the main context. You invoked this fork; it cannot ask the user anything, so you own the adjudication. On DONE: present the verdict, the criterion verdicts, each BLOCKING finding with its impact, and the fixes it applied (point the user at the design-review.md path; do not dump it into chat). Then by invocation:
Auto-gate - dispatched by the spec-design approve step (spec
Revision 6). On GO the design phase may complete: the phase bean
closes with the validated tag and the document's hash recorded as
its Doc-hash: line, computed at this moment, after the fork's
fixes (the fork computed no hash and wrote no beans - those writes
are yours). The wiring lives in the design approve gate. On NO_GO
present the four-part escalation (impl Step 9 shape) with payload
.
Standalone formative run. AskUserQuestion:
/sdd:spec-tasks
MINOR findings travel as context into the tasks phase.## Round <K> in
.sdd/specs/<feature>/workspace/design-edits.md (create the file
if needed; workspace files are append-only), then re-invoke
/sdd:spec-design - a NEW fork edit-merges the round. Re-run
/sdd:validate-design afterwards.On BLOCKED (either invocation): present the blocker and the named command, then AskUserQuestion on how to proceed (resolve via that command / adjust inputs / stop).
What SKILL.md sets; muted values are Claude Code's defaults
opusOther plugins' skills for the same job
npx claudepluginhub jazz-man/claude-marketplace --plugin sdd15 skills in this plugin
/debugRoot-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./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.