Files
nexus/wiki/sources/Google-5个Agent-Skill设计模式-2026-03-19.md

50 lines
3.2 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: "Google 5个 Agent Skill 设计模式"
type: source
tags: ['Agent', 'Skill', 'Google', 'ADK', '设计模式', 'AI工程化']
date: 2026-03-19
source: https://mp.weixin.qq.com/s/yu120tW0l4DJAJfWmbJYxg
author: winkrun / AI工程化
---
## Source File
- [[raw/Agent/Google-5个Agent-Skill设计模式-2026-03-19.md]]
## Summary
- 核心主题Google ADK 团队发布的 5 种经过验证的 Agent Skill 设计模式,以及 Skill 设计的最佳实践经验
- 问题域Skill 格式标准化后30+工具支持同格式),内容设计成为效果差异的核心——同样格式,效果天差地别
- 方法/机制5 种独立设计模式Tool Wrapper/Generator/Reviewer/Inversion/Pipeline每种有完整 ADK 代码示例,可独立使用也可组合
- 结论/价值Skill 的本质是"工具箱"而非"好提示词"Anthropic 经验:只写 Agent 不知道的东西、给工具不给指令
## Key Claims
- **Tool Wrapper**:将某个库/框架规范文档打包为 Skill动态加载监听特定关键词适合分发团队内部编码规范
- **Generator**通过模板强制一致的输出格式assets/存模板、references/存样式指南SKILL.md 扮演项目经理填充变量
- **Reviewer**:将"检查什么"和"怎么检查"完全分离references/review-checklist.md 存审查标准agent 动态加载并强制输出结构化结果
- **Inversion**agent 先变面试官提问,收集所有必要信息后再行动(明确门控指令确保阶段完整性)
- **Pipeline**:复杂任务的严格顺序工作流,关键节点设置硬性检查点,用户确认才进入下一步
- Anthropic 经验:写好 Skill 的三条铁律——只写 Agent 不知道的东西;重点写踩坑清单;给工具不给指令
- 5 种模式可组合使用Pipeline + Reviewer、Generator + Inversion利用 ADK 的 SkillToolset 和渐进式披露机制
## Key Concepts
- [[ToolWrapper模式]]:将领域规范文档打包为 Skill通过关键词监听动态加载agent 按规范执行
- [[Generator模式]]:模板+变量填充强制输出格式一致性API文档/commit消息/项目脚手架)
- [[Reviewer模式]]检查清单与检查逻辑分离标准可替换Python风格/OWASP安全/代码审查)
- [[Inversion模式]]agent 先收集信息再行动,反转"直接猜测生成"的默认行为,确保信息完整
- [[Pipeline模式]]:带硬性检查点的严格工作流,强制执行顺序,无法跳过步骤
- [[渐进式披露]]Progressive Disclosureagent 只在运行时需要时消耗上下文 token 加载特定模式
## Key Entities
- [[Google ADK]]Google Agent Development Kit发布此设计模式指南
- [[Anthropic]]Claude 开发商Skill 实践经验提供方ToolWrapper/Generator 等模式与 Anthropic 实践一致)
- [[ADK]]Agent Development KitGoogle 的 Agent 开发工具包
## Connections
- [[ToolWrapper模式]] ← is_pattern_of ← [[AgentSkill设计]]
- [[Generator模式]] ← is_pattern_of ← [[AgentSkill设计]]
- [[Reviewer模式]] ← is_pattern_of ← [[AgentSkill设计]]
- [[Inversion模式]] ← is_pattern_of ← [[AgentSkill设计]]
- [[Pipeline模式]] ← is_pattern_of ← [[AgentSkill设计]]
## Contradictions
- (无已知冲突)