Index of every page on this site: llms.txt
All skills
Run it yourself

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.

  • 1 file
  • 11.3 KB
  • Updated 2 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/2slowdd/claude-compliance-by-d/d-review

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈100 tokens for metadata: the name and description. ≈2.8k when used: this file.

Description uses 5.0% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈400 characters, or 5.0%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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

# 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.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 822f1b3. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last week.

Activeupdated 2 months ago

README badge

README badge for 2slowdd/claude-compliance-by-d/d-review