Claude Code Recipes banner
forest6511 forest6511

Claude Code Recipes

Development community

Description

Sample code and configurations for the book "Claude Code実践レシピ" (Claude Code Practical Recipes)

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Claude Code実践レシピ サンプルコード

書籍「**[Claude Code実践レシピ100本: MCP/Skills/Hooks/サブエージェント実践ガイド](https://www.amazon.co.jp/dp/B0GMQ18MFR)**」(森川 陽介 著)のサンプルコード・設定ファイル集です。

**📘 第2版(v5)をお読みの方へ**

第2版向けのサンプルコードは別リポジトリに分離しています:

→ [forest6511/claude-code-recipes-v2](https://github.com/forest6511/claude-code-recipes-v2)

**本リポ(v1)は初版向けに据え置き**。初版の読者は引き続き本リポをご利用ください。第2版(Agent Teams evals / Harness Engineering / Channels / Computer Use / Routines 等の新機能を収録)の読者は v2 リポを参照してください。

使い方

各ディレクトリは書籍の章・レシピ番号に対応しています。必要なファイルをコピーして、ご自身のプロジェクトに適用してください。

**Note**: `.mcp.json`等の設定ファイルに含まれるAPIキーは`${BRAVE_API_KEY}`のようなプレースホルダーです。ご自身の環境変数に実際のキーを設定してから使用してください。

# 例: レシピ01のCLAUDE.mdテンプレートをコピー
cp claude-code-recipes/ch01-claude-md/recipe-01-effective-claude-md/CLAUDE.md ./CLAUDE.md

こんな時はこのレシピ

やりたいこと レシピ
プロジェクトにCLAUDE.mdを導入したい #01 第1章
コンテキスト使用量を確認したい #07 第2章
APIコストを削減したい #10 第2章
Web検索をClaude Codeに統合したい #13 第3章
GitHubのIssue・PRを自動化したい #14 第3章
E2Eテストを自動生成したい #19 第4章
MCPサーバーを自作したい(TypeScript) #30 第6章
Skillsを初めて作りたい #36 第7章
Skillsの活性化率を上げたい #48 第9章
Skillsが動かない原因を知りたい #53 第9章
カスタムエージェントを定義したい #59 第10章
永続メモリを実装したい #61 第10章
Agent Teamsで並列開発したい #69 第12章
Git Worktreeで並列ブランチ開発したい #72 第12章
コミット前に自動lintを実行したい [#83](./ch14-hooks-re