Files
nexus/wiki/concepts/Tool-Wrapper.md
2026-04-15 15:02:52 +08:00

27 lines
805 B
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: "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 设计模式]]:所属分类
- [[渐进式披露]]:实现机制