/adev:review-specsfrom adev
Runs parallel specialist reviews (structural, security, consistency) on Live Specs before planning. Use for architecture review and expert evaluation.
Ships in adev. 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.
Read when SKILL.md points to them.
Run an architecture review on one or more Live Specs using parallel specialist subagents. This is the gate between specification and planning. No code gets planned until specs pass review.
Announce at start: "I'm using the adev:review-specs skill to run an architecture review."
Never end your turn to wait for a dispatched subagent. A synchronous dispatch (run_in_background: false) returns its final result directly in the tool call — there is nothing to wait for. If a dispatch ever returns a task ID instead of a result, that is a bug in the dispatch (the rule above was violated, or the harness backgrounded it anyway): fix the dispatch and re-run it synchronously. Do not end the turn hoping a completion notification will resume you — in a nested subagent context it will not. If this skill is itself running as a dispatched subagent (e.g., a build pipeline step), your own caller is waiting on a result contract — for build pipeline steps this is the STEP_RESULT format defined in skills/build/SKILL.md. Ending your turn without that result to report is a protocol violation, not a valid pause point.
Quick tier branch (Step 2.5). If the resolved rigor tier is quick, Step 4 builds the plan with adev governance dispatch --tier quick, which plans exactly one subagent, the synthesized reviewer (bundled plugin:review-specs/quick-synthesized-reviewer-prompt.md, reviewer-capable profile), instead of the registry's reviewer set. Dispatch it with run_in_background: false, exactly as the full-tier reviewers are dispatched: the harness backgrounds Agent dispatches by default, and review-specs frequently runs as a build-step subagent where a backgrounded dispatch never re-invokes the caller and stalls the review. It returns SA-/SEC-/CON- findings in the standard format plus a consolidated verdict. Apply the same severity cap, blocker_id validation, and parse-failure fallback as any other reviewer, then proceed to Step 5. If the bundled prompt file is missing, the verb fails loud with QUICK_PROMPT_MISSING; do not fall back to a weaker or empty review. Otherwise (tier full, the default), dispatch the registry reviewers the verb plans.
Load Skill Extensions: Load any skill extension instructions before proceeding:
adev skill-ext load --skill review-specs
If the output is not __NONE__, incorporate it as additional standing instructions that apply to this skill's entire execution. Frame it as: "The following skill extension instructions apply to this invocation (source: installed domain extensions and/or project-level overrides)." If the output is __NONE__, continue normally.
.review.md file, or where the spec is newer than the review)--spec <path>: review a specific spec file--charter <module>: review all specs under a feature charter--tier <full|quick|lite>: rigor tier (graduated-rigor-tiers spec). full (default) dispatches whatever reviewer set adev governance reviewers resolves for the project (never a fixed count or named trio — the registry is project-configurable); quick dispatches a single synthesized reviewer instead; lite runs exactly as quick and prints --tier lite runs as quick here once. Overrides any routing/risk-policy signal. Invalid value → INVALID_TIER.--defer-decisions: never ask. List pending decisions in the BLOCK summary and return. Required for every non-interactive caller (build passes it on every dispatch).The gate that must run before anything else, and the aborts it may raise.
Conditional loading: Read
<ADEV_ROOT>/skills/review-specs/references/steps/step-0-specify-gate.mdfor the full instructions. Do not act on this section from the summary above.
Determine which specs need review:
--spec <path> is provided, use that file directly.--charter <module> is provided, glob .context-index/specs/features/<module>/*.spec.md..context-index/specs/features/ and .context-index/specs/cross-cutting/ directories. A spec needs review if:
review step recorded, ORstate.steps.review.lastReviewedRevision is less than the spec's current revision, ORhasDrift(specPath) from <ADEV_ROOT>/lib/spec-drift.mjs returns true (content hash mismatch).If no specs need review, report that and exit.
Re-review advisory (explicit --spec only). Before reviewing a spec named with --spec, run:
adev review-notes show --spec <path> --json
If verdict is PASS or PASS_WITH_NOTES and unchangedSinceReview is true, print this advisory, then continue with the review the user asked for (it does not block):
Advisory: <spec-slug> already passed review (<verdict>) and is unchanged since
(file-sha matches). Re-reviewing an unchanged spec rarely helps: each round
surfaces new non-blocking warnings and can regress to BLOCK. Recommended:
/adev:plan --spec <path> (open warnings carry forward into the plan).
Continuing with the re-review as requested.
Print nothing when unchangedSinceReview is false or null, or the verdict is anything else.
Builds the per-spec context pack handed to every reviewer.
Conditional loading: Read
<ADEV_ROOT>/skills/review-specs/references/steps/step-2-load-context.mdfor the full instructions. Do not act on this section from the summary above.
depends-on ReferencesAfter loading the spec, inspect its depends-on frontmatter field for cross-repo references. A cross-repo reference uses the format @repo-slug/spec-slug.
Workspace detection: Walk the directory tree upward from the spec file's location, looking for adev-workspace.yaml. If found, a workspace is active; use resolveRef from lib/workspace.mjs to resolve each cross-repo reference.
If cross-repo references are present and a workspace is detected:
For each depends-on entry that matches the @repo-slug/spec-slug pattern:
resolveRef(ref, workspaceConfig) to locate the referenced spec."Cross-repo reference '@repo-slug/spec-slug' could not be resolved — repo or spec not found."status frontmatter field:
status: draft, flag a warning: "Cross-repo dependency '@repo-slug/spec-slug' is in draft status"status: superseded, flag a warning: "Cross-repo dependency '@repo-slug/spec-slug' is superseded"adev governance dispatch as a --note (Step 4), so every reviewer receives it and can factor it into the review.If cross-repo references are present but no workspace detected:
Skip cross-repo validation with a note to the user:
"Cross-repo references found but no workspace detected — skipping validation."
Do not treat missing workspace as a blocking error; proceed with the rest of the review using only locally available context.
If no cross-repo references are present: skip this step entirely.
Resolve the rigor tier (full | quick) that governs how this spec is reviewed; an explicit --tier lite resolves to quick. Per graduated-rigor-tiers.spec.md, quick never skips the gate — it dispatches a single synthesized reviewer instead of the registry's reviewer set, still producing the .review.md and the review lifecycle event.
Resolution precedence (highest first) — this is the resolveRigorMode(...) contract in lib/governance/rigor-mode.mjs:
--tier <full|quick|lite> on invocation; lite runs exactly as quick (print --tier lite runs as quick here). Reject any other value with INVALID_TIER./adev:route, /adev:work, or /adev:build) passed --tier quick because the work is "easy" (low blast-radius, high pattern coverage)..context-index/governance/risk-policies.yaml; map the spec's risk_level frontmatter (default medium) to policies.<level>.review_mode.full.When reviewing in bulk, resolve the tier per spec. Record the resolved tier in the review report header.
Resolves the reviewer registry and each reviewer prompt URI.
Conditional loading: Read
<ADEV_ROOT>/skills/review-specs/references/steps/step-3-load-reviewer-registry.mdfor the full instructions. Do not act on this section from the summary above.
Standing warning — zero enabled reviewers. After the errors check above, evaluate
reviewers.filter(r => r.enabled !== false).length === 0 against the envelope's reviewers
array — the exact predicate this behavior keys on. This is true for two distinct inputs, both
covered: an empty reviewers array (no reviewer was ever selected at /adev:init Step 7c), and
a non-empty array where every entry is disabled (all disabled). When true, print this standing
warning as a report-header line — it is not suppressible by the normal report format, unlike
an ordinary warnings/notes entry:
⚠ No reviewers are configured for this project — /adev:review-specs will dispatch zero
reviewers. Run /adev:init to configure governance/review.yaml, or this is expected if the
project intentionally selected none.
Then continue — the review still runs (and still completes) to a normal verdict; zero dispatched reviewers is a visible, deliberate state, not itself a failure that aborts the step.
Builds the dispatch plan with adev governance dispatch and dispatches each planned reviewer (or the single quick-tier reviewer) with its prompt and model unchanged.
Conditional loading: Read
<ADEV_ROOT>/skills/review-specs/references/steps/step-4-dispatch-reviewers.mdfor the full instructions. Do not act on this section from the summary above.
Parses reviewer output, applies the severity cap, and validates blocker_ids.
Conditional loading: Read
<ADEV_ROOT>/skills/review-specs/references/steps/step-5-consolidate-findings.mdfor the full instructions. Do not act on this section from the summary above.
Emits per-reviewer events and writes the consolidated .review.md artifact.
Conditional loading: Read
<ADEV_ROOT>/skills/review-specs/references/steps/step-6-events-and-report.mdfor the full instructions. Do not act on this section from the summary above.
Legal status values are defined in
lib/spec-status.mjs::SPEC_STATUSES. The seven legal transitions are tracked there; if a future review introduces a new status, extend that module first, then this skill.
After saving the review report, update the spec's status based on the verdict:
If verdict is PASS or PASS_WITH_NOTES:
review-pending → review-passedIf verdict is BLOCK:
review-pending → review-blockedLog the status change to the user.
Charter Capability Map update (PASS or PASS_WITH_NOTES only): After updating the spec status to review-passed, also update the parent charter's Capability Map. Find the capability row corresponding to this spec, then write the update via the CLI rather than editing the table directly:
adev capability-map set-status --charter <charterPath> --capability "<capability name>" --status review-passed
Stdout is a single JSON object { updated, previousStatus, newStatus, reason }. The write is monotonic: on a re-review of a spec whose capability row already reads planned, implementing, implemented, or validated (e.g. after /adev:validate FAILs and the spec is revised, or any other re-entry through this step), the row is already past review-passed in the lifecycle order, so the verb reports updated: false, reason: "NOT_MONOTONIC" and leaves the charter untouched instead of regressing the record that the capability was already built further. Log this outcome to the user the same as a normal update — it is expected behavior on re-review, not an error. reason: "CAPABILITY_NOT_FOUND" or "PARSE_ERROR" are non-blocking; log and continue.
Note: Do not increment the spec's revision field on status-only changes. The revision field tracks content changes, not workflow transitions.
After Step 7 has written the status update to the spec file, compute the final SHA-256 of the on-disk spec content and update the .review.md:
import { readFile } from 'node:fs/promises';
import { createHash } from 'node:crypto';
const buf = await readFile(specPath);
const sha = createHash('sha256').update(buf).digest('hex');
// Replace `file-sha: <PENDING>` in the .review.md with `file-sha: <sha>`.
Do NOT shell out for hashing — the in-tree crypto.createHash('sha256') computation is the canonical hash for spec content, consistent with lib/source-manifest.mjs and lib/spec-drift.mjs.
Why after Step 7: Step 7 writes review-pending → review-passed (or review-blocked) back to the spec file, which changes the file's content and hash. If the SHA were captured in Step 6 (before Step 7), the stored SHA would immediately diverge from the on-disk spec, causing /adev:plan to report false drift on the very next invocation.
Present the consolidated verdict and findings summary. Do NOT echo the full .review.md content — it is already on disk. Present ONLY the summary format below. Persona adaptation: The formats below are defaults for the Developer persona. If a different persona is active, adapt the chat summary to its output rules (e.g., Product persona: show pass/fail only, omit blocker codes and file paths). Artifacts written to disk (.review.md) always use the full technical format.
If PASS:
Review complete. All specs passed.
<spec-slug>: PASS (0 findings)
The spec is ready for planning. Run /adev:plan --spec <path> to proceed.
If PASS_WITH_NOTES:
Review complete. Specs passed with notes.
<spec-slug>: PASS_WITH_NOTES (2 warnings, 1 suggestion)
Warnings:
- SA-2: [brief description]
- SEC-1: [brief description]
Review the full report at <path to .review.md>.
Next: /adev:plan --spec <path>. The warnings carry forward into the plan
(its Review Notes section), each assigned to the task that touches its section.
Another revise-and-review round is not recommended: warning counts do not
converge to zero under re-review, and edits made to clear a warning can
regress the spec to BLOCK.
Do not present fixing the warnings before planning as a co-equal next step. The plan is where PASS_WITH_NOTES warnings get resolved; /adev:plan reads them with adev review-notes show and records each one against a task.
If BLOCK:
Review complete. Specs blocked.
<spec-slug>: BLOCK (1 blocker, 2 warnings)
Blockers:
- SA-1: [brief description]
- CON-3: [brief description]
These issues must be resolved before planning can begin.
Review the full report at <path to .review.md>.
Run /adev:specify to revise the spec, then /adev:review-specs to re-review.
BLOCK with pending decisions. When adev decisions pending lists any item, --defer-decisions lists every pending question and its options in the summary and asks nothing; without the flag, one bounded ask round runs with an attending operator, records the answers, and lists the rest.
Conditional loading: Read
<ADEV_ROOT>/skills/review-specs/references/steps/step-8-decision-ask-round.mdon every BLOCK verdict; it runsadev decisions pendingand routes the rest. Do not act on this section from the summary above.
This skill produces the canonical reviewer events in the lifecycle log that /adev:plan (and /adev:implement, /adev:validate) gate on. The .review.md artifact is a rendered presentation of those events for human inspection.
Downstream skills MUST call requireGate(state, "review", { mode }) against currentState(projectRoot, specPath) — they MUST NOT parse .review.md frontmatter for verdict or grep for status: fields. The lifecycle log is the source of truth; the rendered artifact is a view.
This skill also updates the spec's status frontmatter field (Step 7):
review-passedreview-passedreview-blockedWhen a blocked spec is revised and re-reviewed, the status will be updated from review-blocked back to review-passed upon a passing verdict.
When reviewing multiple specs (no arguments or --charter), process each spec independently. Each gets its own set of parallel subagents, its own .review.md file, and its own status update. Present a summary table at the end:
Architecture Review Summary
| Spec | Verdict | Blockers | Warnings | Suggestions |
|------|---------|----------|----------|-------------|
| card-ordering | PASS | 0 | 0 | 1 |
| drag-drop | BLOCK | 2 | 1 | 0 |
1 of 2 specs ready for planning.
Library functions this skill wraps, for reference when reading its CLI verbs.
Conditional loading: Read
<ADEV_ROOT>/skills/review-specs/references/api-reference.mdfor the full instructions. Do not act on this section from the summary above.
Review complete. The next step depends on the verdict:
/adev:plan (PASS_WITH_NOTES warnings carry forward into the plan's ## Review Notes)/adev:specify --revise to address the blockers, then re-review.If invoked via /adev:work, offer to continue to the appropriate next step. The user can stop here.
adapters/generic.md (opens in a new tab)boundary-reviewer-prompt.md (opens in a new tab)consistency-analyzer-prompt.md (opens in a new tab)quick-synthesized-reviewer-prompt.md (opens in a new tab)references/api-reference.md (opens in a new tab)references/steps/step-0-specify-gate.md (opens in a new tab)references/steps/step-2-load-context.md (opens in a new tab)references/steps/step-3-load-reviewer-registry.md (opens in a new tab)references/steps/step-4-dispatch-reviewers.md (opens in a new tab)references/steps/step-5-consolidate-findings.md (opens in a new tab)references/steps/step-6-events-and-report.md (opens in a new tab)references/steps/step-8-decision-ask-round.md (opens in a new tab)referent-integrity-prompt.md (opens in a new tab)security-reviewer-prompt.md (opens in a new tab)structural-architect-prompt.md (opens in a new tab)termination-reviewer-prompt.md (opens in a new tab)wiring-reviewer-prompt.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
architecture-review, spec-review, parallel-review, live-specs
npx claudepluginhub agentic-development/adev-plugin --plugin adev31 skills in this plugin
/assessadev:assessAssess codebase readiness for agentic development. Scans the codebase using static file inspection and outputs maturity scores across 8 structural dimensions (raw mode) or 11 dimensions (adev mode). Use when you want to evaluate how well-suited a codebase is for AI-assisted development, identify improvement areas, or track progress over time./brainstormadev:brainstormExplore a feature idea interactively and produce a Feature Charter. Validates against constitution and existing charters. Use before building any new feature or module, when the user mentions a new capability, or says 'let us build X'./bugfix-loopadev:bugfix-loopSelf-re-invoking, one-bug-per-turn loop that drains eligible P2/P3 bugs from the issue board unattended, using /adev:debug --auto for each attempt./buildadev:buildEnd-to-end build orchestrator. Chains review, plan, route, implement, and validate for one or more specs through a full lifecycle pipeline. Use when the user says 'build', 'end to end', 'full pipeline', 'build the spec', 'build the milestone', 'run the whole pipeline', or wants to execute multiple lifecycle steps in sequence without manual handoffs./codehealthadev:codehealthProactively scan source code for dead exports, orphan files, unused dependencies, stale code, and duplicate logic. Produces severity-tiered reports from repomap artifacts. Use when the user says 'check code health', 'find dead code', 'unused exports', 'stale files', 'orphan files', 'unused dependencies', or wants to identify cleanup opportunities before refactoring./debugadev:debugContext-aware systematic debugging. Checks ADRs for known issues, specs for expected behavior, and orientation for architecture context before investigating. Use when encountering any bug, test failure, or unexpected behavior. Trigger on 'fix this', 'fix the bug', 'something is broken', 'this test fails', 'unexpected error', 'why is this not working', 'this doesn't work', 'can you fix', 'there's an error', 'it's failing', or any request to fix, debug, or investigate a problem.Other plugins' skills for the same job