Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

tool-creator

БесплатноЗапускает вложенные скриптыНе проверен

This skill should be used when users want to create a new tool for the Strands SDK agent system. It supports creating both agent-as-a-tool (complex agents…

aws-samplesот aws-samples★ 307 звёзд на GitHub18 установок в других каталогах

Об этом скилле

Tool Creator Skill

This skill provides comprehensive guidance for creating effective tools for the Strands SDK-based agent system. It supports two types of tools: Agent-as-a-Tool (agents wrapped as tools) and Regular Tools (function-based tools).

About Tools in This System

Tools extend agent capabilities by providing:

  1. Agent-as-a-Tool: Specialized agents with their own prompts, models, and sub-tools
  2. Regular Tools: Direct function execution for system operations, API calls, or data processing

Tool Anatomy

Every tool in src/tools/ consists of:

# Required components
TOOL_SPEC = {
    "name": "tool_name",
    "description": "What the tool does",
    "inputSchema": {"json": {...}}
}

def handle_tool_name(param: Annotated[type, "description"]):
    """Implementation logic"""
    pass

def tool_name(tool: ToolUse, **kwargs: Any) -> ToolResult:
    """Strands SDK tool wrapper"""
    pass

Tool Creation Process

Follow these steps to create a tool. The process supports both full specification upfront and interactive information gathering.

Step 1: Determine Tool Type

Automatic Detection:

  • If user mentions "agent tool", "agent-as-a-tool", or describes complex multi-step operations → Agent-as-a-Tool
  • If user mentions "simple tool", "regular tool", or describes direct operations → Regular Tool
  • If ambiguous → Ask user

Question to ask if ambiguous:

Which type of tool would you like to create?

1. **Agent-as-a-Tool**: A specialized agent with its own prompt, model, and sub-tools (e.g., coder_agent_tool, reporter_agent_tool)
   - Use when: Complex reasoning, multi-step operations, or domain expertise needed

2. **Regular Tool**: A simple function-based tool (e.g., bash_tool, python_repl_tool)
   - Use when: Direct operations like API calls, file operations, or system commands

Step 2: Gather Basic Tool Information

Collect the following information. If user provided some details already, only ask for missing information.

Required for Both Types:

  1. Tool Name (if not provided)

    • Question: "What should the tool be named? (Use snake_case, e.g., 'data_analyzer_tool')"
    • Validation: Must end with '_tool', use snake_case
  2. Tool Description (if not provided)

    • Question: "What does this tool do? Provide a clear description of its purpose and capabilities."
    • This becomes the tool's description field that helps other agents decide when to use it
  3. Input Parameters (if not provided)

    • Question: "What input parameters does this tool need?"
    • For agent tools, typically: task (string describing what to do)
    • For regular tools: specific parameters (e.g., cmd for bash, code for python)

Step 3: Gather Type-Specific Information

For Regular Tools:

Collect these details (skip if already provided):

  1. Implementation Logic

    • Question: "What operation should this tool perform? (e.g., execute subprocess, call API, read file)"
    • Common patterns: subprocess execution, HTTP requests, file operations, data transformations
  2. Error Handling

    • Question: "What errors should be handled? (Default: try/except with error logging)"
  3. External Dependencies (optional)

    • Question: "Does this tool require external libraries? If yes, which ones?"

For Agent-as-a-Tool:

Collect these details (skip if already provided):

  1. Agent's Purpose and Role

    • Question: "What is the agent's primary purpose? What role does it play in the system?"
    • This informs the system prompt creation
  2. Agent Model Type

    • Question: "Which LLM model should the agent use?"
    • Options:
      • claude-sonnet-3-7 (recommended for most tasks)
      • claude-sonnet-4 (advanced reasoning)
      • claude-sonnet-3-5-v-2 (legacy)
  3. Reasoning Capability

    • Question: "Should this agent use extended thinking/reasoning? (True/False)"
    • Default: False
    • Use True for: complex analysis, planning, strategic decisions
  4. Prompt Caching

    • Question: "Should prompt caching be enabled? (Recommended: True for agents called frequently)"
    • Default: (True, None)
  5. Sub-tools (if not provided)

    • Question: "Which tools should this agent have access to?"
    • Common options: python_repl_tool, bash_tool, file_read
    • Reference existing tools in src/tools/
  6. System Prompt Creation

    • IMPORTANT: For system prompt creation, refer to references/system-prompt-guidelines.md
    • If user hasn't provided a system prompt, ask: "Do you want to create a custom system prompt for this agent?"
    • If yes: Use system-prompt-writer guidelines from references to create an effective prompt
    • If no: Create a basic prompt based on the agent's purpose

Step 4: Create the Tool File

Generate the tool file in src/tools/ using the appropriate template:

  • Regular Tool: Use templates/regular_tool_template.py
  • Agent-as-a-Tool: Use templates/agent_tool_template.py

**F

Полный SKILL.md на GitHub

Установить tool-creator в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/system-prompt-guidelines.mdreferences/tool-examples.mdtemplates/agent_tool_template.pytemplates/regular_tool_template.py

FAQ

Что делает скилл tool-creator?

This skill should be used when users want to create a new tool for the Strands SDK agent system. It supports creating both agent-as-a-tool (complex agents wrapped as tools) and regular tools (simple function-based tools). Use this skill when users request to create, build, or add a new tool.

Как установить скилл tool-creator?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл tool-creator запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить tool-creator с