spec-code-review
对照原始需求审查代码的缺陷、回归、测试与规范,默认只读,结构化输出 findings。
ASCII 链路图
text
Codebase -> Spec -> Plan -> Tasks -> Code -> Review -> Knowledge
|
v
spec-code-review
entry: spec-code-review
type: workflow command链路图表示该技能在研发阶段上的位置;阶段之间不是必经顺序,按当前任务直接进入最匹配的入口即可。
基本信息
| 字段 | 内容 |
|---|---|
| Skill | spec-code-review |
| 类型 | workflow command |
| 研发链路位置 | Review |
| 当前入口 | spec-code-review |
| 兼容别名 | /spec:code-review、$spec-code-review |
| 宿主投递 | Claude Code: command · Codex: skill · Cursor: skill · Kiro: skill · Qoder: command · OpenCode: command · ZCode: skill · Pi: skill |
| Source | skills/spec-code-review/SKILL.md |
源码描述(原文)
Review code for bugs, regressions, tests, and standards. Use for a code review or to apply its findings locally when explicitly requested. Report-only by default; mode:agent is always report-only. Not for diagnosing or fixing a known failure — use spec-debug. For feedback already left on a PR, use spec-resolve-pr-feedback.
Source 契约摘要
以下各条摘自上游 SKILL.md 的契约摘要小节(Workflow Contract Summary 或 Contract Summary),过长时截断。
- 输入 — current branch, explicit base, remote branch/PR, and optional plan/task-pack context.
- 输出 — report-only structured findings, actionable queue, coverage, verification limitations, and run artifacts;
mode:agentreturns JSON. - 硬出口 — unresolved scope/base, drifting or out-of-scope task context, the wrong checkout, or unavailable required independent coverage prevents a complete merge-ready claim.
- 权威 — source/diff/test/log supply facts; reviewers judge semantics. Review, local mutation, commit, and landing require separate authorization.
- 消费者 — human reviewers,
spec-work, caller-owned shipping/LFG flows, and downstream residual gates.
何时使用
- 提交 PR 前,或完成实现后需要质量判断。
- 需要围绕 diff 查逻辑、测试、安全、性能、契约和栈专项问题。
- 明确要求在本地应用审查结论时。
Agent / Persona 列表
该技能挂载了 17 个 persona,源码位置:skills/spec-code-review/references/personas/。agent 可以点开查看详情;persona 只在所属技能的流程里使用,不单独成页。
| 名称 | 类型 | 摘要 |
|---|---|---|
spec-adversarial-reviewer | persona | You are a chaos engineer who reads code by trying to break it. |
spec-agent-native-reviewer | persona | You review code to ensure agents are first-class citizens with the same capabilities as users -- not bolt-on features. |
spec-api-contract-reviewer | persona | You are an API design and contract stability expert who evaluates changes through the lens of every consumer that depends on the current interface. |
spec-correctness-reviewer | persona | You are a logic and behavioral correctness expert who reads code by mentally executing it -- tracing inputs through branches, tracking state across calls, an... |
spec-data-migration-reviewer | persona | You are a data migration and schema-change reviewer. |
spec-deployment-verification-agent | persona | You are a Deployment Verification Agent. |
spec-frontend-quality-reviewer | persona | Review the quality of user-visible web interactions in the current diff. |
spec-julik-frontend-races-reviewer | persona | You are Julik, a seasoned full-stack developer reviewing frontend code through the lens of timing, cleanup, and UI feel. |
spec-learnings-researcher | persona | You are a domain-agnostic institutional knowledge researcher. |
spec-maintainability-reviewer | persona | You are a structural code-quality reviewer. |
spec-performance-reviewer | persona | You are a runtime performance and scalability expert who reads code through the lens of "what happens when this runs 10,000 times" or "what happens when this... |
spec-previous-comments-reviewer | persona | You verify that prior review feedback on this PR has been addressed. |
spec-project-standards-reviewer | persona | You audit code changes against the criteria files the project designates -- CLAUDE.md, AGENTS.md, and any directory-scoped equivalents, at the paths you are... |
spec-reliability-reviewer | persona | Michael Nygard's Release It! stability vocabulary applies here: name the antipattern (cascading failure, retry storm, integration point without a timeout)... |
spec-security-reviewer | persona | Where a finding matches an OWASP Top 10 category or a CWE, include that identifier in the finding title — it calibrates the finding against shared vocabulary. |
spec-swift-ios-reviewer | persona | You are a senior iOS engineer who has shipped production SwiftUI and UIKit apps at scale. |
spec-testing-reviewer | persona | You are a test architecture and coverage expert who evaluates whether the tests in a diff actually prove the code works -- not just that they exist. |
边界
- 默认只读;
mode:agent始终只读并返回 JSON。 - 审查、本地修改、提交与落地分别需要授权。
- PR 上已有的评审意见请用 spec-resolve-pr-feedback,已知故障请用 spec-debug。
源码校准
本页由脚本从上游
skills/spec-code-review/SKILL.md生成;入口、兼容别名与宿主投递以src/cli/contracts/dual-host-governance/skills-governance.json为准。
