一键导入
cookbook-audit
Audit an Anthropic Cookbook notebook based on a rubric. Use whenever a notebook review or audit is requested.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Audit an Anthropic Cookbook notebook based on a rubric. Use whenever a notebook review or audit is requested.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | cookbook-audit |
| description | Audit an Anthropic Cookbook notebook based on a rubric. Use whenever a notebook review or audit is requested. |
Review the requested Cookbook notebook using the following guidelines. Provide a score based on scoring guidelines and recommendations on improving the cookbook.
Follow these steps for a comprehensive audit:
python3 validate_notebook.py <path> to catch technical issues and generate markdown
scripts/detect-secrets/plugins.pyscripts/detect-secrets/.secrets.baselinetmp/ folder for easier review (saves context vs raw .ipynb)
Present your audit using this structure:
[Brief justification with specific examples]
[Brief justification with specific examples]
[Brief justification with specific examples]
[Brief justification with specific examples]
[Prioritized, actionable list of improvements with references to specific sections]
[Show specific excerpts from the notebook with concrete suggestions for improvement]
Use this to ensure comprehensive coverage:
Structure & Organization
Code Quality
Output Management
Content Quality
Technical Requirements
Cookbooks are primarily action-oriented but strategically incorporate understanding and informed by Diataxis framework.
Practical focus: Show users how to accomplish specific tasks with working code 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
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.
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.
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
Clear, concise explanations Active voice preferred Short paragraphs (3-5 sentences) Avoid jargon without definition Use headers to break up sections
Every code block should be preceded by explanatory text Comments should explain why, not what Use meaningful variable names
Remove extraneous output, e.g with %%capture pip install logs Verbose debug statements Lengthy stack traces (unless demonstrating error handling) Show relevant output: API responses that demonstrate functionality Examples of successful execution
Required Sections
[1-2 paragraphs covering:]
Prerequisites
Main Content (Required) Organized by logical steps or phases, each with: Clear section headers Explanatory text before code blocks Code examples Expected outputs (where relevant) Understanding callouts: Brief explanations of why approaches work, when to use them, or important considerations
Conclusion (Recommended)
Summary of what was accomplished Limitations or considerations Next steps or related resources
Optional Sections How It Works: Brief explanation of the underlying approach or mechanism When to Use This: Guidance on appropriate use cases and contexts Limitations & Considerations: Important caveats, failure modes, or 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
Notebook: "Building a Customer Support Agent with Tool Use"
1. Narrative Quality: 5/5 Opens with clear problem statement about reducing support ticket volume. Each section builds logically. Concludes with discussion of production considerations.
2. Code Quality: 4/5 Excellent structure and naming. Clean, idiomatic code. Model defined as constant. Minor issue: pip install output not suppressed in cells 1-2.
3. Technical Accuracy: 5/5 Demonstrates best practices for tool use. Appropriate model selection (using valid claude-sonnet-4-5 model). Correct API usage with streaming.
4. Actionability & Understanding: 4/5 Very practical with clear adaptation points. Explains why tool schemas are designed certain ways. Could add more discussion on when this approach isn't suitable.
%%capture to cells 1-2 to suppress pip install logsNotebook: "Text Classification with Claude"
1. Narrative Quality: 2/5 Jumps directly into code without context. No introduction explaining what problem this solves or who it's for. Sections lack connecting narrative.
2. Code Quality: 3/5
Code is functional but lacks structure. Variable names like x1, result, temp are unclear. No comments explaining non-obvious choices. Model not defined as constant at top.
3. Technical Accuracy: 3/5 API calls work but use invalid or deprecated model names. Model selection not explained. No discussion of token efficiency or performance.
4. Actionability & Understanding: 3/5 Shows multiple approaches but doesn't explain when to use each. No discussion of trade-offs. Unclear how to adapt to different classification tasks.
High Priority:
Add introduction section (1-2 paragraphs) explaining:
Add explanatory text before EVERY code block explaining what it does and why
Update to current API patterns and explain model selection rationale
Medium Priority:
4. Improve variable names: x1 → sample_text, result → classification_result
5. Define model as constant at top: MODEL = 'claude-sonnet-4-5'
6. Update to use valid model names (claude-sonnet-4-5, claude-haiku-4-5, or claude-opus-4-1)
7. Add "When to Use This" section explaining which approach for which scenario
Low Priority: 8. Add conclusion summarizing trade-offs between approaches 9. Add "Limitations" section discussing accuracy considerations 10. Consider adding evaluation metrics example
Extract data from files related to SANS courses.
Generate a skeleton template for a new Claude Code Skill.
This skill calculates key financial ratios and metrics from financial statement data for investment analysis
This skill provides an advanced financial modeling suite with DCF analysis, sensitivity testing, Monte Carlo simulations, and scenario planning for investment decisions
Pre-implementation confidence assessment (≥90% required). Use before starting any implementation to verify readiness with duplicate check, architecture compliance, official docs verification, OSS references, and root cause identification.