Agent skill · Design & Presentation

tool-use

Tool use patterns for Claude including schema design, tool_choice modes, result handling, parallel execution, error recovery, and extended thinking integration.

majiayu000github.com/majiayu000GitHub ↗
claude-codecan modify filesMIT
Install
npx skills add majiayu000/claude-skill-registry --skill tool-use-lobbi-docs-claude-2 --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 22 KB
Bundled scripts: none
Allowed tools: -Bash-Read-Write-Edit-Glob-Grep
Path: skills/ai-llm/tool-use-lobbi-docs-claude-2/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

Review
written from the skill's own SKILL.md · Aug 5, 2026

What it does

A comprehensive guide to implementing tool use with Claude, detailing how to design tools with JSON Schemas, choose when and how to call tools, manage multi-turn conversations, handle errors, and integrate extended thinking while ensuring strict schema conformance.

How it works

The skill instructs when to apply it: for defining custom tools with JSON schemas, building agentic workflows that use tools, implementing tool result handling, orchestrating parallel versus sequential tool calls, ensuring guaranteed schema conformance, implementing error recovery, and combining tools with extended thinking. It specifies core concepts including the Tool Definition Schema with fields such as name, description, input_schema, and optional input_examples. It provides best practice JSON examples for tool definitions and lays out modes for tool_choice (auto, any, tool, none) with YAML-like and Python snippets. It enforces extended thinking constraints: it only supports tool_choice types auto or none when used with extended thinking, and recommends using a separate think tool for complex reasoning. It includes sections on strict schema conformance (strict: true) and shows how to define tools with strict input schemas. It outlines single-tool and multi-turn patterns for invoking tools, including how Claude should handle tool results, how to structure tool_result blocks, and how to marshal results in parallel (single user message, tool results first). It provides detailed formats for tool results (text, images, documents) and error formats (is_error flag, messages about missing parameters or connection errors). It also covers error recovery patterns, max-tokens handling, and how to obtain structured JSON output using a tool like record_summary with beta features. Finally, it includes parallel tool use best practices, measurement helpers, and prompts to encourage parallel tool calls.

When to use it

Use this skill when:

  • Defining custom tools with JSON schemas
  • Building agentic workflows with tool use
  • Implementing tool result handling
  • Building parallel vs sequential tool orchestration
  • Requiring guaranteed schema conformance
  • Implementing error recovery patterns
  • Combining tools with extended thinking

What it can touch

Tool usage patterns reference: Bash, Read, Write, Edit, Glob, Grep. The skill demonstrates usage of structured JSON tool outputs and tool definitions, but does not specify executing any actual commands itself. It defines how Claude should serialize tool inputs and results and how to respond after tool invocations.

Caveats

  • The guide emphasizes strict schema conformance and error handling, including the use of strict: true in tool definitions. It notes potential limitations such as token truncation and safety overrides in strict mode. It requires specific input_schema structure, including name, description, and input_schema with additionalProperties set to false. It also mentions that extended thinking is limited to certain tool_choice modes and recommends a separate think tool for complex reasoning. The material includes several code blocks and examples, but these are illustrative and require integration with an actual tool execution environment.
From the SKILL.md

# Tool Use Skill Comprehensive guide to implementing tool use with Claude, covering schema design, tool choice modes, multi-turn conversations, error handling patterns, and advanced features like extended thinking and strict schema conformance. ## When to Use This Skill Activate this skill when: - Defining custom tools with JSON schemas - Building agentic workflows with tool use - Implementing tool result handling - Building parallel vs sequential tool orchestration - Requiring guaranteed schema conformance - Implementing error recovery patterns - Combining tools with extended thinking ## Core Concepts ### Tool Definition Schema Every tool requires a JSON Schema input definition with: - **name**: Tool identifier (regex: `^[a-zA-Z0-9_-]{1,64}$`) - **description**: Detailed explanation of purpose, when to use, behavior (3-4+ sentences) - **input_schema**: JSON Schema defining parameters - **input_examples** (optional, beta): Concrete examples of valid inputs #### Best Practices for Tool Definitions ```json { "name": "get_stock_price", "description": "Retrieves the current stock price for a given ticker symbol. The ticker symbol must be a valid symbol for a publicly traded company on

What's inside
Steps it walks through
  1. When to Use This Skill
  2. Core Concepts
  3. Tool Definition Schema
  4. Tool Choice Modes
  5. Strict Schema Conformance (Beta)
  6. Single Tool Use Pattern
  7. Multi-Turn Tool Conversations
  8. Parallel Tool Use Pattern
  9. Tool Result Handling
  10. Basic Tool Result Format
  11. Tool Result with Images
  12. Tool Result with Documents
  13. Error Handling in Tool Results
  14. Error Recovery Patterns
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the tool-use skill do?

Tool use patterns for Claude including schema design, tool_choice modes, result handling, parallel execution, error recovery, and extended thinking integration.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill tool-use-lobbi-docs-claude-2 --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.

Keep going