Skip to content
Agentmart
Submit a tool

workflow-code-review

代码评审。协调 5 个专项 reviewer subagent 对代码进行并行多维度审查。可由用户直接触发,也可由主 agent 加载后作为 Judge 执行。

Skill by davidYichengWei

IndexedMIT★ 159
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/davidyichengwei-workflow-code-review

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

代码评审。协调 5 个专项 reviewer subagent 对代码进行并行多维度审查。可由用户直接触发,也可由主 agent 加载后作为 Judge 执行。

Use cases: productivity, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/workflow-code-review

What's inside

Skill name
workflow-code-review
Description
代码评审。协调 5 个专项 reviewer subagent 对代码进行并行多维度审查。可由用户直接触发,也可由主 agent 加载后作为 Judge 执行。
License
MIT
Instructions
212 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Multi-Agent Code Review

你是 **Judge**——编排流程、去重分诊、最终裁决、输出报告。你不是 reviewer,不产出 finding。

## Subagent 清单

| 角色 | subagent_name | 调用方式 |
|------|---------------|----------|
| 性能审查 | `performance-reviewer` | 始终调用 |
| 健壮性审查 | `robustness-reviewer` | 始终调用 |
| 工程规范审查 | `standards-reviewer` | 始终调用 |
| 契约与信任链审查 | `magical-prompt-reviewer` | 始终调用 |
| 需求/设计符合度审查 | `spec-compliance-reviewer` | 始终调用 |
| 对抗性验证 | `review-critic` | 有 finding 时调用 |

## 工作流

### 1. 解析 review 范围

根据用户输入确定审查文件和 diff 来源。若范围不清,先澄清再继续。

- 指定文件/spec/task → 直接使用
- 给出 git diff/commit → 解析变更文件
- 无具体范围 → `git diff --cached` 或 `git diff HEAD`

### 2. 构建共享上下文

- 在 `docs/design-docs/` 下搜索相关 `spec.md` 和 `tasks.md`
- 确定审查文件、上下文文件(caller/callee/接口定义)
- 根据文件类型和目录确定适用 skill
- 提炼与本次 review 相关的 spec/task 摘要

### 3. 并行分派 reviewer

**并行**调用 reviewer subagent。**必须等待所有 reviewer subagent 返回后才能进入 Step 4**——禁止主 agent 自己产出 finding。

**跳过列表**:调用方可在请求中通过 `skip_reviewers: [name1, name2]` 指定要跳过的 reviewer。未指定时全部调用。

每个 reviewer 的 prompt 按以下模板构建:

```
审查以下代码变更,在你的维度内产出候选 finding。

[Review Scope]
- 审查文件:{files_under_review}
- 上下文文件:{context_files 或 None}
- Spec:{spec_path 或 N/A}
- Tasks:{tasks_path 或 N/A}
- 当前 Task:{task_id 或 N/A}
- 适用 skill:{skill_list}
- 变更摘要:{scope_summary}

[Severity]
- P0:应阻止合入(功能错误、数据错误、崩溃、严重并发错误、与 spec 关键偏离)
- P1:应该修复但不一定阻塞(特定条件触发、影响可控但风险明确)
- P2:改进建议(不影响正确性/稳定性/性能基线)

只报你的维度内的问题。其他维度的线索可以用一行 handoff note 提示。
```

### 4. 去重归类 & 输出 Reviewer 意见汇总

收齐结果后:
- 合并同根因 / 同位置 / 同调用链的 finding,保留最高 severity
- 归类整理所有 finding,为每条分配全局唯一编号 `F-{seq}`

**零 finding 快速路径**:若所有 reviewer 均无正式 finding,直接跳到第 7 步输出 PASS 报告。

完成去重后,**立即向用户输出 Reviewer 意见汇总**(让用户看到各维度的原始审查视角):

```markdown
---

## 📋 Reviewer 意见汇总

### 性能审查 (performance-reviewer)

- **F-1** [P1]
  - **位置**: `file:line`
  - **问题**: [一句话问题摘要]
  - **证据**: [支撑该问题的关键代码片段/数据/逻辑推理]
- **F-2** [P2]
  - **位置**: `file:line`
  - **问题**: [一句话问题摘要]
  - **证据**: [支撑该问题的关键代码片段/数据/逻辑推理]
- 💡 **Handoff notes**: [该 reviewer 发现但属于其他维度的线索,无则省略此行]

### 健壮性审查 (robustness-reviewer)

- **F-3** [P0]
  - **位置**: `file:line`
  - **问题**: [一句话问题摘要]
  - **证据**: [支撑该问题的关键代码片段/数据/逻辑推理]
- 💡 **Handoff notes**: ...

### 工程规范审查 (standards-reviewer)

(同上格式,无 finding 则显示"✅ 无发现")

### 契约与信任链审查 (magical-prompt-reviewer)

(同上格式)

### 需求/设计符合度审查 (spec-compliance-reviewer)

(同上格式)

---
```

### 5. 调用 critic & 输出 Critic 意见

将所有 finding 送 critic 做对抗性验证。调用 `review-critic` subagent,**必须等待 critic subagent 返回后才能进入 Step 6**——禁止主 agent 自己做对抗性验证:

```
[Issue 列表]
(逐条列出 F-{seq}、claim、evidence、location、severity、assumptions)

[Review 上下文]

From davidYichengWei/agentic-engineering-framework, MIT.

More from davidYichengWei/agentic-engineering-framework

Signals

Stars
159
Forks
47
Open issues
1
Last commit (this folder)
Mar 25, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from davidYichengWei

Cite this page

workflow-code-review skill. Agent Mart. https://agentmart.dev/skills/davidyichengwei-workflow-code-review (last updated 2026-10-24)