jpskill.com
📦 その他 Anthropic公式 🟡 少し慣れが必要 👤 幅広いユーザー

📦 Cookbook Audit

cookbook-audit

Cookbook Audit を監査するSkill。幅広いユーザー向け。

⏱ 手作業のあれこれ 1日 → 1時間

📺 まず動画で見る(YouTube)

▶ 【Claude Code完全入門】誰でも使える/Skills活用法/経営者こそ使うべき ↗

※ jpskill.com 編集部が参考用に選んだ動画です。動画の内容と Skill の挙動は厳密には一致しないことがあります。

📜 元の英語説明(参考)

Audit an Anthropic Cookbook notebook based on a rubric. Use whenever a notebook review or audit is requested.

🇯🇵 日本人クリエイター向け解説

一言でいうと

Cookbook Audit を監査するSkill。幅広いユーザー向け。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o cookbook-audit.zip https://jpskill.com/download/514.zip && unzip -o cookbook-audit.zip && rm cookbook-audit.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/514.zip -OutFile "$d\cookbook-audit.zip"; Expand-Archive "$d\cookbook-audit.zip" -DestinationPath $d -Force; ri "$d\cookbook-audit.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して cookbook-audit.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → cookbook-audit フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-17
取得日時
2026-05-17
同梱ファイル
1

💬 こう話しかけるだけ — サンプルプロンプト

  • Cookbook Audit の使い方を教えて
  • Cookbook Audit で何ができるか具体例で見せて
  • Cookbook Audit を初めて使う人向けにステップを案内して

これをClaude Code に貼るだけで、このSkillが自動発動します。

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

クックブック監査

手順

style_guide.md に記載されているガイドラインと評価基準を使用して、要求されたクックブックノートブックをレビューしてください。採点ガイドラインに基づいてスコアを付け、クックブックを改善するための推奨事項を提供してください。

スタイルガイドには、以下の詳細なテンプレートと例が記載されています。

  • 最終学習目標 (TLO) と中間学習目標 (ELO) を含む問題に焦点を当てた導入
  • 前提条件とセットアップのパターン
  • コアコンテンツの構造
  • 学習目標に立ち返る結論

重要: 監査を実施する前に、必ず最初に style_guide.md を読んでください。スタイルガイドには、参照すべき規範的なテンプレートと良い例/悪い例が含まれています。

ワークフロー

包括的な監査のために、以下の手順に従ってください。

  1. スタイルガイドを読む: まず style_guide.md をレビューして、現在のベストプラクティスを理解します。
  2. ノートブックを特定する: 提供されていない場合は、ユーザーにパスを尋ねます。
  3. 自動チェックを実行する: python3 validate_notebook.py <path> を使用して、技術的な問題を検出し、Markdown を生成します。
    • スクリプトは detect-secrets を自動的に実行し、ハードコードされた API キーと認証情報をスキャンします。
    • scripts/detect-secrets/plugins.py で定義されたカスタムパターンを使用します。
    • scripts/detect-secrets/.secrets.baseline のベースラインに対してチェックします。
  4. Markdown 出力をレビューする: スクリプトは tmp/ フォルダーに Markdown ファイルを生成し、レビューを容易にします (生の .ipynb よりもコンテキストを保持します)。
    • tmp/ フォルダーは、レビュー成果物のコミットを避けるために gitignore されています。
    • Markdown にはコードセルが含まれますが、よりクリーンなレビューのために出力は除外されます。
  5. 手動レビュー: Markdown バージョンを読み、スタイルガイドと評価基準に照らして評価します。
  6. 各次元を採点する: 採点ガイドラインを客観的に適用します。
  7. レポートを生成する: 以下の監査レポート形式に従います。
  8. 具体的な例を提供する: スタイルガイドのテンプレートを使用して、行参照付きで具体的な改善点を示します。

監査レポート形式

この構造を使用して監査を提示してください。

エグゼクティブサマリー

  • 総合スコア: X/20
  • 主な強み (2-3点の箇条書き)
  • 重大な問題 (2-3点の箇条書き)

詳細な採点

1. ナラティブの質: X/5

[具体的な例を挙げた簡単な正当化]

2. コードの質: X/5

[具体的な例を挙げた簡単な正当化]

3. 技術的な正確性: X/5

[具体的な例を挙げた簡単な正当化]

4. 実用性と理解度: X/5

[具体的な例を挙げた簡単な正当化]

具体的な推奨事項

[特定のセクションへの参照を含む、優先順位付けされた実行可能な改善点のリスト]

例と提案

[ノートブックからの具体的な抜粋と、改善のための具体的な提案を示す]

クイックリファレンスチェックリスト

包括的な網羅性を確保するためにこれを使用してください。

導入 (style_guide.md セクション 1 を参照)

  • [ ] 解決される問題へのフック (1-2文)
  • [ ] なぜそれが重要なのかを説明 (1-2文)
  • [ ] 学習目標を箇条書きでリストアップ (2-4の TLO/ELO)
  • [ ] 構築されたメカニズムではなく、提供される価値に焦点を当てる
  • [ ] オプション: より広範なアプリケーションに言及 (1文)

前提条件とセットアップ (style_guide.md セクション 2 を参照)

  • [ ] 必要な知識を明確にリストアップ
  • [ ] 必要なツール (Python バージョン、API キー) をリストアップ
  • [ ] 該当する場合は推奨される背景に言及
  • [ ] 出力を抑制するために pip install に %%capture を使用
  • [ ] os.environ ではなく dotenv.load_dotenv() を使用
  • [ ] 上部に MODEL 定数を定義
  • [ ] 関連するインストールを単一のコマンドにグループ化

構造と構成

  • [ ] 論理的なセクションの進行がある
  • [ ] 各セクションはデモンストレーションを通じて教える
  • [ ] コードブロックの前に説明テキストがある
  • [ ] コードブロックの後に学んだことを含める
  • [ ] ヘッダーを使用してセクションを区切る

結論 (style_guide.md セクション 4 を参照)

  • [ ] 学習目標に立ち返る
  • [ ] 達成されたことを要約する
  • [ ] ユーザーのコンテキストに教訓を適用する方法を提案する
  • [ ] 次のステップまたは関連リソースを指し示す

コードの品質

  • [ ] すべてのコードブロックの前に説明テキストがある
  • [ ] ハードコードされた API キーがない (detect-secrets によって自動的にチェックされる)
  • [ ] 意味のある変数名
  • [ ] コメントは「何」ではなく「なぜ」を説明する
  • [ ] 言語のベストプラクティスに従う
  • [ ] モデル名がノートブックの先頭で定数として定義されている

出力管理

  • [ ] pip install のログは %%capture で抑制されている
  • [ ] 冗長なデバッグ出力がない
  • [ ] 関連する API レスポンスを表示する
  • [ ] スタックトレースはエラー処理をデモンストレーションする場合のみ

コンテンツの品質

  • [ ] アプローチが機能する理由を説明する
  • [ ] このアプローチを使用する時期について議論する
  • [ ] 制限事項/考慮事項に言及する
  • [ ] 転用可能な知識を提供する
  • [ ] 適切なモデル選択

技術要件

  • [ ] 変更なしで実行可能 (API キーを除く)
  • [ ] 非推奨でない API パターンを使用する
  • [ ] 有効なモデル名を使用する (claude-sonnet-4-6, claude-haiku-4-5, claude-opus-4-6)
  • [ ] 日付のないモデルエイリアスを使用する (claude-sonnet-4-6-20250514 のような日付付き ID は使用しない)
  • [ ] モデル名がノートブックの先頭で定数として定義されている
  • [ ] 依存関係の仕様を含む
  • [ ] プライマリカテゴリに割り当てられている
  • [ ] 関連するタグがある

コンテンツの哲学: 行動 + 理解

クックブックは主にアクション指向ですが、Diataxis フレームワークに触発され、理解を戦略的に組み込んでいます。

コア原則:

  • 実践的な焦点: 動作するコードで特定のタスクを達成する方法をユーザーに示す
  • 問題優先のフレーミング: 構築されたメカニズムではなく、解決される問題と提供される価値を前面に出す
  • ビルダーの視点: ユーザーの視点から書かれ、実際の問題を解決する
  • 主体性の構築: ユーザーがアプローチが機能する理由を理解するのを助けるだけでなく、方法も理解するのを助ける
  • 転用可能な知識: 特定の例を超えて適用されるパターンと原則を教える
  • 批判的思考: ユーザーが出力を疑問視し、制限を認識し、情報に基づいた選択をするように促す
  • 学習契約: 学習目標を事前に述べ、結論でそれらに立ち返る

良いクックブックとは

良いクックブックは単に

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Cookbook Audit

Instructions

Review the requested Cookbook notebook using the guidelines and rubrics in style_guide.md. Provide a score based on scoring guidelines and recommendations on improving the cookbook.

The style guide provides detailed templates and examples for:

  • Problem-focused introductions with Terminal Learning Objectives (TLOs) and Enabling Learning Objectives (ELOs)
  • Prerequisites and setup patterns
  • Core content structure
  • Conclusions that map back to learning objectives

IMPORTANT: Always read style_guide.md first before conducting an audit. The style guide contains the canonical templates and good/bad examples to reference.

Workflow

Follow these steps for a comprehensive audit:

  1. Read the style guide: First review style_guide.md to understand current best practices
  2. Identify the notebook: Ask user for path if not provided
  3. Run automated checks: Use python3 validate_notebook.py <path> to catch technical issues and generate markdown
    • The script automatically runs detect-secrets to scan for hardcoded API keys and credentials
    • Uses custom patterns defined in scripts/detect-secrets/plugins.py
    • Checks against baseline at scripts/detect-secrets/.secrets.baseline
  4. Review markdown output: The script generates a markdown file in the tmp/ folder for easier review (saves context vs raw .ipynb)
    • The tmp/ folder is gitignored to avoid committing review artifacts
    • Markdown includes code cells but excludes outputs for cleaner review
  5. Manual review: Read through the markdown version evaluating against style guide and rubric
  6. Score each dimension: Apply scoring guidelines objectively
  7. Generate report: Follow the audit report format below
  8. Provide specific examples: Show concrete improvements with line references using the style guide templates

Audit Report Format

Present your audit using this structure:

Executive Summary

  • Overall Score: X/20
  • Key Strengths (2-3 bullet points)
  • Critical Issues (2-3 bullet points)

Detailed Scoring

1. Narrative Quality: X/5

[Brief justification with specific examples]

2. Code Quality: X/5

[Brief justification with specific examples]

3. Technical Accuracy: X/5

[Brief justification with specific examples]

4. Actionability & Understanding: X/5

[Brief justification with specific examples]

Specific Recommendations

[Prioritized, actionable list of improvements with references to specific sections]

Examples & Suggestions

[Show specific excerpts from the notebook with concrete suggestions for improvement]

Quick Reference Checklist

Use this to ensure comprehensive coverage:

Introduction (See style_guide.md Section 1)

  • [ ] Hooks with the problem being solved (1-2 sentences)
  • [ ] Explains why it matters (1-2 sentences)
  • [ ] Lists learning objectives as bullet points (2-4 TLOs/ELOs)
  • [ ] Focuses on value delivered, not machinery built
  • [ ] Optional: mentions broader applications (1 sentence)

Prerequisites & Setup (See style_guide.md Section 2)

  • [ ] Lists required knowledge clearly
  • [ ] Lists required tools (Python version, API keys)
  • [ ] Mentions recommended background if applicable
  • [ ] Uses %%capture for pip install to suppress output
  • [ ] Uses dotenv.load_dotenv() not os.environ
  • [ ] Defines MODEL constant at top
  • [ ] Groups related installs in single command

Structure & Organization

  • [ ] Has logical section progression
  • [ ] Each section teaches through demonstration
  • [ ] Code blocks have explanatory text before them
  • [ ] Includes what we learned after code blocks
  • [ ] Uses headers to break up sections

Conclusion (See style_guide.md Section 4)

  • [ ] Maps back to learning objectives
  • [ ] Summarizes what was accomplished
  • [ ] Suggests ways to apply lessons to user's context
  • [ ] Points to next steps or related resources

Code Quality

  • [ ] All code blocks have explanatory text before them
  • [ ] No hardcoded API keys (automatically checked by detect-secrets)
  • [ ] Meaningful variable names
  • [ ] Comments explain "why" not "what"
  • [ ] Follows language best practices
  • [ ] Model name defined as constant at top of notebook

Output Management

  • [ ] pip install logs suppressed with %%capture
  • [ ] No verbose debug output
  • [ ] Shows relevant API responses
  • [ ] Stack traces only when demonstrating error handling

Content Quality

  • [ ] Explains why approaches work
  • [ ] Discusses when to use this approach
  • [ ] Mentions limitations/considerations
  • [ ] Provides transferable knowledge
  • [ ] Appropriate model selection

Technical Requirements

  • [ ] Executable without modification (except API keys)
  • [ ] Uses non-deprecated API patterns
  • [ ] Uses valid model names (claude-sonnet-4-6, claude-haiku-4-5, claude-opus-4-6)
  • [ ] Uses non-dated model aliases (never dated IDs like claude-sonnet-4-6-20250514)
  • [ ] Model name defined as constant at top of notebook
  • [ ] Includes dependency specifications
  • [ ] Assigned to primary category
  • [ ] Has relevant tags

Content Philosophy: Action + Understanding

Cookbooks are primarily action-oriented but strategically incorporate understanding and informed by Diataxis framework.

Core Principles:

  • Practical focus: Show users how to accomplish specific tasks with working code
  • Problem-first framing: Lead with the problem being solved and value delivered, not the machinery
  • Builder's perspective: Written from the user's point of view, solving real problems
  • Agency-building: Help users understand why approaches work, not just how
  • Transferable knowledge: Teach patterns and principles that apply beyond the specific example
  • Critical thinking: Encourage users to question outputs, recognize limitations, make informed choices
  • Learning contracts: State learning objectives upfront, then map back to them in conclusions

What Makes a Good Cookbook

A good cookbook doesn't just help users solve today's problem, it also helps them understand the underlying principles behind the solutions, encouraging them to recognize when and how to adapt approaches. Users will be able to make more informed decisions about AI system design, develop judgement about model outputs, and build skills that transfer to future AI systems.

What Cookbooks Are NOT

Cookbooks are not pure tutorials: We assume users have basic technical skills and API familiarity. We clearly state prerequisites in our cookbooks, and direct users to the Academy to learn more on topics. They are not comprehensive explanations: We don't teach transformer architecture or probability theory. We need to understand that our users are following our cookbooks to solve problems they are facing today. They are busy, in the midst of learning or building, and want to be able to use what they learn to solve their immediate needs. Cookbooks are not reference docs: We don't exhaustively document every parameter, we link to appropriate resources in our documentation as needed. Cookbooks are not simple tips and tricks: We don't teach "hacks" that only work for the current model generation. We don't over-promise and under-deliver. Cookbooks are not production-ready code: They showcase use cases and capabilities, not production patterns. Excessive error handling is not required.

Style Guidelines

Voice & Tone

  • Educational and agency-building
  • Professional but approachable
  • Respectful of user intelligence and time
  • Either second person ("you") or first person plural ("we") - be consistent within a notebook

Writing Quality

  • Clear, concise explanations
  • Active voice preferred
  • Short paragraphs (3-5 sentences)
  • Avoid jargon without definition
  • Use headers to break up sections

Code Presentation

  • Always explain before showing: Every code block should be preceded by explanatory text
  • Explain after running: Include what we learned after code blocks execute
  • Comments explain why, not what: Use meaningful variable names
  • Use constants: Define MODEL as a constant at the top
  • Good habits: Use dotenv.load_dotenv() instead of os.environ

Output Handling

Remove extraneous output with %%capture:

  • pip install logs (always suppress these)
  • Verbose debug statements
  • Lengthy stack traces (unless demonstrating error handling)

Show relevant output:

  • API responses that demonstrate functionality
  • Examples of successful execution

Structural Requirements

See style_guide.md for detailed templates and examples

1. Introduction (Required)

Must include:

  • Problem hook (1-2 sentences): What problem are we solving?
  • Why it matters (1-2 sentences): Why is this important?
  • Learning objectives (2-4 bullet points): "By the end of this cookbook, you'll be able to..."
    • Use action verbs (Build, Implement, Deploy, etc.)
    • Be specific about capabilities
    • Include context/constraints
  • Optional: Broader applications (1 sentence)

Avoid: Leading with machinery ("We will build a research agent...") ✅ Do: Lead with problem/value ("Your team spends hours triaging CI failures...")

2. Prerequisites & Setup (Required)

Must include:

  • Required Knowledge: Technical skills needed
  • Required Tools: Python version, API keys with links
  • Recommended: Optional background that helps
  • Setup: Step-by-step with explanations
    • Use %%capture for pip installs
    • Use dotenv.load_dotenv() not os.environ
    • Define MODEL constant at top

3. Main Content (Required)

Organized by logical steps or phases, each with:

  • Clear section headers
  • Explanatory text before code blocks (what we're about to do)
  • Code examples
  • Explanatory text after code blocks (what we learned)
  • Expected outputs (where relevant)
  • Optional: Understanding callouts (why it works, when to use, limitations)

4. Conclusion (Recommended)

Must include:

  • Recap: Map back to learning objectives
  • What was accomplished: Summary of key points
  • Application guidance: How to apply lessons to user's context
  • Next steps: Related resources or ideas to pursue

Avoid: Generic summaries ("We've demonstrated how the SDK enables...") ✅ Do: Actionable guidance ("Consider applying this to X... Next, try Y...")

Optional Sections

  • How It Works: Brief explanation of underlying mechanism
  • When to Use This: Appropriate use cases and contexts
  • Limitations & Considerations: Caveats, failure modes, constraints
  • Troubleshooting: Common issues and solutions
  • Variations: Alternative approaches or extensions
  • Performance Notes: Optimization considerations
  • Further Reading: Links to relevant docs, papers, or deeper explanations

Common Anti-Patterns to Flag

Refer to style_guide.md for detailed good/bad examples. Watch for these issues:

Introduction Anti-Patterns

❌ Leading with machinery: "We will build a research agent using the Claude SDK..." ❌ Feature dumps: Listing SDK methods or tool capabilities ❌ Vague learning objectives: "Learn about agents" or "Understand the API" ✅ Problem-first framing with specific, actionable learning objectives

Setup Anti-Patterns

❌ Noisy pip install output without %%capture ❌ Multiple separate pip install commands ❌ Using os.environ["API_KEY"] = "your_key" instead of dotenv ❌ Hardcoding model names throughout instead of using a MODEL constant ✅ Clean setup with grouped installs, dotenv, and constants

Code Presentation Anti-Patterns

❌ Code blocks without explanatory text before them ❌ No explanation of what we learned after running code ❌ Comments that explain "what" the code does (code should be self-documenting) ❌ Over-explaining obvious code ✅ Context before code, insights after code, comments explain "why"

Conclusion Anti-Patterns

❌ Generic summaries: "We've demonstrated how the SDK enables..." ❌ Simply restating what the notebook did without guidance ❌ Not mapping back to the stated learning objectives ✅ Actionable guidance on applying lessons to user's specific context