Tool use architect
Skill Marine-softdrink524/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 Marine-softdrink524/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