claude-cookbooks / skills
CLAUDE.md53k starsChanged 10 months agoMITView on GitHub
This is a comprehensive Jupyter notebook cookbook demonstrating Claude's Skills feature for document generation (Excel, PowerPoint, PDF). It's designed for developers learning to integrate Skills into their applications. Beta API Requirements: - All Skills functionality uses client.beta.* namespace - Required beta headers: code-execution-2025-08-25, files-api-2025-04-14, skills-2025-10-02 - Must use client.beta.messages.create() with container parameter - Code execution tool (code_execution_20250825) is REQUIRED - Use pre-built Agent skills by referencing their skill_id or create and upload your own via the Skills API Files API…
- Reads credentials
- Installs packages
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about anthropics/claude-cookbooks
- SuperClaude-Org/SuperClaude_Framework“Consider migrating Modes to Skills”GitHub · Oct 16, 2025 · 6 reactions
- anthropics/claude-code“[BUG] Consider permissive license for devcontainer configs”GitHub · Nov 7, 2025 · 3 reactions
- @github-trending.bsky.social“🔥 Hot Repo! 🔥 (100+ new stars) 📦 anthropics / claude-cookbooks ⭐ 46,842 (+194) 🗒 Jupyter Notebook A …”Bluesky · Jul 9, 2026 · 2 likes
- SimonSchubert/Kai“[Feature Request] Add Anthropic-Style Prompt Caching – Save Up to 90% on Token Costs & Make API Usage 10x …”GitHub · Mar 16, 2026 · 2 reactions
- deepset-ai/haystack“Add Tool Search Tool”GitHub · Jan 8, 2026 · 2 reactions
The biggest 5 of 55 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 55
Talked about on GitHub, Bluesky and Hacker News (55 times).
On GitHub · 50
- Oct 16, 2025Consider migrating Modes to Skills — SuperClaude-Org/SuperClaude_Framework6 reactions · 2 comments
- Nov 7, 2025[BUG] Consider permissive license for devcontainer configs — anthropics/claude-code3 reactions · 7 comments
- Mar 16, 2026[Feature Request] Add Anthropic-Style Prompt Caching – Save Up to 90% on Token Costs & Make API Usage 10x Cheaper! — SimonSchubert/Kaisays it tested it2 reactions · 4 comments
- Jan 8, 2026Add Tool Search Tool — deepset-ai/haystack2 reactions · 2 comments
- Jul 1, 2026optimize context usage and compaction algorith, — zew1me/fitness-coach-agent1 reaction · 5 comments
45 more on GitHub
- May 10, 2026🔗 Broken links detected — ARUNAGIRINATHAN-K/ai-agent-registry1 reaction
- Dec 13, 2025Support Anthropic Agent Skills — vinhnx/VTCode1 reaction
- Oct 17, 2025Support for Claude Agent Skills — vercel/ai1 reaction · 3 comments
- Oct 16, 2025[FEATURE] Implement Claude Memory Api with Basic Memory — basicmachines-co/basic-memory1 reaction · 1 comment
- Nov 23, 2026T074: read-only memory maintenance review with drift and provenance diagnostics — wang1299/dsh-reforge0 reactions
- Nov 21, 2026claude-code-plugins.github.anthropics.claude-cookbooks: 0-unstable-2026-11-04 → 0-unstable-2026-11-20 — sudosubin/agents.nix0 reactions
- Nov 9, 2026Detector research digest — 2026-11-09 — watsonrm/tokenmin-scanner0 reactions
- Nov 8, 2026官方源码执行契约与迁移差异 — TreeTreeDi/yume0 reactions · 1 comment
- Nov 7, 2026@claude ingest: X post — Anthropic repos as Claude Code 'cheat codes' — ryanaedwardsnavy-sudo/Secondbrain0 reactions · 1 comment
- Nov 4, 2026claude-code-plugins.github.anthropics.claude-cookbooks: 0-unstable-2026-11-02 → 0-unstable-2026-11-04 — sudosubin/agents.nix0 reactions
- Nov 3, 2026claude-code-plugins.github.anthropics.claude-cookbooks: 0-unstable-2026-10-29 → 0-unstable-2026-11-02 — sudosubin/agents.nix0 reactions
- Nov 2, 2026Detector research digest — 2026-11-02 — watsonrm/tokenmin-scanner0 reactions
- Oct 31, 2026content: fix every dead external link, and the claims behind them — clawless-io/clawdemy0 reactions · 1 comment
- Oct 29, 2026claude-code-plugins.github.anthropics.claude-cookbooks: 0-unstable-2026-10-24 → 0-unstable-2026-10-29 — sudosubin/agents.nix0 reactions
- Oct 24, 2026claude-code-plugins.github.anthropics.claude-cookbooks: 0-unstable-2026-10-17 → 0-unstable-2026-10-24 — sudosubin/agents.nix0 reactions
- Oct 24, 2026agent-skills.github.anthropics.claude-cookbooks: 0-unstable-2026-07-03 → 0-unstable-2026-10-24 — sudosubin/agents.nix0 reactions
- Oct 19, 2026Detector research digest — 2026-10-19 — watsonrm/tokenmin-scanner0 reactions
- Oct 17, 2026claude-code-plugins.github.anthropics.claude-cookbooks: 0-unstable-2026-10-14 → 0-unstable-2026-10-17 — sudosubin/agents.nix0 reactions
- Oct 16, 2026Point the Go Deeper cookbook link at the renamed Claude Cookbooks repo — erikaflowers/openvector0 reactions
- Oct 14, 2026claude-code-plugins.github.anthropics.claude-cookbooks: 39cd5a7 → b2b0aa1 — sudosubin/agents.nix0 reactions
- Oct 14, 2026claude-code-plugins.github.anthropics.claude-cookbooks: 0-unstable-2026-10-10 → 0-unstable-2026-10-14 — sudosubin/agents.nix0 reactions
- Oct 14, 2026claude-code-plugins.github.anthropics.claude-cookbooks: 0-unstable-2026-09-28 → 0-unstable-2026-10-10 — sudosubin/agents.nix0 reactions
- Oct 8, 2026feat: absorb latest Anthropic design guidance — grapeot/design_skill0 reactions
- Oct 4, 2026claude-code-plugins.github.anthropics.claude-cookbooks: init at 0-unstable-2026-09-28 — sudosubin/agents.nix0 reactions
- Oct 4, 2026# - []()** @ ** — sajjadfarooq768-ai/refactored-octo-parakeet0 reactions
- Sep 28, 2026Detector research digest — 2026-09-28 — watsonrm/tokenmin-scanner0 reactions
- Sep 25, 2026agent-skills.github.anthropics.claude-cookbooks: init at 0-unstable-2026-07-03 — sudosubin/agents.nix0 reactions
- Sep 21, 2026Detector research digest — 2026-09-21 — watsonrm/tokenmin-scanner0 reactions
- Sep 8, 2026Refresh every section for September 2026: add 154 resources, retire 3 — jayvicsanantonio/web-development-hub0 reactions · 3 comments
- Aug 28, 2026[V7 review] AI Engineer Notebooks – free, framework-free RAG/agents/evals on Colab — wsysgz/VS_AI0 reactions
- Aug 17, 2026Detector research digest — 2026-08-17 — watsonrm/tokenmin-scanner0 reactions
- Aug 10, 2026Detector research digest — 2026-08-10 — watsonrm/tokenmin-scanner0 reactions
- Jul 27, 2026Detector research digest — 2026-07-27 — watsonrm/tokenmin-scanner0 reactions
- Jul 27, 2026feat(claude): Claude-Codex 위임 하네스 — 결정표·scout 에이전트·안내 훅 — greenheadHQ/nixos-config0 reactions · 3 comments
- Jul 25, 2026🔥 GitHub Trending AI 早报 · 2026-07-26 · Top 5 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Jul 25, 2026🔥 GitHub Trending AI 早报 · 2026-07-26 · Top 5 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Jul 25, 2026🔥 GitHub Trending AI 晚报 · 2026-07-25 · Top 5 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Jul 25, 2026🔥 GitHub Trending AI 晚报 · 2026-07-25 · Top 5 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Jul 14, 2026[V7 review] Show HN: BillAI Bass, an AI-Powered Big Mouth Billy Bass Using Strands Agents — wsysgz/VS_AI0 reactions
- Jul 13, 2026Detector candidate: Coordinator pattern: expensive model used for worker subagents instead of cheap models — watsonrm/tokenmin-scanner0 reactions
- Jul 13, 2026Detector research digest — 2026-07-13 — watsonrm/tokenmin-scanner0 reactions
- Jul 13, 2026Github trending [anthropics/claude-cookbooks] Claude API 代码实战指南 — web1992/github-trending0 reactions
- Jul 12, 2026refactor(forge): one shared standards-modeling abstraction for agent mode + copilot — Agenticstiger/forge-cli0 reactions · 1 comment
- Jul 10, 2026Github trending [anthropics/claude-cookbooks] Claude应用开发实战指南 — web1992/github-trending0 reactions
- Jul 8, 2026ipynb to markdown — oubakiou/mdxg-redline0 reactions
On Bluesky · 4
- Jul 9, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 anthropics / claude-cookbooks ⭐ 46,842 (+194) 🗒 Jupyter Notebook A collection of notebooks/recipes… — @github-trending.bsky.social2 likes and reposts
- Jul 25, 2026今日のGitHubトレンド anthropics/claude-cookbooks 開発者がClaudeを用いた開発を効率的に行えるよう、実装ガイドやコピーして利用可能なコードスニペットを提供するリポジトリです。… — @dailygithubtrends.bsky.social1 likes and repost
- Jul 10, 20263. Claude Managed Agents reduce agentic workflow costs by 54% LINK 4. Aria runtime enables on-device Stable Audio 3 generation without… — @hackobar.bsky.socialsays it tested it0 likes and reposts · 1 reply
- Apr 13, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 anthropics / claude-cookbooks ⭐ 38,971 (+328) 🗒 Jupyter Notebook A collection of notebooks/recipes… — @github-trending.bsky.social0 likes and reposts · 1 reply
On Hacker News · 1
- Nov 14, 2025Front End Aesthetics: A Prompting Guide1 point · 1 comment
In this repository6 other files it gives its agents.
- claude_agent_sdk/chief_of_staff_agent/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- cookbook-auditSkill
- analyzing-financial-statementsSkill
- applying-brand-guidelinesSkill
- creating-financial-modelsSkill
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
26 rules. About 0 are common, 12 are distinctive, and 14 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
14
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 60
All Skills functionality uses client.beta.* namespace
- Very specific: line 62
Must use client.beta.messages.create() with container parameter
- Very specific: line 64
Use pre-built Agent skills by referencing their skill_id or create and upload your own via the Skills API
- Very specific: line 68
Must use client.beta.files.download() to download files
- Very specific: line 69
Must use client.beta.files.retrieve_metadata() to get file info
- Distinctive: line 81
Important: Ensure you have the Anthropic SDK version 0.71.0 or later with Skills support
- Very specific: line 89
Solution: Use client.beta.messages.create() and client.beta.files.*
- Very specific: line 102
Solution: Use betas parameter per-request instead
- Very specific: line 125
Solution: Use .read() for file content and .size_bytes for file size
- Distinctive: line 144
Solution: Always select venv kernel in VSCode/Jupyter
- Distinctive: line 163
Solution: Add clear timing expectations before file creation cells
- Distinctive: line 168
Important: Keep examples simple and focused.
- Very specific: line 173
Follow existing structure in 01_skills_introduction.ipynb
- Distinctive: line 176
Add error handling examples
- Very specific: line 180
Add realistic financial data to sample_data/
- Distinctive: line 181
Use CSV for tabular, JSON for structured
- Distinctive: line 184
Keep file sizes reasonable (<100KB)
- Distinctive: line 187
Run notebook cell to generate file
- Distinctive: line 188
Check response for file_id
- Very specific: line 190
Verify file in outputs/ directory
- Very specific: line 196
Check SDK version: anthropic.__version__ should be 0.69.0
- Distinctive: line 197
Verify beta headers are passed per-request
- Distinctive: line 198
Ensure code_execution tool is included
- Very specific: line 199
Check response structure with print(response)
- Very specific: line 200
Look for error details in response.stop_reason
- Distinctive: line 204
Before committing notebook changes:
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skills Cookbook - Claude Code Guide
Project Overview
This is a comprehensive Jupyter notebook cookbook demonstrating Claude's Skills feature for document generation (Excel, PowerPoint, PDF). It's designed for developers learning to integrate Skills into their applications.
Quick Start Commands
Environment Setup
# Create and activate virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies (MUST use local whl for Skills support)
pip install -r requirements.txt
# Configure API key
cp .env.example .env
# Edit .env and add your ANTHROPIC_API_KEYRunning Notebooks
# Launch Jupyter
jupyter notebook
# Or use VSCode with Jupyter extension
# Make sure to select the venv kernel in VSCode: Cmd+Shift+P → "Python: Select Interpreter"Testing & Verification
# Verify environment and SDK version
python -c "import anthropic; print(f'SDK Version: {anthropic.__version__}')"
# Check outputs directory for generated files
ls -lh outputs/Architecture Overview
Directory Structure
skills/
├── notebooks/ # 3 progressive Jupyter notebooks
│ ├── 01_skills_introduction.ipynb
│ ├── 02_skills_financial_applications.ipynb # WIP
│ └── 03_skills_custom_development.ipynb # WIP
├── sample_data/ # Financial datasets for examples
├── custom_skills/ # Custom skill development area
├── outputs/ # Generated files (xlsx, pptx, pdf)
├── file_utils.py # Files API helper functions
└── docs/ # Implementation trackingKey Technical Details
Beta API Requirements:
- All Skills functionality uses
client.beta.*namespace - Required beta headers:
code-execution-2025-08-25,files-api-2025-04-14,skills-2025-10-02 - Must use
client.beta.messages.create()withcontainerparameter - Code execution tool (
code_execution_20250825) is REQUIRED - Use pre-built Agent skills by referencing their
skill_idor create and upload your own via the Skills API
Files API Integration:
- Skills generate files and return
file_idattributes - Must use
client.beta.files.download()to download files - Must use
client.beta.files.retrieve_metadata()to get file info - Helper functions in
file_utils.pyhandle extraction and download
Built-in Skills:
xlsx- Excel workbooks with formulas and chartspptx- PowerPoint presentationspdf- PDF documentsdocx- Word documents
Development Gotchas
1. SDK Version
Important: Ensure you have the Anthropic SDK version 0.71.0 or later with Skills support
pip install anthropic>=0.71.0
# Restart Jupyter kernel after installation if upgrading!2. Beta Namespace Required
Problem: container parameter not recognized, files API fails
Solution: Use client.beta.messages.create() and client.beta.files.*
# ❌ Wrong
response = client.messages.create(container={...})
content = client.files.content(file_id)
# ✅ Correct
response = client.beta.messages.create(container={...})
content = client.beta.files.content(file_id)3. Beta Headers Placement
Problem: Setting Skills beta in default_headers requires code_execution on ALL requests
Solution: Use betas parameter per-request instead
# ❌ Wrong (affects all requests)
client = Anthropic(default_headers={"anthropic-beta": "skills-2025-10-02"})
# ✅ Correct (per-request)
response = client.beta.messages.create(
betas=["code-execution-2025-08-25", "files-api-2025-04-14", "skills-2025-10-02"],
...
)4. File ID Extraction
Problem: Response structure differs from standard Messages API
Solution: File IDs in bash_code_execution_tool_result.content.content[0].file_id
# Use file_utils.extract_file_ids() - handles beta response structure
from file_utils import extract_file_ids, download_all_files
file_ids = extract_file_ids(response)5. Files API Response Objects
Problem: 'BinaryAPIResponse' object has no attribute 'content', 'FileMetadata' object has no attribute 'size'
Solution: Use .read() for file content and .size_bytes for file size
# ❌ Wrong
file_content = client.beta.files.download(file_id)
with open(path, 'wb') as f:
f.write(file_content.content) # No .content attribute!
# ✅ Correct
file_content = client.beta.files.download(file_id)
with open(path, 'wb') as f:
f.write(file_content.read()) # Use .read()
# FileMetadata fields: id, filename, size_bytes (not size), mime_type, created_at, type, downloadable
metadata = client.beta.files.retrieve_metadata(file_id)
print(f"Size: {metadata.size_bytes} bytes") # Use size_bytes, not size6. Jupyter Kernel Selection
Problem: Wrong Python interpreter = wrong dependencies Solution: Always select venv kernel in VSCode/Jupyter
- VSCode: Cmd+Shift+P → "Python: Select Interpreter" → select venv
- Jupyter: Kernel → Change Kernel → select venv
7. Module Reload Required
Problem: Changes to file_utils.py not reflected in running notebooks
Solution: Restart kernel or reload module
import importlib
importlib.reload(file_utils)8. Document Generation Times
Problem: File creation takes longer than typical API calls, users may think cell is frozen Actual Observed Times:
- Excel: ~2 minutes
- PowerPoint: ~1-2 minutes (simple 2-3 slide presentations)
- PDF: ~1-2 minutes
Solution: Add clear timing expectations before file creation cells
**⏱️ Note**: Excel generation typically takes 1-2 minutes.
Be patient - the cell will show [*] while running!Important: Keep examples simple and focused. Generation times are consistent at 1-2 minutes for well-scoped examples.
Common Tasks
Adding a New Notebook Section
- Follow existing structure in
01_skills_introduction.ipynb - Include setup cell with imports and beta headers
- Show API call, response handling, file download
- Add error handling examples
- Update
docs/skills_cookbook_plan.mdchecklist
Creating Sample Data
- Add realistic financial data to
sample_data/ - Use CSV for tabular, JSON for structured
- Include headers and proper formatting
- Reference in notebook with pandas
- Keep file sizes reasonable (<100KB)
Testing File Download
- Run notebook cell to generate file
- Check response for file_id
- Use
download_all_files()helper - Verify file in
outputs/directory - Open file in native app to validate
Note: Files are overwritten by default. You'll see [overwritten] in the download summary when a file already existed. Set overwrite=False to prevent this.
Debugging API Errors
- Check SDK version:
anthropic.__version__should be0.69.0 - Verify beta headers are passed per-request
- Ensure code_execution tool is included
- Check response structure with
print(response) - Look for error details in
response.stop_reason
Testing Checklist
Before committing notebook changes:
- Restart kernel and run all cells
- Verify all file downloads work
- Check outputs/ for generated files
- Validate files open correctly in native apps
- Update skills_cookbook_plan.md checklist
- Test in fresh virtual environment
Resources
- API Reference: https://docs.claude.com/en/api/messages
- Files API: https://docs.claude.com/en/api/files-content
- Skills Documentation: https://docs.claude.com/en/docs/agents-and-tools/agent-skills/overview
Project-Specific Notes
- Focus Domain: Finance & Analytics with practical business applications
- Target Audience: Intermediate developers and business analysts
- Notebook 1: Complete and tested (file downloads working)
- Notebook 2: Financial Applications - next priority
- Notebook 3: Custom Skills Development - after Notebook 2
Environment Variables
Required in .env:
ANTHROPIC_API_KEY=your-api-key-hereOptional (for advanced examples):
ANTHROPIC_BASE_URL=https://api.anthropic.com # If using proxyDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

