← ClaudeAtlas

claude-cookbookslisted

Claude AI cookbooks - code examples, tutorials, and best practices for using Claude API. Use when learning Claude API integration, building Claude-powered applications, or exploring Claude capabilities.
aiskillstore/marketplace · ★ 329 · AI & Automation · score 79
Install: claude install-skill aiskillstore/marketplace
# Claude Cookbooks Skill Comprehensive code examples and guides for building with Claude AI, sourced from the official Anthropic cookbooks repository. ## When to Use This Skill This skill should be triggered when: - Learning how to use Claude API - Implementing Claude integrations - Building applications with Claude - Working with tool use and function calling - Implementing multimodal features (vision, image analysis) - Setting up RAG (Retrieval Augmented Generation) - Integrating Claude with third-party services - Building AI agents with Claude - Optimizing prompts for Claude - Implementing advanced patterns (caching, sub-agents, etc.) ## Quick Reference ### Basic API Usage ```python import anthropic client = anthropic.Anthropic(api_key="your-api-key") # Simple message response = client.messages.create( model="claude-3-5-sonnet-20241022", max_tokens=1024, messages=[{ "role": "user", "content": "Hello, Claude!" }] ) ``` ### Tool Use (Function Calling) ```python # Define a tool tools = [{ "name": "get_weather", "description": "Get current weather for a location", "input_schema": { "type": "object", "properties": { "location": {"type": "string", "description": "City name"} }, "required": ["location"] } }] # Use the tool response = client.messages.create( model="claude-3-5-sonnet-20241022", max_tokens=1024, tools=tools, messages=[{"role": "user", "content": "Wh