CLAUDE.md · anthropics/claude-cookbooks
CLAUDE.md from anthropics/claude-cookbooks: 112 lines covering Quick Start, Development Commands, Code Style, Git Workflow and more.
Template by anthropics
Chalk Labs
Need help deploying CLAUDE.md · anthropics/claude-cookbooks?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/anthropics/claude-cookbooks/main/CLAUDE.md -o CLAUDE.md
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: prompt-engineering
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
A CLAUDE.md file: project memory Claude Code loads at the start of every session.
- For
- Claude Code
- Length
- 112 lines
- File
CLAUDE.md
Sections
- Quick Start
- Development Commands
- Code Style
- Git Workflow
- Key Rules
- Slash Commands
- Project Structure
- Adding a New Cookbook
First lines (shown under the repo's MIT license)
# Claude Cookbooks
A collection of Jupyter notebooks and Python examples for building with the Claude API.
## Quick Start
```bash
# Install dependencies
uv sync --all-extras
# Install pre-commit hooks
uv run pre-commit install
# Set up API key
cp .env.example .env
# Edit .env and add your ANTHROPIC_API_KEY
```
## Development Commands
```bash
make format # Format code with ruff
make lint # Run linting
make check # Run format-check + lint
make fix # Auto-fix issues + format
make test # Run pytest
```
Or directly with uv:
```bash
uv run ruff format . # Format
uv run ruff check . # Lint
uv run ruff check --fix . # Auto-fix
uv run pre-commit run --all-files
```
## Code Style
- **Line length:** 100 characters
- **Quotes:** Double quotes
- **Formatter:** Ruff
Notebooks have relaxed rules for mid-file imports (E402), redefinitions (F811), and variable naming (N803, N806).
## Git Workflow
**Branch naming:** `<username>/<feature-description>`
**Commit format (conventional commits):**
```
feat(scope): add new feature
fix(scope): fix bug
docs(scope): update documentation
style: lint/format
```
## Key Rules
1. **API Keys:** Never commit `.env` files. Use `dotenv.load_dotenv()` then access keys via `os.environ` or `os.getenv()`
2. **Dependencies:** Use `uv add <package>` or `uv add --dev <package>`. Never edit pyproject.toml directly.
3. **Models:** Use current Claude models. Check platform.claude.com/docs for latest versions.
- Opus: `claude-opus-5-5`
- Sonnet: `claude-sonnet-5-5`
- Fable: `claude-fable-5-1`
- Haiku: `claude-haiku-5-5`
- **Never use dated model IDs** (e.g., `claude-sonnet-4-5-20250929`). Always use the non-dated alias.
- **Bedrock model IDs** follow a different format. Use the base Bedrock model ID from the docs:
- Opus 5.5: `anthropic.claude-opus-5-5`
- Sonnet 5.5: `anthropic.claude-sonnet-5-5`
- Fable 5.1: `anthropic.claude-fable-5-1`
- Haiku 5.5: `anthropic.claude-haiku-5-5`
- Prepend `global.` for global endpoints (recommended): `global.anthropic.claude-opus-5-5`
- Note: these are the IDs for Bedrock's Messages-API endpoint. Integrations that only go through InvokeModel (for example `boto3` `invoke_model`, or fine-tuning jobs) use the dated form instead, e.g. `anthropic.claude-haiku-4-5-20251001-v1:0`.
4. **Notebooks:**
- Keep outputs in notebooks (intentional for demonstration)
- One concept per notebook
- Test that notebooks run top-to-bottom without errors
5. **Quality checks:** Run `make check` before committing. Pre-commit hooks validate formatting and notebook structure.
## Slash Commands
These commands are available in Claude Code and CI:
- `/notebook-review` - Review notebook quality
- `/model-check` - Validate Claude model references
- `/link-review` - Check links in changed files
## Project Structure
```
capabilities/ # Core Claude capabilities (RAG, classification, etc.)
evals/ # Model evaluation patterns and benchmarks
skills/ # Advanced skill-based notebooks
tool_use/ # Tool use and integration patterns
multimodal/ # Vision and image processing
misc/ # Batch processing, caching, utilities
third_party/ # Pinecone, Voyage, Wikipedia integrations
extended_thinking/ # Extended reasoning patterns
scripts/ # Validation scripts
.claude/ # Claude Code commands and skills
```
## Adding a New Cookbook
1. Create notebook in the appropriate directory
2. Add entry to `registry.yaml` with title, description, path, authors, categories
3. Add author info to `authors.yaml` if new contributor
4. Run quality checks and submit PRSignals
- Stars
- 53,735
- Forks
- 6,479
- Open issues
- 88
- Last commit (this folder)
- Oct 24, 2026 (6 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/anthropics/claude-cookbooks
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from anthropics
- 0.865score
cookbook-audit
anthropicsOfficial
Audit an Anthropic Cookbook notebook based on a rubric.
SkillAFreshness: A★ 53.7KClaude Code +9 - 0.865score
claude-api
anthropicsOfficial
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration.
SkillAFreshness: A★ 183.5KClaude Code +9 - 0.847score
verify
anthropicsOfficial
Drive this repo's build/release scripts end-to-end without touching the network.
SkillAFreshness: A★ 8.3KClaude Code +9 - 0.834score
academy-guide
anthropicsOfficial
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
SkillBFreshness: B★ 183.5KClaude Code +9 - 0.834score
discernment-nudge
anthropicsOfficial
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
SkillBFreshness: B★ 183.5KClaude Code +9 - 0.801score
frontend-design
anthropicsOfficial
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one.
SkillBFreshness: B★ 183.5KClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get CLAUDE.md · anthropics/claude-cookbooks running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
CLAUDE.md · anthropics/claude-cookbooks. Agent Mart. https://agentmart.dev/templates/anthropics-claude-cookbooks-claude-md (last updated 2026-10-24)