# claude-cookbooks | Anthropic | Knowledge Base | Instagit

A collection of notebooks/recipes showcasing some fun and effective ways of using Claude.

GitHub Stars: 39.8k

Repository: https://github.com/anthropics/claude-cookbooks

---

## Articles

### [Creating Custom Skills for Financial Modeling with Claude: A Complete Developer Guide](/anthropics/claude-cookbooks/creating-custom-skills-financial-modeling-claude)

Build custom financial modeling skills for Claude. This developer guide shows you how to create modular capabilities for automated workflows using the Anthropic API.

- Tags: how-to-guide
- Published: 2026-04-14

### [How to Implement Tool Search with Embeddings for Dynamic Tool Selection in Claude](/anthropics/claude-cookbooks/how-to-implement-tool-search-embeddings-dynamic-tool-selection-claude)

Implement tool search with embeddings for dynamic tool selection in Claude. Enable on demand retrieval of relevant capabilities, saving context window space with this advanced technique.

- Tags: how-to-guide
- Published: 2026-04-14

### [Building Multi-Document Agents with LlamaIndex and Claude: A Complete Implementation Guide](/anthropics/claude-cookbooks/building-multi-document-agents-llamaindex-claude)

Build advanced multi-document agents with LlamaIndex and Claude. Learn to integrate retrieval infrastructure and tool-use for autonomous document analysis and synthesized answers.

- Tags: how-to-guide
- Published: 2026-04-14

### [Implementing Extended Thinking with Tool Use in Claude: A Production-Ready Guide](/anthropics/claude-cookbooks/implementing-extended-thinking-tool-use-claude)

Unlock Claude's extended thinking with tool use. This guide shows how to implement internal reasoning between tool calls for production-ready applications. Preserve and forward thinking blocks.

- Tags: how-to-guide
- Published: 2026-04-14

### [Creating a Voice Assistant with ElevenLabs STT and TTS Integration with Claude](/anthropics/claude-cookbooks/creating-voice-assistant-elevenlabs-stt-tts-integration-claude)

Build a low-latency voice assistant integrating ElevenLabs STT and TTS with Claude. Achieve sub-1.5 second time-to-first-audio for a seamless conversational experience.

- Tags: tutorial
- Published: 2026-04-14

### [How to Build Content Moderation Filters with Claude: A Complete Implementation Guide](/anthropics/claude-cookbooks/how-to-use-claude-building-moderation-filters)

Build production ready content moderation filters using Claude. Encode policies in prompts and constrain responses for easy updates without code changes. Learn how with this guide.

- Tags: how-to-guide
- Published: 2026-04-14

### [Implementing Parallel Tool Execution with Claude: The Batch Meta-Tool Pattern](/anthropics/claude-cookbooks/implementing-parallel-tool-execution-claude)

Implement parallel tool execution with Claude using the batch meta-tool pattern. Bundle operations to eliminate round-trip latency and force efficient execution.

- Tags: how-to-guide
- Published: 2026-04-14

### [Building Multimodal RAG with LlamaIndex and Claude: A Complete Implementation Guide](/anthropics/claude-cookbooks/building-multimodal-rag-llamaindex-claude)

Implement multimodal RAG using LlamaIndex and Claude. Retrieve and reason over text and images simultaneously with this comprehensive guide. Explore Claude's vision capabilities and LlamaIndex vector indexing.

- Tags: how-to-guide
- Published: 2026-04-14

### [Implementing Prompt Versioning and Rollback with Claude Managed Agents: A Complete Guide](/anthropics/claude-cookbooks/implementing-prompt-versioning-rollback-claude-managed-agents)

Learn prompt versioning and rollback with Claude Managed Agents. Pin production traffic to specific versions and instantly rollback without redeploying code. A complete guide.

- Tags: how-to-guide
- Published: 2026-04-14

### [Building a Slack Data Analyst Bot with Claude Managed Agents](/anthropics/claude-cookbooks/building-slack-data-analyst-bot-claude-managed-agents)

Build a collaborative Slack data analyst bot using Claude Managed Agents. Analyze data directly in channels with this production-ready pattern from anthropic/claude-cookbooks. Deploy interactive insights now.

- Tags: how-to-guide
- Published: 2026-04-14

### [How to Use Claude with Vision for Chart and Graph Interpretation](/anthropics/claude-cookbooks/how-to-use-claude-vision-chart-graph-interpretation)

Unlock Claude with Vision for chart and graph interpretation. Analyze PDFs with visual elements like axes and legends using the Anthropic API. Master data visualization analysis today.

- Tags: how-to-guide
- Published: 2026-04-14

### [Implementing Automatic Context Compaction in Claude Tool Use: A Complete Guide](/anthropics/claude-cookbooks/implementing-automatic-context-compaction-claude-tool-use)

Easily implement automatic context compaction in Claude tool use. This guide explains how Claude's context management beta prunes history to prevent overflow and preserve key interactions.

- Tags: how-to-guide
- Published: 2026-04-14

### [Building Text-to-SQL Queries with Claude for Database Operations](/anthropics/claude-cookbooks/building-text-to-sql-queries-claude-database-operations)

Learn to build text-to-SQL queries with Claude for database operations. Discover automated schema extraction, few-shot prompting, and chain-of-thought reasoning for accurate results.

- Tags: how-to-guide
- Published: 2026-04-14

### [Creating a Customer Service Agent with Claude Tool Use Integration: A Complete Implementation Guide](/anthropics/claude-cookbooks/creating-customer-service-agent-claude-tool-use-integration)

Build a customer service agent with Claude tool use integration. Follow this guide to define tools, implement dispatchers, and run a conversation loop for production-ready applications from anthropics/claude-cookbooks.

- Tags: how-to-guide
- Published: 2026-04-14

### [How to Implement Session Memory Compaction for Long-Running Claude Conversations](/anthropics/claude-cookbooks/how-to-implement-session-memory-compaction-long-running-claude-conversations)

Learn session memory compaction for long-running Claude conversations. Proactively summarize in background threads to prevent context loss and latency.

- Tags: how-to-guide
- Published: 2026-04-14

### [Building an SRE Incident Response Agent with Claude Managed Agents: Complete Implementation Guide](/anthropics/claude-cookbooks/building-sre-incident-response-agent-claude-managed-agents)

Build an SRE incident response agent with Claude Managed Agents. Triage alerts, analyze logs, and open pull requests autonomously. Get the complete implementation guide here.

- Tags: tutorial
- Published: 2026-04-14

### [Implementing Context Engineering Tools for Enhanced Claude Interactions: A Technical Guide](/anthropics/claude-cookbooks/implementing-context-engineering-tools-enhanced-claude-interactions)

Master context engineering tools for Claude agents. Learn to process over 300K tokens within the 1M token window using Anthropic API primitives for efficient long-running interactions.

- Tags: how-to-guide
- Published: 2026-04-14

### [Building a Data Analyst Agent with Claude Managed Agents and File Mounting](/anthropics/claude-cookbooks/building-data-analyst-agent-claude-managed-agents-file-mounting)

Build a secure data analyst agent with Claude Managed Agents and file mounting. Process files safely without exposing raw data while enabling complex computations.

- Tags: how-to-guide
- Published: 2026-04-14

### [How to Use Programmatic Tool Calling with Claude to Reduce Latency and Token Consumption](/anthropics/claude-cookbooks/how-to-use-programmatic-tool-calling-claude-reduce-latency-token-consumption)

Learn how to use programmatic tool calling with Claude to cut latency and token use. Execute multiple tool calls in one API trip, reducing costs and improving performance.

- Tags: how-to-guide
- Published: 2026-04-14

### [Creating a Custom Crop Tool for Detailed Image Region Analysis in Claude Vision](/anthropics/claude-cookbooks/creating-custom-crop-tool-detailed-image-region-analysis-claude-vision)

Build a custom crop tool for Claude Vision to analyze detailed image regions. Learn how to use normalized coordinates to zoom in on specific image areas for advanced analysis.

- Tags: how-to-guide
- Published: 2026-04-14

### [How to Implement Knowledge Graph Construction from Unstructured Text with Claude](/anthropics/claude-cookbooks/how-to-implement-knowledge-graph-construction-unstructured-text-claude)

Learn to build a typed knowledge graph from unstructured text using Claude's structured output. This four-stage Python pipeline offers a clear path to knowledge extraction.

- Tags: how-to-guide
- Published: 2026-04-14

### [Building a Threat Intelligence Enrichment Agent with Multi-Source IOC Querying Using Claude](/anthropics/claude-cookbooks/building-threat-intelligence-enrichment-agent-multi-source-ioc-querying-claude)

Build a threat intelligence enrichment agent querying multiple sources with Claude. Automate IOC analysis and enhance your security posture. Learn how to leverage Claude's tool-use for advanced threat hunting.

- Tags: how-to-guide
- Published: 2026-04-14

### [How to Implement Structured JSON Extraction with Claude Using Pydantic Models](/anthropics/claude-cookbooks/how-to-implement-structured-json-extraction-with-claude-using-pydantic-models)

Learn structured JSON extraction with Claude and Pydantic models. Define a schema, embed it in prompts, and parse responses for type-safe structured outputs. Automate validation and coercion.

- Tags: how-to-guide
- Published: 2026-04-14

