claude-cookbooks by 2025emma/vibe-coding-cn
npx skills add https://github.com/2025emma/vibe-coding-cn --skill claude-cookbooks基于 Claude AI 构建的综合代码示例和指南,源自官方的 Anthropic 烹饪书仓库。
此技能应在以下情况触发:
import anthropic
client = anthropic.Anthropic(api_key="your-api-key")
# 简单消息
response = client.messages.create(
model="claude-3-5-sonnet-20241022",
max_tokens=1024,
messages=[{
"role": "user",
"content": "Hello, Claude!"
}]
)
# 定义一个工具
tools = [{
"name": "get_weather",
"description": "获取指定位置的当前天气",
"input_schema": {
"type": "object",
"properties": {
"location": {"type": "string", "description": "城市名称"}
},
"required": ["location"]
}
}]
# 使用工具
response = client.messages.create(
model="claude-3-5-sonnet-20241022",
max_tokens=1024,
tools=tools,
messages=[{"role": "user", "content": "旧金山的天气怎么样?"}]
)
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
# 分析图像
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": "描述这张图片"}
]
}]
)
# 使用提示词缓存以提高效率
response = client.messages.create(
model="claude-3-5-sonnet-20241022",
max_tokens=1024,
system=[{
"type": "text",
"text": "大型系统提示词在这里...",
"cache_control": {"type": "ephemeral"}
}],
messages=[{"role": "user", "content": "你的问题"}]
)
烹饪书按以下主要类别组织:
此技能包含 references/ 目录下的综合文档:
参见:references/tool_use.md#customer-service
参见:references/capabilities.md#rag
参见:references/multimodal.md#vision
参见:references/patterns.md#agents
从 references/main_readme.md 开始,并探索 references/capabilities.md 中的基本示例
references/tool_use.mdreferences/multimodal.mdreferences/capabilities.md#ragreferences/patterns.md#agents每个参考文件都包含实用的、可直接复制粘贴的代码示例
烹饪书包含 50 多个实用示例,包括:
此技能创建自官方的 Anthropic Claude 烹饪书仓库:https://github.com/anthropics/claude-cookbooks
仓库克隆和处理于:2025-10-29
每周安装次数
83
仓库
GitHub 星标数
13.7K
首次出现
2026年1月22日
安全审计
安装于
claude-code64
opencode62
gemini-cli58
codex57
cursor50
github-copilot44
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
Weekly Installs
83
Repository
GitHub Stars
13.7K
First Seen
Jan 22, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
claude-code64
opencode62
gemini-cli58
codex57
cursor50
github-copilot44
超能力技能使用指南:AI助手技能调用优先级与工作流程详解
52,100 周安装
二进制初步分析指南:使用ReVa工具快速识别恶意软件与逆向工程
69 周安装
PrivateInvestigator 道德人员查找工具 | 公开数据调查、反向搜索与背景研究
69 周安装
TorchTitan:PyTorch原生分布式大语言模型预训练平台,支持4D并行与H100 GPU加速
69 周安装
screenshot 截图技能:跨平台桌面截图工具,支持macOS/Linux权限管理与多模式捕获
69 周安装
tmux进程管理最佳实践:交互式Shell初始化、会话命名与生命周期管理
69 周安装
Git Rebase Sync:安全同步分支的Git变基工具,解决冲突与备份
69 周安装