spec-code-review
用多 persona、confidence gate、合成去重和 safe_auto 修复做结构化代码评审。
基本信息
| 字段 | 内容 |
|---|---|
| Skill | spec-code-review |
| 类型 | workflow command |
| 研发链路位置 | Review |
| 入口 | /spec:code-review / $spec-code-review |
| Source | skills/spec-code-review/SKILL.md |
描述
Structured code review using tiered persona agents, confidence-gated findings, and a merge/dedup pipeline. Use when reviewing code changes before creating a PR.
何时使用
- 提交 PR 前。
- 完成实现后需要质量门。
- 需要围绕 diff 查逻辑、测试、安全、性能、契约和栈专项问题。
工作步骤
- 读取 diff、PR、文档、计划、task pack 或专项审查输入。
- 按风险域选择 always-on 与 conditional reviewer personas。
- 合并、去重和校准 findings,区分 safe_auto、gated_auto、manual 和 advisory。
- 输出修复、残留风险或下一步处理建议。
输出
- review findings、safe_auto fixes、residual risks、audit report 或 release checklist。
- 当 reviewer dispatch 不可用时,输出明确的 report-only fallback 覆盖说明。
Agent 调度
- 这是 persona agents 的主要使用层:correctness、testing、security、performance、scope、design 等按证据触发。
- review workflow 自身负责任务边界、合成和最终判断。
边界
- report-only 模式不编辑。
- safe_auto 之外的问题需要用户或下游 resolver 决策。
