claude-code-cookbook
Tested, copy-pasteable recipes for Claude Code: hooks, slash commands, subagents, and settings.
Most Claude Code config lists are link dumps. This one is different: Most recipes are 1–2 files dropped into ~/.claude/ or your project's .claude/ directory. Got a recipe that earned its keep? See CONTRIBUTING.md. The bar is simple: it must follow the template, and you must have actually used it.
Summary extracted from the README.
claude-code-cookbook
Tested, copy-pasteable recipes for Claude Code: hooks, slash commands, subagents, and settings.

Why this exists
Most Claude Code config lists are link dumps. This one is different:
- Tested — every recipe runs in a real workflow before it lands here
- Copy-pasteable — clone, copy a folder, you're done
- War stories — each recipe opens with the pain it solves, not the config
Browse by category
Hooks
| Recipe | Pain it solves |
|---|---|
| block-main-branch-commits | Accidentally committing directly to main |
| auto-format-on-edit | Files drifting from your formatter's style |
| notify-on-completion | Watching a long Claude task instead of context-switching |
| pre-push-ci-mirror | CI catches what you could have caught locally in 5 seconds |
Slash commands
| Recipe | Pain it solves |
|---|---|
| ship-it | The 6-step PR ceremony, every time |
| standup | "What did I do yesterday?" at 9am |
| triage-deps | The Dependabot PR backlog you keep avoiding |
Subagents
| Recipe | Pain it solves |
|---|---|
| rails-developer | Generic Rails advice that ignores your app's conventions |
| senior-architect | One opinionated answer when you wanted options + trade-offs |
| product-designer | UX advice that ignores your existing components and patterns |
| code-reviewer | Review feedback with no severity, no priorities, occasionally invented |
Settings
| Recipe | Pain it solves |
|---|---|
| sensible-permissions-rails | Permission prompts every 30 seconds (Rails) |
| sensible-permissions-electron | Permission prompts every 30 seconds (Electron / Node) |
| cost-conscious-defaults | Surprise API bills |
Quickstart
Install a recipe in 30 seconds:
git clone https://github.com/vicmaster/claude-code-cookbook.git
cd claude-code-cookbook/recipes/hooks/block-main-branch-commits
# follow the README in that folder
Most recipes are 1–2 files dropped into ~/.claude/ or your project's .claude/ directory.
Contributing
Got a recipe that earned its keep? See CONTRIBUTING.md. The bar is simple: it must follow the template, and you must have actually used it.
Who built this
Built by Victor Velázquez — COO at MagmaLabs and author of The Agentic Engineer, working on AI agent platforms. Follow me on X and say hi! :wave:
License
MIT — see LICENSE.