SKILL.md
<objective> Access the official Anthropic Claude Cookbooks repository (https://github.com/anthropics/claude-cookbooks) to find reference implementations, code examples, and best practices. This skill helps you find working examples for common Claude integration patterns. </objective>
<repository_structure> The Claude Cookbooks repository contains categorized examples:
skills/ - Claude Code skill examples
- Building custom skills
- Skill patterns and templates
- Progressive disclosure techniques
misc/ - Miscellaneous examples
- Various integration patterns
- Utility functions
third_party/ - Third-party integrations
- AWS Bedrock examples
- Google Vertex AI examples
- Framework integrations (LangChain, etc.)
tool_use/ - Tool calling examples
- Function calling patterns
- Tool definition best practices
- Multi-tool orchestration
multimodal/ - Vision and document examples
- Image processing
- PDF handling
- Multi-modal prompting
prompt_engineering/ - Prompting techniques
- System prompt patterns
- Few-shot examples
- Chain-of-thought techniques
agents/ - Agentic patterns
- Agent architectures
- Multi-agent coordination
- Tool-using agents
</repository_structure>
<quick_start> <workflow>
- Identify what you're looking for (tool use, agents, skills, etc.)
- Fetch the repository index to find relevant notebooks/examples
- Fetch specific example files for detailed implementation
- Adapt the patterns to your use case
</workflow>
<example title="Find tool use examples">
User: I need examples of how to define tools for Claude
Action: Fetch https://github.com/anthropics/claude-cookbooks/tree/main/tool_use
to see available tool use examples, then fetch specific notebooks
</example>
<example title="Find skill examples">
User: Show me how to build a Claude Code skill
Action: Fetch https://github.com/anthropics/claude-cookbooks/tree/main/skills
to find skill implementation patterns
</example> </quick_start>
<lookupurls> <baseurl>https://github.com/anthropics/claude-cookbooks/tree/main</base_url>
<category name="skills"> https://github.com/anthropics/claude-cookbooks/tree/main/skills </category>
<category name="tooluse"> https://github.com/anthropics/claude-cookbooks/tree/main/tooluse </category>
<category name="agents"> https://github.com/anthropics/claude-cookbooks/tree/main/agents </category>
<category name="multimodal"> https://github.com/anthropics/claude-cookbooks/tree/main/multimodal </category>
<category name="promptengineering"> https://github.com/anthropics/claude-cookbooks/tree/main/promptengineering </category>
<category name="thirdparty"> https://github.com/anthropics/claude-cookbooks/tree/main/thirdparty </category>
<category name="misc"> https://github.com/anthropics/claude-cookbooks/tree/main/misc </category>
<rawcontentbase> For fetching actual file content, use raw GitHub URLs: https://raw.githubusercontent.com/anthropics/claude-cookbooks/main/{path} </rawcontentbase> </lookup_urls>
<usagepatterns> <pattern name="browsecategory"> When user wants to see what examples exist:
- Use WebFetch on the category URL
- List available notebooks/files
- Ask which specific example to explore
</pattern>
<pattern name="fetch_example"> When user needs a specific example:
- Use WebFetch on the raw GitHub URL for the file
- Extract relevant code patterns
- Explain how to adapt for user's context
</pattern>
<pattern name="search_pattern"> When user describes a problem:
- Identify likely category (tool_use, agents, skills, etc.)
- Fetch category listing
- Find most relevant example
- Fetch and explain the implementation
</pattern> </usage_patterns>
<common_lookups>
| Need | Category | Example File |
|---|---|---|
| Define tools for Claude | tool_use | calculator_tool.ipynb |
| Build a skill | skills | various SKILL.md examples |
| Multi-agent patterns | agents | agent examples |
| Image/PDF processing | multimodal | vision examples |
| AWS Bedrock setup | third_party | bedrock examples |
| Prompting techniques | prompt_engineering | various notebooks |
</common_lookups>
<workflowforlookup> <step n="1"> Identify the domain: What type of example does the user need?
- Tool calling → tool_use/
- Skills/commands → skills/
- Agent patterns → agents/
- Vision/docs → multimodal/
- Cloud providers → third_party/
- Prompting → prompt_engineering/
</step>
<step n="2"> Fetch the category index:
WebFetch: https://github.com/anthropics/claude-cookbooks/tree/main/{category}
Prompt: List all available examples and notebooks in this directory
</step>
<step n="3"> Fetch specific example:
WebFetch: https://raw.githubusercontent.com/anthropics/claude-cookbooks/main/{category}/{filename}
Prompt: Extract the key implementation patterns and code examples
</step>
<step n="4"> Apply to context: Adapt the example patterns to the user's specific use case </step> </workflowforlookup>
<success_criteria>
- Found relevant example from cookbooks
- Fetched actual implementation code
- Explained how to adapt for user's needs
- Provided working code based on official patterns
</success_criteria>