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

51 lines
2.9 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]
date: 2026-03-19
---
## Source File
- [[raw/Agent/Google-5个Agent-Skill设计模式-2026-03-19.md]]
## Summary
- 核心主题Google发布的5种Agent Skill设计模式用于解决同等格式skill执行效果差异巨大的问题
- 问题域Agent Skill的内容设计层面如何将知识/规范/工作流有效封装
- 方法/机制Tool Wrapper、Generator、Reviewer、Inversion、Pipeline五种设计模式
- 结论/价值格式标准化解决了外在结构问题内在逻辑设计才是skill质量的关键五种模式可组合使用
## Key Claims
- SKILL.md格式标准化后格式不再是问题但同等格式的skill执行效果天差地别差距在于内容设计
- Tool Wrapper模式通过动态加载机制让agent只在需要时才加载相关文档避免信息过载
- Generator模式通过模板+变量填充流程保证agent输出格式一致性
- Reviewer模式将"检查什么"和"怎么检查"完全分离,审查标准可替换
- Inversion模式将agent从"先做后问"反转为"先问再做",通过硬性门控指令控制流程
- Pipeline模式在复杂任务中设置硬性检查点强制agent按序执行
- 五种模式可组合Pipeline末尾可加ReviewerGenerator开始可用Inversion收集变量
## Key Quotes
> "最好的Skill不是写得好的提示词而是一个「工具箱」。" — Anthropic Skill设计经验
> "把工作流拆分开应用正确的结构模式才能构建出真正可靠的agent。" — Google指南总结
## Key Concepts
- [[ToolWrapper]]将领域知识文档打包成skillagent只在用到时才动态加载减少信息过载
- [[Generator]]:使用模板+样式指南通过变量填充流程保证一致输出的skill模式
- [[Reviewer]]:将审查标准与审查逻辑分离,标准可替换的代码/文档审查skill模式
- [[Inversion]]agent先提问收集必要信息再行动的反向工作流模式
- [[Pipeline]]带硬性检查点的严格顺序工作流防止agent跳过关键步骤
- [[AgentSkill]]封装特定领域知识或工作流的技能模块是OpenClaw等框架的扩展机制
## Key Entities
- [[Google]]发布5种Agent Skill设计模式的云服务提供商
- [[Anthropic]]Claude模型开发商提出Skill分类九类和三条铁律
- [[SKILL_md]]Skill的标准格式文件已被30+主流工具支持
## Connections
- [[AgenticAI]] ← fundamental ← [[AgentSkill]] ← uses ← [[ToolWrapper]], [[Generator]], [[Reviewer]], [[Inversion]], [[Pipeline]]
- [[Skill设计模式]] ← derived_from ← [[AgenticAI]] ← implemented_by ← [[OpenClaw]], [[ClaudeCode]]
## Contradictions
- 与通用单一Prompt方案冲突本文认为分散的专用模式优于集中式大prompt
- 当前观点好的Skill是工具箱而非大prompt应拆分专业模式
- 对方观点单一统一prompt更易管理维护