building-agent-tools
БесплатноБез исполняемых скриптовНе проверенGuide for creating effective tools for AI agents. Use when building MCP tools, agent APIs, or any tool interface that agents will consume. Focuses on token…
от majiayu000★ 31 звезда на GitHubОб этом скилле
Building Tools for AI Agents
Workflow
Define Purpose
- Identify what agents need to accomplish with this tool
- Determine if existing tools can be consolidated
- Plan the tool's interface for agent consumption
Design Interface
- Choose descriptive, namespaced tool names
- Define parameters with clear types and descriptions
- Design output format for maximum signal, minimum tokens
Implement
- Build with token efficiency in mind
- Add pagination, filtering, sensible defaults
- Return semantic identifiers, not raw IDs
Validate
- Test with real agent workflows
- Check token consumption patterns
- Verify error messages guide agents toward solutions
Design Principles
Tool Consolidation
- More tools don't lead to better outcomes
- Combine related operations into single tools
- Example:
schedule_eventthat checks availability AND creates event - Avoid simple CRUD-style tools that require multiple calls
Namespacing
- Prefix related tools with service name:
asana_projects_search,asana_users_search - Group by domain to help agents distinguish functionality
- Use consistent naming patterns across tool families
Meaningful Context
- Return high-signal information, not raw data dumps
- Resolve cryptic UUIDs to human-readable identifiers
- Include
response_formatparameter (concise/detailed) for flexibility - Surface relevant metadata agents need for next steps
Token Efficiency
- Implement pagination with sensible defaults
- Add filtering parameters to reduce unnecessary data
- Truncate large responses intelligently
- Prefer structured output over verbose prose
Tool Descriptions
- Invest heavily in clear, explicit descriptions
- Describe what the tool does, when to use it, and what it returns
- Include parameter constraints and valid values
- Small description improvements yield large performance gains
Anti-Patterns
- Creating many granular tools instead of consolidated operations
- Returning raw IDs that agents can't interpret
- Omitting pagination on potentially large result sets
- Vague tool descriptions that leave agents guessing
- Error messages that don't help agents recover
- Requiring agents to make multiple calls for common workflows
MCP-Specific Patterns
Tool Registration
- Use descriptive
nameanddescriptionin tool schema - Define
inputSchemawith JSON Schema for parameters - Mark required vs optional parameters explicitly
Response Format
- Return structured JSON for predictable parsing
- Include success/error indicators
- Provide actionable error messages
Установить building-agent-tools в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл building-agent-tools?
Guide for creating effective tools for AI agents. Use when building MCP tools, agent APIs, or any tool interface that agents will consume. Focuses on token efficiency, meaningful context, and proper namespacing.
Как установить скилл building-agent-tools?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл building-agent-tools запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic