Summary
- 当需要为 AI 定义工具接口、设计调用规范、实现工具发现与编排机制时调用此 skill。典型场景包括:设计 AI agent 的工具集、定义 JSON Schema/XML/TypeScript 格式的工具描述、实现工具权限控制与并行调度、设计子代理委托架构。
- 不适用于:定义 AI…
kangarooking/system-prompt-skills
当需要为 AI 定义工? 不适用于:定义 AI 身份(persona-design)、安? ?
npx skills add kangarooking/system-prompt-skills --skill tool-specification
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Create a new specification file for the solution, optimized for Generative AI consumption.
13.4K installsCreate a formal specification for an existing GitHub Actions CI/CD workflow, optimized for AI c…
10.5K installsUpdate an existing specification file for the solution, optimized for Generative AI consumption…
9.2K installsCreate GitHub Issues for unimplemented requirements from specification files using feature_requ…
9K installsCreate GitHub Issue for feature request from specification file using feature_request.yml templ…
8.9K installsOther skills from kangarooking/system-prompt-skills · top by installs.
npx skills add kangarooking/system-prompt-skills
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
main
Parsed from SKILL.md frontmatter.
Files included with this skill beyond the listing page.
SKILL.md
8,458 B
SUMMARY.md
664 B
Claude Code: ToolSearch 用于延迟加载, parallel tool calls, Agent tool 用于子代理委托
Claude Chrome: PURL 紧凑命令模式, 三层行动分类 (Prohibited/Explicit Permission/Regular)
GPT-4o: Content Reference System, file_search with citation format
ChatGPT Agent Mode: 三通道架构 (analysis/commentary/final), browser+computer+container tools
Meta AI: 四个命名空间 (media, browser, meta1p, container, thirdparty) with full JSON Schema
Grok 4: Custom XML function call format (xai:functioncall), codeexecution with stateful REPL
工具定义与集成的核心设计模式包含五个正交维度:
safety-guardrails 的区别: tool-specification 中的权限门控是工具层面的操作控制("这个按钮能不能按"),safety-guardrails 是内容层面的行为约束("能不能讨论这个话题")。两者互补但不重叠。persona-design 的区别: persona-design 决定 AI "是谁",tool-specification 决定 AI "能做什么"。- 评估工具使用场景:标准 API 调用用 JSON Schema,需要与 XML 生态集成用 XML 格式,内部工具可用 TypeScript 类型 - 为每个工具编写接口定义,包含名称、描述、参数列表和返回值格式 - 完成标准: 格式选择有明确理由,且每个工具的定义能被模型准确理解和调用
- 将所有工具操作分类:Prohibited(自动拒绝)、Explicit Permission(需确认)、Regular(自动执行) - 为 Explicit Permission 层设计用户确认流程和超时机制 - 完成标准: 每个工具操作都有明确的权限层级分类,且分类结果经过安全评审
- 工具数量 <10: 全量列举在 system prompt 中 - 工具数量 10-25: 按功能域分组,使用命名空间 - 工具数量 >25: 实现延迟加载机制(如 ToolSearch),按需发现 - 完成标准: 模型在任何场景下都能在 2 轮对话内找到并调用正确的工具
- 识别可并行的工具调用(如多个独立搜索、多文件读取) - 设计子代理委托协议:任务描述格式、结果返回格式、错误处理 - 完成标准: 并行调用不产生竞态条件,子代理结果能被主代理正确汇总
- 设计工具调用的生命周期:发现 → 参数构造 → 权限检查 → 执行 → 结果解析 → 错误恢复 - 为每个阶段定义失败处理策略 - 完成标准: 任何工具调用失败都不会导致 agent 停滞,且有明确的降级策略