一键导入
spec-review
Reviews a spec with risk-scaled specialist agents, deduplicates findings, and returns a binary APPROVED / REVISIONS NEEDED verdict.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Reviews a spec with risk-scaled specialist agents, deduplicates findings, and returns a binary APPROVED / REVISIONS NEEDED verdict.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Runs the complete development workflow from session context to reviewed pull request: write a spec, run spec-review and revise the spec, create bits tasks, drain the bits implementation queue, commit, publish a PR, run self-review-loop, and post /assisted-review-heavy. Use when the user asks for the full dev flow, spec-to-PR workflow, plan/build/publish workflow, or wants an agent to carry a discussed feature through spec, implementation, PR publication, and automated review.
Interview users to turn an issue, rough plan, or implementation idea into spec-ready decisions. Use when the user asks to interview/probe/question a plan, when issue-to-spec needs design clarification, or before writing a spec that depends on product, technical, rollout, or scope decisions.
Orchestrates the full investigation-to-spec workflow starting from a GitHub issue. Phase 1: explore the issue and codebase to build context. Phase 2: interview the user from a problem-solving perspective. Phase 3: author a spec and publish it to docs/specs/. Phase 4: assess complexity and conditionally launch the spec-review skill. Phase 5: harden the spec with review feedback.
Authors a human-first design spec: a plain-language narrative reviewers can absorb in minutes, backed by an implementation appendix with the exhaustive detail agents need. Use when the user asks to write a spec or design doc from a discussion or investigation, or to rewrite an existing spec that is too verbose for human review.
Publishes finished work as a GitHub pull request: discovers branch state, drafts or refreshes a layered PR description, pushes safely, and creates or updates the PR.
Runs a lean, risk-scaled code review: one generalist pass first, specialists only when triggered by evidence, and external debate only for high-risk escalation.
| name | spec-review |
| description | Reviews a spec with risk-scaled specialist agents, deduplicates findings, and returns a binary APPROVED / REVISIONS NEEDED verdict. |
| argument-hint | [file path, #N (GitHub issue/PR), URL, 'staged', or omit for conversation context] |
| disable-model-invocation | false |
| allowed-tools | ["Bash(git:*)","Bash(gh:*)","Read","Glob","Grep","Task","TeamCreate","TeamDelete","TaskCreate","TaskUpdate","TaskList","TaskGet","SendMessage","WebSearch","WebFetch","ToolSearch"] |
| mcpServers | ["codex"] |
Review the target spec in $ARGUMENTS. If no target is provided and the conversation does not contain the spec, ask what to review.
Use references/harness-adapters.md when translating team, task, or sub-agent operations across Claude Code and Codex. Use protocols/review-protocol.md as the single source for reviewer taxonomy, qualification, self-critique, cross-review, and output mechanics.
Resolve $ARGUMENTS:
#N: resolve with gh issue view <N> 2>/dev/null || gh pr view <N>; include relevant comments, linked PRs, or linked issues.staged: inspect staged spec-like files.Also gather nearby codebase context only when it helps reviewers evaluate feasibility, APIs, operations, package structure, or existing terminology.
L0: typo, small clarification, or narrow addendum.L1: new feature, API/workflow change, multiple sections, or meaningful implementation choices.L2: architecture, new service/module, public API, data model, security, production reliability, or cross-team impact.Use the fewest specialists that cover the risk:
clarity-reviewer and completeness-reviewer.product-reviewer for goal/value/success-criteria risk.feasibility-reviewer for architecture or hidden implementation risk.api-reviewer for public or cross-team API changes.operations-reviewer for production rollout, observability, rollback, or SLO risk.scope-reviewer for multi-phase, multi-team, or delivery-risk specs.complexity-reviewer for abstraction, configurability, or over-engineering risk.structure-reviewer for new packages/modules or package boundary changes.For L0, use only clarity and completeness unless the spec obviously touches another domain. For L2, include all relevant specialists, not every specialist by default.
Load protocols/review-protocol.md once before spawning reviewers.
Each reviewer prompt should contain:
agents/<reviewer>.md instructions if the harness does not register that agent directlyDo not paste a large spec or large related diff into every specialist prompt. For large targets, give the repository path, spec path, important sections, and instructions to read targeted files directly.
Spawn selected reviewers in parallel when the harness supports it. If a reviewer fails, re-run that reviewer once with the same scoped context. If it fails again, record the failure and continue only if the missing specialist is not required for the risk lane.
Skip cross-review for L0.
For L1 and L2, route only meaningful disputes:
Limit each disputed finding to one challenge round. The lead arbitrates unresolved disagreement.
Do not run debate by default. Load protocols/mcp-debate.md only when one of these is true:
L2 and the final verdict depends on high-impact judgmentIf no debate-capable MCP exists or the user declines the debate checkpoint, skip debate and state that in the summary.
Deduplicate reviewer output and map findings:
Omit empty tiers. Do not include unresolved contradictory feedback.
End with the last section exactly as one of:
## Verdict: APPROVED
This spec is ready for implementation. <brief rationale>
## Verdict: REVISIONS NEEDED
This spec has <N> critical item(s) that must be resolved before implementation:
1. **<title>** - <section> - <what must change and why>