---
name: d-review
description: Use when reviewing a spec or design doc that belongs to a larger project. Performs a staff-engineer review flagging gaps, inconsistencies, ambiguity, errors, improvements, testability issues, risks, and missing acceptance criteria — ending with a go/no-go verdict. Triggers on "review this spec", "check my spec", "D-review", or when the user pastes or points at a design doc for critique.
title: d-review
canonical_url: https://skilld.dev/gh/2slowdd/claude-compliance-by-d/d-review
last_updated: 2026-09-23T21:01:14.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install 2slowdd/claude-compliance-by-d/d-review`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/d-review`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/2slowdd/claude-compliance-by-d/d-review) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/d-review`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/d-review --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/d-review --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# D-review — Staff-Engineer Spec Review

You are reviewing a spec that is part of a larger project. You have **limited context**. Your job is to be the staff engineer the author wishes they had sitting next to them: pragmatic, rigorous, and honest about what you cannot know.

## 1. Invocation — Detect the Input

On invocation, find the spec in this order. Stop at the first match.

1. **Explicit file path** in the user's message → `Read` it.
2. **Spec-like block pasted inline** (headings, requirements, architecture sections) → use the pasted text.
3. **Spec already present in current session context** (recently written or read) → reference it.
4. **Nothing found** → ask once: *"Point me at the spec — a file path, or paste it inline."* Then stop until they reply.

## 2. Process

Execute these in order. Do not skip steps.

1. **Acquire the spec** per Section 1.
2. **Context scan** — time-boxed. Read only obvious neighbors:
   - `CLAUDE.md` in the project root (and any `memory/` MEMORY.md if visible).
   - Sibling files in the spec's directory (e.g., other `docs/superpowers/specs/*`, other design docs in the same folder).
   - `tasks/todo.md` and `tasks/lessons.md` if present.
   - Do **not** spelunk the full repo. If an answer needs deep code reading, log it as an unverifiable assumption instead.
3. **Log unverifiable assumptions** as you read — every claim the spec makes that depends on unseen context (other specs, parent project, external systems). These go into the review file.
4. **Apply the 8 review dimensions** (Section 3) across the spec.
5. **Classify each finding by severity** (Critical / Major / Minor / Nit).
6. **Sweep-check every count you are about to publish** (§2a) — before the finding is written, not after.
7. **Write the review file** to the path in Section 4.
8. **Print the inline chat output** (Section 5).
9. **Emit the verdict** (Section 6).

### 2a. Counts in a finding must survive a form-complete sweep

⚠️ **A punctuated search term silently under-counts.** Searching `optName:` *with the colon* matches an explicit property and is structurally blind to shorthand forwarding (`optName,`) and to the parameter declaration (`optName = null,`) — dropping the colon can return three times the hits. That is how an option threaded through three hops gets published as having **four** edit points when it has ten, as a Critical, in a review whose whole job is catching that class of error.

Whenever a finding is going to state **how many** of something exist — call sites, edit points, emit sites, exits, handlers, consumers, flags:

- **Search the bare identifier, never a punctuated form.** `foo` — not `foo:`, not `foo =`, not `foo(`. Punctuation encodes ONE syntactic form; the thing you are counting usually takes several. In JS alone: explicit property `foo: x`, shorthand `foo,`, parameter default `foo = null,`, destructuring `{ foo }`, and the uses.
- **State the raw hit count, then classify every hit** — origination / declaration / forwarding / use. A count you have not partitioned is not yet a finding. Publish the partition, not just the total.
- **Read the shape as evidence.** "Four hits, all origination, zero declarations, zero forwardings" is impossible for an option that is threaded — the declaration must exist somewhere. If a partition has an empty cell where the mechanism requires a member, the sweep is wrong, not the code.
- One claim per labelled command, uncapped and unpiped, so the output that produced the number is the output you cite.

This applies to a count you assert **and** to a count the spec asserts that you are about to confirm or contradict. Getting it wrong in a review is worse than getting it wrong in a spec: the author will act on it.

## 3. Review Dimensions

Apply all eight. For every finding, record: the dimension, the location in the spec (section or quote), and **why it matters downstream**.

| # | Dimension | What it catches |
|---|---|---|
| 1 | **Gaps** | Missing requirements, unspecified behaviors, undefined edge cases, unaddressed inputs/outputs |
| 2 | **Inconsistencies** | Sections that contradict each other; architecture that doesn't match the feature description; terminology drift |
| 3 | **Ambiguity** | Any phrase two competent readers would implement differently. "Should be fast" → how fast? "Handles errors gracefully" → which errors, what behavior? |
| 4 | **Errors** | Factually wrong, logically impossible, or technically broken claims. APIs that don't exist. Math that doesn't work. Invariants that can't hold. |
| 5 | **Improvements / Simplifications** | YAGNI cuts, cleaner alternatives, elegance wins. Flag anything that would survive deletion. Propose the simpler shape. |
| 6 | **Testability** | Requirements that can't be objectively verified. Missing observable outcomes. "User experience should feel smooth" is not testable; "p95 interaction latency < 100ms" is. |
| 7 | **Risks / Unknowns** | External dependencies, perf cliffs, concurrency hazards, failure modes, security/auth gaps, data-loss paths, migration risk — things the spec doesn't address. |
| 8 | **Missing Acceptance Criteria** | "Done" not defined for the spec's deliverables. No observable finish line. |

**Do not review:** scope / decomposition. That is a judgment the spec owner makes separately.

## 4. Review File Location

- If the spec has a file path: write review to `<spec-path-without-ext>-review.md`.
  - Example: `docs/superpowers/specs/2026-04-21-foo-design.md` → `docs/superpowers/specs/2026-04-21-foo-design-review.md`
- If the spec was pasted inline: write to `tasks/d-review-<slug>-<YYYY-MM-DD>.md` (create `tasks/` if missing).

Use the **Write** tool. Never paste the full review content inline in chat — only the summary (Section 5).

### Review file template

```markdown
# D-review: <spec title>
**Reviewed:** <YYYY-MM-DD> · **Spec:** <path or "inline"> · **Verdict:** <🟢 ready-to-plan | 🔴 needs-revision | 🟡 blocked-on-context>

## 1. Context Scanned
- Files read: <list>
- Unverifiable assumptions this spec makes:
  - <assumption> — needs confirmation from <source>
  - ...

## 2. Findings by Severity

### Critical (blocks implementation)
- **[Dimension]** §<location> — <finding>. *Why it matters:* <downstream impact>.

### Major (should fix before planning)
- ...

### Minor (clarify when convenient)
- ...

### Nits (style / optional)
- ...

## 3. Findings by Dimension
(Same findings, regrouped. Use the same `[Severity] §location — finding` shorthand.)

### Gaps
### Inconsistencies
### Ambiguity
### Errors
### Improvements / Simplifications
### Testability
### Risks / Unknowns
### Missing Acceptance Criteria

## 4. Verdict
**<🟢 ready-to-plan | 🔴 needs-revision | 🟡 blocked-on-context>**

<1–3 sentences of reasoning.>

If **needs-revision** — top 3 things to fix first:
1. ...
2. ...
3. ...

If **blocked-on-context** — what I need before I can fairly review:
- ...
```

## 5. Inline Chat Output

The operator relays this block by copy/paste into the spec's origin agent's prompt. Anything the origin agent does not need is noise they delete by hand — so the block carries the verdict, the counts, the file path, and answers to what was asked, and nothing else.

After writing the file, print **ONE fenced block** containing **exactly** these parts and nothing else:

```
D-review — <spec name> <Rev N>
Review file: <review file path>
VERDICT: <🟢 ready-to-plan | 🔴 needs-revision | 🟡 blocked-on-context>
Counts: Critical <n> · Major <n> · Minor <n> · Nits <n> · Unverifiable assumptions <n>

<If — and only if — the operator named specific scrutiny items in the invocation:>
YOUR <N> SCRUTINY ITEMS
1 <terse answer>
2 <terse answer>
…
```

The `VERDICT:` line carries a **colour marker before the verdict word** — 🔴 `needs-revision`, 🟢 `ready-to-plan`, 🟡 `blocked-on-context` — so the state reads at a glance: red means correct it, green means write the plans. A marker, not ANSI escapes and not markdown emphasis — the block is copy/pasted into another agent's prompt, where escape sequences become garbage and `**bold**` inside a fence is literal. The marker is also the house convention (🔴/🟢/🟡 throughout CLAUDE.md and the memory rules). Never emit the verdict word without its marker, and never let the marker disagree with §6's rubric.

The `Counts:` line is **required on every review**, immediately under `VERDICT:`, in exactly that order and separator style (` · `), all five figures always present — a zero is written `0`, never omitted. It is the operator's triage signal; it is the ONLY aggregate the block carries.

**Never put in the block:** a findings list at any severity, a "Top 3 to fix first", a carry-without-re-review list, next-step suggestions, or any prose that is already in the review file. The findings live in the file; the block exists to get the origin agent to the file with a verdict, the counts, and answers to what was asked.

If the operator named no scrutiny items, the block is four lines.

**Below the block, outside it:** optionally a very short operator-only note (a ruling they must make, a claim I could not verify, a ledger/skip notice). Never inside the block.

## 6. Verdict Rubric

Pick exactly one. Be honest — this is the whole point of the skill.

- 🟢 **`ready-to-plan`** — Zero Critical findings. Any Major findings are either resolvable during implementation planning or explicitly accepted in the spec. Safe to hand to `writing-plans`.
- 🔴 **`needs-revision`** — ≥1 Critical finding **or** ≥3 Major findings that would cause rework. Spec author should revise the spec before planning.
- 🟡 **`blocked-on-context`** — The spec cannot be fairly reviewed without information outside the visible context (unseen parent spec, unclear API contract, missing requirements doc). State exactly what context is needed, then stop. Do **not** guess.

## 7. Tone & Discipline

- **Staff-engineer pragmatism**: flag things that cause real rework or bugs downstream. Don't flag style preferences as if they were defects.
- **Suppress nits** unless the verdict is `ready-to-plan` (at which point nits are the only thing left to say).
- **No padding.** If a dimension has no findings, write *"None."* under it and move on. A short review is a good review.
- **Cite the spec.** Every finding references a section or quotes the spec text. "The spec says X, but…" — not "I think the spec might…".
- **Name the downstream cost.** Every Critical and Major finding says *why it matters* — what breaks, what gets reworked, who gets confused.
- **One verdict. No hedging.** Pick `ready-to-plan`, `needs-revision`, or `blocked-on-context`. If you're torn between two, pick the stricter one.

## 8. What D-review Does NOT Do

- Does not rewrite the spec. It flags; the author fixes.
- Does not judge scope or decomposition.
- Does not start implementation, write tests, or invoke `writing-plans`.
- Does not pad the review to look thorough. Short and sharp beats long and vague.
