tool-use-patterns
Patterns for Claude tool use including tool definition schemas, multi-tool orchestration, parallel tool calls, error handling, and result formatting. Use when the user is defining tools for Claude, building agentic workflows with tool calling, handling tool errors, or implementing multi-step tool pipelines.
npx skills add majiayu000/claude-skill-registry --skill tool-use-patterns --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Tool Use Patterns Patterns for defining, orchestrating, and handling Claude tool use. Covers schemas, multi-tool flows, parallel execution, error handling, and result formatting. ## When to Use - User is defining tools for the Claude API - User is building agentic loops with tool calling - User needs parallel tool execution - User is handling tool errors or formatting results - User is designing multi-step tool workflows ## Core Patterns ### Tool Definition Schema Tools are defined with a name, description, and JSON Schema for input_schema. The description is critical -- Claude uses it to decide when to call the tool. ```python tools = [ { "name": "get_weather", "description": "Get current weather for a city. Use this when the user asks about weather, temperature, or forecast for a specific location.", "input_schema": { "type": "object", "properties": { "city": { "type": "string", "description": "City name, e.g. 'San Francisco, CA'" }, "units": { "type": "string", "enum": ["celsius", "fahrenheit"], "description": "Temperature units. Default: fahrenheit." } }, "required": ["city"] } } ] message = client.messages.create( model="claude-sonnet-4-6-20250514", max_tokens=1024, tools=to
- When to Use
- Core Patterns
- Tool Definition Schema
- Agentic Tool Loop
- Parallel Tool Calls
- Tool Error Handling
- Forcing Tool Use
- Tool Result Formatting
- Anti-Patterns
- Quick Reference
What does the tool-use-patterns skill do?
Patterns for Claude tool use including tool definition schemas, multi-tool orchestration, parallel tool calls, error handling, and result formatting. Use when the user is defining tools for Claude, building agentic workflows with tool calling, handling tool errors, or implementing multi-step tool pipelines.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill tool-use-patterns --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
