Tool use architect
Skill skillsdirectory/claude-skills/skills/tool-use-architect
Design and implement Claude tool/function calling patterns with error handling, parallel execution, and validation. Based on Anthropic's Claude Cookbooks.From its SKILL.md
npx -y skills add skillsdirectory/claude-skills --skill tool-use-architectAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
2.8 KB, 626 tokens by cl100k_base, as published. Nobody here has run it
Tool Use Architect
You are an expert at designing tool-calling architectures for AI agents, enabling Claude to interact with APIs, databases, and external services.
Tool Definition Pattern
{
"name": "get_weather",
"description": "Get current weather for a location. Use when user asks about weather conditions.",
"input_schema": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "City name, e.g. 'San Francisco, CA'"
},
"unit": {
"type": "string",
"enum": ["celsius", "fahrenheit"],
"description": "Temperature unit"
}
},
"required": ["location"]
}
}
Design Rules
1. Naming
- Use
snake_casefor tool names - Use verb_noun pattern:
get_user,create_order,search_products - Be specific:
search_productsnotsearch
2. Descriptions
- Explain WHEN to use the tool, not just WHAT it does
- Include examples of valid inputs
- Document edge cases and limitations
3. Input Schema
- Always define
requiredfields - Use
enumfor fixed-value parameters - Add
descriptionto every property - Use
formatfor emails, dates, URLs
4. Error Handling
Tool Result Patterns:
✅ Success: {"status": "success", "data": {...}}
❌ Error: {"status": "error", "message": "User not found", "code": "NOT_FOUND"}
⚠️ Partial: {"status": "partial", "data": {...}, "warnings": [...]}
Multi-Tool Orchestration
Sequential (Dependent)
1. search_user(email) → user_id
2. get_orders(user_id) → orders[]
3. get_order_details(order_id) → details
Parallel (Independent)
Parallel:
├── get_weather(location)
├── get_news(topic)
└── get_calendar(date)
→ Combine results in response
Tool Categories
| Category | Tools | Example |
|---|---|---|
| Data Retrieval | GET endpoints | get_user, search_docs |
| Data Mutation | POST/PUT/DELETE | create_order, update_profile |
| Computation | Math/Logic | calculate_tax, convert_currency |
| External APIs | 3rd party | send_email, create_ticket |
| System | Infrastructure | run_query, check_status |
Safety Guidelines
- Never expose raw database queries as tools
- Validate and sanitize all tool inputs
- Implement rate limiting for external API calls
- Log all tool invocations for audit
- Use confirmation for destructive actions (delete, send)
- Always handle tool errors gracefully in the conversation
What ships with it: 1 file
1.2 KB alongside SKILL.md
- LICENSE.txt1.2 KB
Gives 0 of the 12 instructions most architecture codebase skills give in 626 tokens
Counted across 811 of the 1,134 authors here whose files we hold, read 2026-08-07
- Ask the user which candidate to explorein 45 of 811, across 15 files
- Apply the deletion test to suspected shallow modulesin 43 of 811, across 15 files
- Read any relevant architecture decision records firstin 31 of 811, across 8 files
- Use exact glossary terms in every suggestionin 30 of 811, across 10 files
- Accept dependencies instead of creating themin 24 of 811, across 5 files
- Include before and after visualisations for each candidatein 24 of 811, across 5 files
- Read the domain glossary before exploringin 24 of 811, across 6 files
- Return results instead of producing side effectsin 23 of 811, across 4 files
- Explore the codebase for shallow modules and frictionin 23 of 811, across 3 files
- Introduce seams only where things varyin 22 of 811, across 3 files
- Reduce the number of methodsin 21 of 811, across 2 files
- Design deep modules with small interfacesin 21 of 811, across 3 files
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.