Files
nexus/wiki/concepts/Reviewer.md
2026-04-22 16:03:25 +08:00

42 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Reviewer"
type: concept
tags: [Agent, Skill, Design Pattern, ADK]
sources: [google-5个agent-skill设计模式-2026-03-19]
last_updated: 2026-03-19
---
## Overview
Reviewer 是 Google ADK 发布的 5 种 Agent Skill 设计模式之一,将"检查什么"和"怎么检查"完全分离指令保持静态Agent 动态加载特定审查标准。
## Mechanism
- 审查标准存放在 `references/review-checklist.md`
- 可以是 Python 风格检查,也可以是 OWASP 安全检查
- 同样的 Skill 基础设施,换个清单就是完全不同的专项审计
- 强制输出按严重程度分组的结构化结果
## Use Cases
- Python 代码风格审查
- OWASP 安全检查
- 文档质量审计
- 代码安全审计
## Implementation
```
SKILL.md: 静态指令
references/review-checklist.md: 动态审查标准
→ 加载特定标准 → 结构化输出结果
```
## Key Insight
> 传统的代码审查会把所有规则都写进 system prompt结果越写越长。Reviewer 模式完美解决这个问题。
## Related Concepts
- [[ToolWrapper]]:另一个互补的 Skill 设计模式
- [[Generator]]:可以生成待审查的内容
- [[Pipeline]]:可以包含 Reviewer 步骤 double-check 成果
## Connections
- [[Google5个AgentSkill设计模式]] ← part_of ← [[Reviewer]]
- [[ADK]] ← published_by ← [[Reviewer]]