/sdd:validate-requirementsfrom sdd
Generative fork - validate the active feature's requirements.md against EARS syntax, user-intent completeness, internal contradictions, steering alignment, and testability; apply only zero-semantics fixes and return a GO/NO_GO with evidence-quoted findings. Use after requirements are drafted, before or upon approval, or standalone as a formative check; for brownfield features it pairs with validate-gap.
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 approve gate.
Your job: validate the requirements DOCUMENT - the text on disk - against the EARS standard, the user's stated intent, itself, and the project's steering, then return a GO/NO_GO. You are the independent gate the requirements approval dispatches before the phase may complete (spec Revision 6); you also run standalone as a formative check anytime
validated tag, and the
Doc-hash: line are the main context's writes at the GO
moment - never yours.- FIXES_APPLIED:). Anything that touches
meaning - rewording an obligation, adding or removing a requirement,
changing shall to should - is a finding, never an edit, however
obvious the better text reads.file:line and quotes the offending text verbatim; contradiction
and steering findings quote every side.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).Keep the epic bean body at hand - its feature description is a completeness input (Step 4).
Read, under the spec directory from Step 1:
.sdd/specs/<feature>/requirements.md - REQUIRED, the document under
validation. Missing -> return BLOCKED pointing to
/sdd:spec-requirements..sdd/specs/<feature>/workspace/qa-digest.md - the user-intent
record the drafter worked from, when present: every question with its
answer, the settled in/out scope, constraints and edge cases..sdd/brief.md - the workstream narrative from discovery, when
present.${CLAUDE_PLUGIN_ROOT}/assets/rules/ears-format.md - the EARS
patterns your syntax check enforces.${CLAUDE_PLUGIN_ROOT}/assets/rules/requirements-review-gate.md - the
review checklist. It is written for the drafter (review-and-repair
before writing); in fork form its repair loop is superseded: you
record findings, and Hard rule 4 bounds your repairs to
zero-semantics items.When the qa-digest is absent (legacy or externally authored document), completeness checks against the brief and the epic description alone - and says so in the return (Step 4, check 2).
Scan requirements.md for mechanical defects and fix them in place, recording every edit for the Fixes applied list:
1a or Requirement One becomes a numeric ID per the gate's mechanical check; update any
in-document cross-references to that ID in the same fix.NOT fixes, ever: rewording an obligation, changing its strength (shall/should), adding, removing, merging, or splitting requirements, moving a boundary, restructuring a criterion into EARS. Those change meaning - 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.
Each check produces findings; classify every finding [BLOCKING] (a wrong or missing obligation - the document must change before approval) or [MINOR] (real but deferrable; no correctness risk). A check is PASS with no findings, CONCERN with only MINOR ones, FAIL with any BLOCKING one.
the [system] shall [response]); every requirement has
at least one criterion; headings carry numeric IDs only; no
implementation language (technology names, API patterns) inside
requirements. BLOCKING: a criterion that is not EARS, a requirement
with no criterion, a technology choice shaping scope. MINOR: valid
EARS with awkward phrasing.file:line, and quote the steering rule's wording as loaded in your
context (it has no file:line for you). BLOCKING: an obligation-level
violation. MINOR: naming or terminology drift that changes no
obligation.One finding per distinct issue; group issues that share a root cause.
Every finding carries: severity, check name, quoted evidence
(file:line + verbatim text, every side for contradictions and
steering), and a suggested fix.
If the findings list (every finding with evidence and fix, plus the
check results) exceeds 100 lines, write
.sdd/specs/<feature>/workspace/validation-requirements.md (create the
workspace directory if absent). If the file already exists from an
earlier round, APPEND a new # Validation Round <K> section after a
--- separator - earlier rounds survive untouched (the workspace is
append-only). Round structure:
Verify the write by reading the file back; the return then carries one-line findings plus the PATH pointer.
At 100 lines or fewer, findings go inline in the return block - no file is written.
To the fork (your final message). Return exactly this block - the
caller parses the heading and the - STATUS: line mechanically:
## Requirements Validation Summary
- STATUS: <DONE | BLOCKED>
- VERDICT: <GO | NO_GO>
- CHECKS: <five lines - EARS, Completeness, Contradictions, Steering, Testability - each PASS | CONCERN | FAIL, one-phrase why>
- 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/validation-requirements.md, or - when findings are inline>
- BLOCKERS: <BLOCKED only - the gap or condition, and the command to run>
One-line finding shape, used in BLOCKING, MINOR, and the workspace file
alike:
[BLOCKING]|[MINOR] <check>: <file:line> "<verbatim quote>" -> <suggested fix>
(contradictions and steering findings compress each side into the quote
or continue on indented lines).
To the main context. You invoked this fork; it cannot ask the user anything, so you own the gate. On DONE: present the verdict and the findings - short lists in chat, the workspace file when PATH names one (point the user at the path; do not dump files into chat). Then by verdict:
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 requirements approve gate.Any later edit to requirements.md invalidates this validation mechanically - the next gate recomputes the hash and escalates on mismatch. Never treat a GO as surviving a document change.
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.