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

805 B
Raw Blame History

title, type, tags, last_updated
title type tags last_updated
Tool Wrapper concept
agent
skill
design-pattern
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