Files
nexus/wiki/concepts/Reviewer.md

31 lines
1.0 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.
---
id: reviewer
title: "Reviewer"
type: concept
tags: [Agent, Skill, 设计模式]
sources: [Google-5-Agent-Skill-design-patterns-2026-03-19]
last_updated: 2026-04-17
---
## Summary
把检查清单和检查逻辑分开的 Agent Skill 设计模式,实现不同专项审计。
## Definition
Reviewer 模式把"检查什么"和"怎么检查"完全分开,审查标准存放在 references 目录,指令保持静态但动态加载特定审查标准。
## Components
- **SKILL.md**:保持静态的指令
- **references/review-checklist.md**可替换的审查标准Python 风格检查、OWASP 安全检查等)
## Workflow
1. 加载静态指令
2. 动态加载审查标准
3. 按严重程度分组输出结构化结果
## Advantages
- 审查标准可替换:同一 skill 基础设施,换个清单就是完全不同的专项审计
- 避免 system prompt 膨胀:规则外置,按需加载
## Related Concepts
- [[Agent-Skill-设计模式]]
- [[Pipeline]]:可在最后包含 Reviewer 步骤来 double-check