Claude Code Cookbook

Practical Recipes for Claude Code

Battle-tested solutions and workflows from the Claude Code community. Each recipe is designed to solve real-world development challenges.

All Recipes

16 recipes

Category
Title
Description
Time
Action
Getting Started

Configuring Tool Permissions

Control which tools Claude can use during a session for enhanced security and focused workflows

5 min
Security

Advanced Tool Permissions

Deep dive into advanced tool permission configurations and security best practices

8 min
Getting Started

Continue vs Resume Sessions

Understand the difference between --continue and --resume flags for session management

4 min
Advanced

Create Custom Slash Commands

Build your own slash commands to extend Claude Code's functionality

10 min
Security

Security-Focused Commands

Implement security team's custom slash commands for secure development workflows

7 min
Workflow

Dangerous Mode Auto-Accept

Use auto-accept mode for faster workflows when appropriate (with safety guidelines)

6 min
Workflow

Git Worktrees for Parallel Sessions

Leverage Git worktrees to run multiple Claude sessions on different branches simultaneously

9 min
Advanced

Manual Compact Strategy

Optimize conversation history and context management with manual compacting

5 min
Advanced

MCP Integration Guide

Connect external tools and services using Model Context Protocol (MCP)

15 min
Workflow

Testing GitHub PRs Locally

Efficiently test and review pull requests using Claude Code

8 min
Getting Started

Resuming Previous Conversations

Pick up where you left off with Claude's conversation resumption features

5 min
Workflow

Slot Machine Workflow

Use the slot machine approach for tackling complex, multi-faceted tasks

12 min
Advanced

Think Harder Mode

Unlock Claude's extended reasoning capabilities for complex problem solving

7 min
Getting Started

Working with Multiple Directories

Use --add-dir to work with files across multiple project directories

6 min
Security

Blocking Email Addresses in Prompts

Create a hook that automatically detects and blocks email addresses in prompts for privacy protection

10 min
Getting Started

Adding to Claude's Memory

Use CLAUDE.md to add project-specific commands and conventions that persist across conversations

5 min

Want to Learn More?

These recipes are just the beginning. Join our comprehensive training course to master Claude Code and transform your development workflow.