cookbook-audit
Skill by anthropics
Audits an Anthropic Cookbook notebook against a rubric and scores it out of 20. Runs automated checks, including a scan for hardcoded API keys. Built for reviewing Cookbook notebooks.
Install cookbook-audit
Built from the published package, never by AI.
git clone --depth 1 https://github.com/anthropics/claude-cookbooks /tmp/claude-cookbooks && mkdir -p ~/.claude/skills && cp -r /tmp/claude-cookbooks/.claude/skills/cookbook-audit ~/.claude/skills/cookbook-auditRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/anthropics/claude-cookbooks /tmp/claude-cookbooks && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/claude-cookbooks/.claude/skills/cookbook-audit ~/.gemini/antigravity-cli/skills/cookbook-auditAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The cookbook-audit skill reviews an Anthropic Cookbook notebook against a rubric. It first reads style_guide.md, then runs validate_notebook.py to catch technical issues and generate a markdown copy of the notebook for easier review. The assistant then scores the notebook out of 20 across four dimensions: narrative quality, code quality, technical accuracy, and actionability and understanding.
The script also runs detect-secrets to scan for hardcoded API keys and credentials, using custom patterns and a baseline file. The report lists strengths, critical issues, prioritized recommendations and rewrite examples with line references. It applies whenever a notebook review or audit is requested for the Anthropic Cookbook.
Written from the project's SKILL.md and checked against it.
What it can do
- Score a notebookRates the notebook out of 20 across four dimensions with a short justification for each.
- Run automated checksUses validate_notebook.py to catch technical issues in the notebook.
- Scan for secretsRuns detect-secrets to look for hardcoded API keys and credentials.
- Create a markdown copyWrites a markdown version of the notebook to a tmp folder for easier review.
- Suggest improvementsLists prioritized recommendations and rewrite examples with line references.
What you need
- Python 3
Try asking
- Audit the notebook at cookbook/rag_example.ipynb using the style guide
- Score this Cookbook notebook against the rubric and list critical issues
- Check this notebook for hardcoded API keys before I submit it
Good to know
- The markdown output excludes cell outputs.
- Scoring follows the rubric and templates in style_guide.md.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/cookbook-audit/SKILL.md, .claude/skills/cookbook-audit/validate_notebook.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
.gitignore75 B -
SKILL.md12 KB -
style_guide.md5 KB -
validate_notebook.py21 KB
Alternatives to cookbook-audit
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
cookbook-audit: common questions
What does the cookbook audit check?
It checks the notebook against the style guide and rubric, including introduction, setup, structure, conclusion and technical requirements. It also runs automated checks and a secrets scan.
Does it check for API keys?
Yes. The validate_notebook.py script runs detect-secrets to scan for hardcoded API keys and credentials, using custom patterns and a baseline file.
How is the notebook scored?
The notebook receives an overall score out of 20, made from four dimensions scored out of 5 each: narrative quality, code quality, technical accuracy, and actionability and understanding.
How do I install cookbook-audit?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is cookbook-audit free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is cookbook-audit safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to cookbook-audit?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
