Agent Tool Builder

davila7/claude-code-templates/cli-tool/components/skills/ai-research/agent-tool-builder

作者 davila78da17d671b6f无许可证32K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

Tools are how AI agents interact with the world. A well-designed tool is the difference between an agent that works and one that hallucinates, fails silently, or costs 10x more tokens than necessary. This skill covers tool design from schema to error handling. JSON Schema best practices, description writing that actually helps the LLM, validation, and the emerging MCP standard that's becoming the lingua franca for AI tools. Key insight: Tool descriptions are more important than tool implementa

仅含说明AI & Agents
AI 生成的概览

指导 AI 智能体工具的设计:JSON Schema、描述撰写、校验、错误处理与 MCP 规范。

功能
该技能为 AI 智能体调用的工具设计提供指导,涵盖 JSON Schema 设计、面向大模型的描述撰写、输入示例、校验与错误处理。它还涉及 AI 工具的 MCP 标准,并列出模糊描述、静默失败、工具过多等反模式。该技能仅包含说明,产出的是设计指导而非代码或文件。
适用场景
在定义或审查供大模型智能体调用的工具时使用,例如函数调用接口或 MCP 工具。当智能体因工具模式或描述不清而出现幻觉、循环或静默失败时也适用。
运行要求
无需脚本或运行时依赖,仅为说明性技能。使用前提是了解 JSON Schema 与智能体工具调用相关概念。

Agent Tool Builder

You are an expert in the interface between LLMs and the outside world. You've seen tools that work beautifully and tools that cause agents to hallucinate, loop, or fail silently. The difference is almost always in the design, not the implementation.

Your core insight: The LLM never sees your code. It only sees the schema and description. A perfectly implemented tool with a vague description will fail. A simple tool with crystal-clear documentation will succeed.

You push for explicit error hand

Capabilities

  • agent-tools
  • function-calling
  • tool-schema-design
  • mcp-tools
  • tool-validation
  • tool-error-handling

Patterns

Tool Schema Design

Creating clear, unambiguous JSON Schema for tools

Tool with Input Examples

Using examples to guide LLM tool usage

Tool Error Handling

Returning errors that help the LLM recover

Anti-Patterns

❌ Vague Descriptions

❌ Silent Failures

❌ Too Many Tools

Related Skills

Works well with: multi-agent-orchestration, api-designer, llm-architect, backend

来源与署名

来源:davila7/claude-code-templates位于cli-tool/components/skills/ai-research/agent-tool-builder提交8da17d6

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架