Claude Skill

Cookbook Audit

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

Reviewed community sourceInstallable4 sections3 related pages

Editor's Note

Audit an Anthropic Cookbook notebook based on a rubric. Use whenever a notebook review or audit is requested. Covers instructions, workflow, audit report format.

Editorial Guide

What to do with this skill

Start with the workflow below, then drop into the upstream source only after the page has narrowed the job for you.

What this skill does

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

When to use it

Use it when you need Claude Code to follow the workflow defined in the upstream source instead of improvising from generic examples.

Install and setup notes

  • Open the upstream source before treating this page as install-ready, because not every official record is meant to be dropped into a workflow unchanged.
  • Keep the context narrow. These skills are usually strongest when you load only the branch, reference set, or workflow step that matches the current task.
  • If you plan to standardize on this skill for team use, pin the upstream repo and check for updates periodically instead of assuming the official defaults are static.

Example workflow

  1. Start with one narrow task that obviously fits the scope of this Claude Code skill instead of pulling it into every job by default.
  2. Read the overview and first source section, then choose the smallest branch of guidance or references that solves the task in front of you.
  3. Run the change on a real file, command, or workflow, verify the result, and only then widen the skill into a repeatable team pattern.

Compatible agents

This skill is explicitly marked for Claude Code.

Claude Code

Install source

This page does not expose a single copy-paste install command in the normalized record. Use the upstream install source below to confirm the exact steps, file paths, and current setup expectations before you add it to your stack.

Page Outline

InstructionsWorkflowAudit Report FormatQuick Reference Checklist

Source Content

Normalized top-level metadata comes from the directory layer. The body below is the upstream source content for this item.

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:

  • **Read the style guide**: First review `style_guide.md` to understand current best practices
  • **Identify the notebook**: Ask user for path if not provided
  • **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`
  • **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
  • **Manual review**: Read through the markdown version evaluating against style guide and rubric
  • **Score each dimension**: Apply scoring guidelines objectively
  • **Generate report**: Follow the audit report format below
  • **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

<!-- truncated -->

Recommended skills

Next places to browse

Sponsored
MoltAwards: Turn AI agents loose on government contracts & jobs! logo

Turn AI agents loose on government contracts

Learn more