/sd0x-dev-flow:review-specfrom sd0x-dev-flow
Reviews technical specification documents for completeness, feasibility, risk, and code consistency. Verifies spec claims against actual project files.
Ships in sd0x-dev-flow. 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.
/codex-review-fast)/codex-review-doc)/tech-spec)/codex-review-docBoth are doc-plane producers of the same gate, dispatched over the same
Codex exec transport (@skills/codex-code-review/references/codex-transport.md) and emitting the same sentinel pair. They differ only in review
depth and dimensions: /review-spec is the design-landing depth (completeness, feasibility,
risk, code consistency, test strategy), /codex-review-doc is the general document depth.
Loop mechanics, severity calibration and [NIT_DEFERRED] handling are shared — see
@skills/doc-review/SKILL.md.
Why not an Agent dispatch. The gate verdict is behaviour-layer: it comes from the reviewer's
report, and review-state.js note records it (@rules/auto-loop.md § Enforcement — nothing parses
reviewer output; hooks are reminders). What makes a verdict usable is that a contract-aware
reviewer produced it against this family's template and sentinels. A built-in agent dispatched
ad hoc is not that reviewer and its output closes nothing. Dispatching Codex over the shared
transport is what makes the verdict this skill's to note. See @rules/auto-loop.md § Review Dispatch.
Bind every placeholder before writing prompt.md. The body below is body-only, so nothing
evaluates an expression inside it: ${FILE_PATH} and ${PROJECT_ROOT} must carry real values by the
time the file is written, or the cat ${FILE_PATH} instructions reach Codex as literal text and
cannot be run.
You are a senior technical spec reviewer. Perform a Document Review of the technical specification below, at design-landing depth.
Do NOT expect pre-provided file content. Read the spec and research the project yourself using your sandbox access. The spec makes concrete claims about this repository — verify them against the actual files rather than taking them on trust.
cat ${FILE_PATH}cat ${FILE_PATH} | head -300 then cat ${FILE_PATH} | tail -200ls at the repository root, then the directories it actually shows — do not assume a src/ layout; many repositories, this one included, have nonegrep -rn "keyword" . -l --include="*.ts" --include="*.js" --include="*.sh" | head -10cat <file-path> | head -100| # | Dimension | Checks |
|---|---|---|
| 1 | Completeness | Are requirements, scope, risks and work breakdown all present and specific |
| 2 | Feasibility | Can this be built as described, with the dependencies it names |
| 3 | Risk Assessment | Are the real failure modes identified, and does each have a bound |
| 4 | Code Consistency | Do referenced files/functions exist and behave as described (verify with grep/cat) |
| 5 | Test Strategy | Is every acceptance criterion mapped to evidence; are guards two-directional |
A 🔴 blocks the document and costs a full review round. Reserve it for defects that would mislead a reader into building the wrong thing:
| Mark 🔴 | Do NOT mark 🔴 |
|---|---|
| A described file, function, flag or command that does not exist | Wording that could be clearer |
| A described behaviour that contradicts what the code actually does | A section you would have structured differently |
| A security or data-handling design that is wrong or unsafe | A missing section that no rule requires |
| An internal contradiction — two passages that cannot both be true | Prose where a table would be tidier |
| A broken cross-reference, or a step whose stated dependency is not met by its own ordering | Hypothetical future concerns not present in the change |
Do not manufacture findings to fill a section. An empty 🔴 section is a normal outcome.
Your report must begin with the literal line ## Document Review. Nothing parses it — the
verdict is behaviour-layer and review-state.js records only an explicit note
(@rules/auto-loop.md § Enforcement). The header matters for the reader: it is what tells a
document review apart from a code or security review in a transcript.
| Dimension | Rating (1-5⭐) | Notes |
|---|---|---|
| Completeness | ... | ... |
| Feasibility | ... | ... |
| Risk Assessment | ... | ... |
| Code Consistency | ... | ... |
| Test Strategy | ... | ... |
(Write None if there are none.)
For every 🟡 and ⚪ above, emit one line here, starting at column 0:
[NIT_DEFERRED] <file:line> | <issue> | reason: sub-threshold-doc | <ISO8601 UTC>
Do not reorder the fields and do not use a different tag. Omit this section entirely if there are no 🟡 or ⚪ items.
End the report with exactly one verdict terminal, alone at column 0 on the final line — the
same rule as @skills/doc-review/references/review-loop-doc.md, and what
scripts/validate-family-sentinel.js doc accepts. As list items they are not a legal terminal.
✅ Mergeable⛔ Needs revisionDispatch this body per @skills/codex-code-review/references/codex-transport.md § Start; the transport pins the sandbox and approval policy, so nothing is chosen here. Save the returned threadId — loop re-review continues the same thread per that reference's § Resume; see @skills/doc-review/references/review-loop-doc.md.
$ARGUMENTS
If no path is given, auto-detect: git-modified 2-*.md under docs/features/ → staged
.md → newest tech spec. Multiple candidates: list them and ask which to review.
| Sentinel | Meaning |
|---|---|
✅ Mergeable | No 🔴 items — the spec may proceed to implementation |
⛔ Needs revision | 🔴 items present — fix, then re-review on the same thread |
These are the doc-plane sentinels (@rules/auto-loop.md § Gate Sentinels). No hook parses them —
the verdict is behaviour-layer and review-state.js records only an explicit note. One spec is not
the plane: a pass here is noted as doc_review pass only under @skills/doc-review/SKILL.md § Step 5
(A plane pass needs the whole scope). One thing does
read them mechanically, and it is not a hook: scripts/validate-family-sentinel.js doc validates a
fallback carrier's raw report before its verdict may be adopted. That is why the shape is fixed
in both directions — a paraphrase reads as no verdict to a human, and fails the validator outright
when a fallback produced it. Emit them verbatim.
🔴 only. 🟡 and ⚪ are non-blocking: log them via [NIT_DEFERRED] and proceed
(@rules/auto-loop.md § Sub-Threshold Findings). Round cap and its ## Max Rounds override come from the shared contract (@rules/auto-loop.md § Tiers); still failing
→ report the blocker rather than spending another round.
Document Review, and the report opens with that header✅ Mergeable / ⛔ Needs revision@skills/doc-review/SKILL.md@skills/doc-review/references/review-loop-doc.md@rules/codex-invocation.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub sd0xdev/sd0x-harness --plugin sd0x-dev-flow102 skills in this plugin
/adrWrite an Architecture Decision Record (ADR) for a feature — Context / Decision / Status / Consequences / Alternatives, filed as docs/features/<feature>/adr-<NNN>-<title>.md with a 3-digit zero-padded number. Handles the Superseded case: bidirectional linking when a new ADR replaces an old one. Use when: recording why an architectural approach was chosen, documenting a decision so it doesn't get re-litigated, marking a prior decision as superseded. Not for: feature-level technical design (use /tech-spec), task progress tracking (use /create-request), bulk backfill of historical decisions (a separate request — this skill writes one ADR at a time)./agentctl-setupInstall and set up the optional agentctl mod (task scope, refusal before execution, evidence that goes stale, model-free hand-over) — checks the environment, installs after approval, builds the first task line, optional deny rules, uninstall/architectureOther plugins' skills for the same job