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

51 lines
2.7 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, anthropic]
date: 2026-03-19
---
## Source File
- [[raw/Agent/Google-5个Agent-Skill设计模式-2026-03-19.md]]
## Summary
- 核心主题Google Cloud发布的5种经过验证的Agent Skill设计模式
- 问题域SKILL.md格式标准化后如何设计真正有效的Skill内容而非空有格式的框架
- 方法/机制ToolWrapper、Generator、Reviewer、Inversion、Pipeline五种模式
- 结论/价值这五种模式可组合使用ADK的SkillToolset和渐进式披露机制使agent只在需要时才加载相关token
## Key Claims
- ToolWrapper让agent在真正用到某技术时才动态加载规范文档将规范当作绝对真理执行
- Generator从模板生成结构化输出利用assets/输出模板和references/(样式指南)目录
- Reviewer把"检查什么"和"怎么检查"完全分开审查标准存放在references/,可动态切换
- Inversionagent先变面试官问你问题全部回答后才开始行动有明确不可协商的门控指令
- Pipeline带硬性检查点的严格顺序工作流每步有前置条件用户必须确认才能进入下一步
- 五种模式可组合Pipeline末尾可加ReviewerGenerator开始可依赖Inversion
## Key Quotes
> "别再把所有复杂又脆弱的指令塞进一个system prompt了。把工作流拆分开应用正确的结构模式才能构建出真正可靠的agent" — AI工程化公众号
## Key Concepts
- [[AgentSkill设计模式]]5种经过验证的Skill内容设计模式
- [[ToolWrapper]]:监听特定关键词动态加载相关规范的模式
- [[Generator]]:从模板生成结构化输出的模式
- [[Reviewer]]:检查清单和检查逻辑分离的模式
- [[Inversion]]agent先问再做强制收集必要信息的模式
- [[Pipeline]]:带硬性检查点的严格顺序工作流模式
## Key Entities
- [[Google]]:发布此指南的云服务提供商
- [[Anthropic]]Claude Skills的先驱Skill格式标准化的推动者
- [[ADK]]Agent Development KitGoogle的Agent开发工具包
## Connections
- [[AgentSkill设计模式]] ← 核心主题 ← Google Agent工程
- [[ToolWrapper]] ← 模式1 ← [[AgentSkill设计模式]]
- [[Generator]] ← 模式2 ← [[AgentSkill设计模式]]
- [[Reviewer]] ← 模式3 ← [[AgentSkill设计模式]]
- [[Inversion]] ← 模式4 ← [[AgentSkill设计模式]]
- [[Pipeline]] ← 模式5 ← [[AgentSkill设计模式]]
## Contradictions
- 与单一庞大system prompt对比标准化SKILL.md格式后Skill内容质量差异巨大需要正确的设计模式而非更多指令