i18n/zh/skills/claude-cookbooks/SKILL.md
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.
npx skillsauth add 2025emma/vibe-coding-cn claude-cookbooksInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Comprehensive code examples and guides for building with Claude AI, sourced from the official Anthropic cookbooks repository.
This skill should be triggered when:
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!"
}]
)
# 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": "What's the weather in San Francisco?"}]
)
# Analyze an image
response = client.messages.create(
model="claude-3-5-sonnet-20241022",
max_tokens=1024,
messages=[{
"role": "user",
"content": [
{
"type": "image",
"source": {
"type": "base64",
"media_type": "image/jpeg",
"data": base64_image
}
},
{"type": "text", "text": "Describe this image"}
]
}]
)
# Use prompt caching for efficiency
response = client.messages.create(
model="claude-3-5-sonnet-20241022",
max_tokens=1024,
system=[{
"type": "text",
"text": "Large system prompt here...",
"cache_control": {"type": "ephemeral"}
}],
messages=[{"role": "user", "content": "Your question"}]
)
The cookbooks are organized into these main categories:
This skill includes comprehensive documentation in references/:
See: references/tool_use.md#customer-service
See: references/capabilities.md#rag
See: references/multimodal.md#vision
See: references/patterns.md#agents
Start with references/main_readme.md and explore basic examples in references/capabilities.md
references/tool_use.mdreferences/multimodal.mdreferences/capabilities.md#ragreferences/patterns.md#agentsEach reference file contains practical, copy-pasteable code examples
The cookbook includes 50+ practical examples including:
This skill was created from the official Anthropic Claude Cookbooks repository: https://github.com/anthropics/claude-cookbooks
Repository cloned and processed on: 2025-10-29
tools
# twscrape Python library for scraping Twitter/X data using GraphQL API with account rotation and session management. ## When to use this skill Use this skill when: - Working with Twitter/X data extraction and scraping - Need to bypass Twitter API limitations with account rotation - Building social media monitoring or analytics tools - Extracting tweets, user profiles, followers, trends from Twitter/X - Need async/parallel scraping operations for large-scale data collection - Looking for alte
tools
TimescaleDB - PostgreSQL extension for high-performance time-series and event data analytics, hypertables, continuous aggregates, compression, and real-time analytics
development
Telegram 生态开发全栈指南 - 涵盖 Bot API、Mini Apps (Web Apps)、MTProto 客户端开发。包括消息处理、支付、内联模式、Webhook、认证、存储、传感器 API 等完整开发资源。
tools
snapDOM is a fast, accurate DOM-to-image capture tool that converts HTML elements into scalable SVG images. Use for capturing HTML elements, converting DOM to images (SVG, PNG, JPG, WebP), preserving styles, fonts, and pseudo-elements.