/second-opinion:spec-reviewfrom second-opinion
Use when a design spec, plan, or requirements doc is drafted/ratified/about-to-be-implemented and you want a rigorous second-model review that verifies the spec's claims against the real codebase — catching wrong data-model assumptions (scalar-vs-M2M), unverified schema/API claims, missing acceptance criteria, ambiguity, and internal contradictions before code is written. The spec-world analog of /codex:review for PRs.
Ships in second-opinion. 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.
Runs a Codex second-model review against a specification document, the way
/codex:review runs Codex against a PR diff. A spec is not a diff — so instead
of git diff, this feeds Codex the spec file(s) and runs read-only against the
repo, so Codex can verify every claim the spec makes against the actual code
(schema, migrations, types, routes). Review-only: it never edits anything.
Why a different model: it reads the codebase fresh, with no investment in the spec's framing. The most expensive spec defect is a data-model claim that's wrong — treating an M2M relationship as scalar, naming a column or field that doesn't exist. Reviewers who reason forward from the spec's own assumptions tend to miss this class of defect; a reviewer that opens the schema catches it.
Run from inside Codex, this is Codex reviewing Codex, so the different-model point
is lost. Codex's default sandbox also blocks network access, which the nested
codex call needs to reach its model, so approve network access or use a
network-enabled Codex profile.
design.md / requirements.md / tasks.md is drafted or freshly ratified.Not for: reviewing code changes (use /codex:review); pure prose/marketing docs.
spec-review.sh ships next to this SKILL.md. Invoke it via a path relative to this skill's own directory:
<this skill's directory>/spec-review.sh [TARGET] [-- extra focus text]
TARGET = a spec file, a spec folder (bundles requirements+design+tasks),
a bare name searched across known spec dirs, or omitted to auto-detect
the most-recently-modified spec.-- is appended as extra reviewer focus.# explicit file
spec-review.sh docs/superpowers/specs/2026-05-30-foo-design.md
# folder spec (.spec-workflow style)
spec-review.sh .spec-workflow/specs/checkout-redesign
# bare name + focus
spec-review.sh checkout-redesign -- scrutinize the refund math
# auto-detect newest spec
spec-review.sh
Data-model claims (scalar-vs-M2M, missing columns/fields) · untested assumptions
about existing behavior · missing/weak acceptance criteria · ambiguity · internal
contradictions · dependency ordering & migration idempotency · auth/RLS/compliance
· testability & rollback. Each finding is tagged CRITICAL/HIGH/MEDIUM/LOW with
spec-section + verified file:line evidence, plus a "Verified OK" list.
.spec-workflow/specs, docs/superpowers/specs, docs/superpowers/plans,
docs/specs, docs/plans, specs, plans. Extend via SPEC_REVIEW_DIRS
(colon-separated). Override the model via SPEC_REVIEW_MODEL.
| Exit | Meaning |
|---|---|
0 | Pass: stdout has a CODEX SPEC REVIEW: header followed by Codex's verdict (SHIP / SHIP WITH CHANGES / DO NOT SHIP) and findings. |
1 | Codex returned no verdict — a non-zero Codex exit, or an empty output file. The script prints a hint (stale auth: codex logout && codex login; unsupported model: set SPEC_REVIEW_MODEL) or the last lines of Codex's stderr. |
2 | No spec to review: nothing matched TARGET, auto-detect found no specs, or the resolved folder has no .md files. |
A DO NOT SHIP verdict still exits 0 — the exit code says whether the review
ran, not what it concluded. Read the verdict line.
codex CLI authenticated (codex exec runs non-interactively). The script
reads the clean verdict from Codex's -o output file. It captures Codex's
stderr (mostly MCP/auth noise) to a temp file and shows it only when the run
fails, so a failure can be diagnosed.cds to the repo root so
Codex can read the code it's verifying against).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub stylusnexus/agent-plugins --plugin second-opinion6 skills in this plugin
/agent-watchdogUse when asked to watch, babysit, audit, review, compare, or fix another agent's work from a Codex session ID, Claude Code session/transcript, chat/thread link, PR, branch, log, or pasted run summary. Monitor until the other agent is done or blocked, reconstruct what the user asked, inspect what the agent actually changed and verified, report gaps, and optionally make scoped fixes when the user authorizes repair./debug-feedback-loopConstruct a fast, deterministic pass/fail signal for a bug BEFORE hypothesising — the missing mechanics behind "reproduce the bug". Offers a ladder of loop-construction techniques (failing test, curl/CLI harness, headless browser, trace replay, bisection, fuzz, differential), ranked falsifiable hypotheses, and tagged-instrumentation cleanup. Use when a bug is hard to reproduce, flaky/non-deterministic, lacks an obvious repro, or when getting a reliable signal is the bottleneck. Complements (does not replace) systematic-debugging, which owns root-cause discipline — reach for this when the hard part is getting a signal, not staying disciplined. Use only when the user explicitly asks for it ("/debug-feedback-loop", "build a feedback loop for this bug"); do not start it on your own.
Other plugins' skills for the same job