--- title: "Tool Wrapper" type: concept tags: [agent, skill, design-pattern] last_updated: 2026-04-15 --- # Tool Wrapper ## 定义 Google 5 种 Agent Skill 设计模式之一,通过监听特定关键词动态加载规范文档的 Skill 模式。 ## 核心机制 当 agent 检测到特定库关键词时,才动态加载 references/ 目录下的规范文档,并将其作为绝对真理执行。 ## 优势 - 避免 system prompt 过度膨胀 - 只在需要时才加载相关知识 - 适合分发团队内部编码规范或框架最佳实践 ## 示例 写 FastAPI 的 skill,不把所有 API 约定塞进 system prompt,而是让 SKILL.md 监听 FastAPI 关键词,动态加载 conventions.md。 ## Connections - [[Agent Skill 设计模式]]:所属分类 - [[渐进式披露]]:实现机制