笔记本质量审计_cookbook-audit
以下为本文档的中文说明Cookbook 审计技能是一个专门用于审查 Anthropic Cookbook 笔记本的质量评估工具基于预定义的评分标准进行系统性评审。它的核心功能包括对照风格指南评估笔记本质量、提供详细评分和改进建议、确保内容符合教学标准。使用场景是在需要对 Cookbook 笔记本进行审阅或审计时触发。该技能要求首先读取 style_guide.md 文件来了解权威模板和标准然后按照系统化的审计流程操作。风格指南提供了详细的模板和示例涵盖问题导向的引言包含终端学习目标和使能学习目标、前置条件和环境设置模式、核心内容结构以及映射回学习目标的结论。审计工作流程包括阅读风格指南了解标准、按评分指南逐项打分、提供改进建议、生成综合审计报告。核心特点在于教育导向和标准化评审。它不仅仅是一个内容检查工具更是一个教学质量保证系统通过结构化的学习目标和系统的内容评估确保每个 Cookbook 笔记本都能有效地传递知识和技能。该技能的价值不仅体现在直接的功能实现上还在于它与现有技术生态系统的良好兼容性和集成能力。无论是作为独立工具使用还是嵌入到更大的工作流中它都能发挥出应有的作用。通过遵循标准化的接口规范和协议它减少了系统集成过程中的摩擦点让用Cookbook AuditInstructionsReview the requested Cookbook notebook using the guidelines and rubrics instyle_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 patternsCore content structureConclusions that map back to learning objectivesIMPORTANT: Always readstyle_guide.mdfirst before conducting an audit. The style guide contains the canonical templates and good/bad examples to reference.WorkflowFollow these steps for a comprehensive audit:Read the style guide: First reviewstyle_guide.mdto understand current best practicesIdentify the notebook: Ask user for path if not providedRun automated checks: Usepython3 validate_notebook.py pathto catch technical issues and generate markdownThe script automatically runs detect-secrets to scan for hardcoded API keys and credentialsUses custom patterns defined inscripts/detect-secrets/plugins.pyChecks against baseline atscripts/detect-secrets/.secrets.baselineReview markdown output: The script generates a markdown file in thetmp/folder for easier review (saves context vs raw .ipynb)The tmp/ folder is gitignored to avoid committing review artifactsMarkdown includes code cells but excludes outputs for cleaner reviewManual review: Read through the markdown version evaluating against style guide and rubricScore each dimension: Apply scoring guidelines objectivelyGenerate report: Follow the audit report format belowProvide specific examples: Show concrete improvements with line references using the style guide templatesAudit Report FormatPresent your audit using this structure:Executive SummaryOverall Score: X/20Key Strengths(2-3 bullet points)Critical Issues(2-3 bullet points)Detailed Scoring1. 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 ChecklistUse 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 builtOptional: mentions broader applications (1 sentence)Prerequisites Setup(See style_guide.md Section 2)Lists required knowledge clearlyLists required tools (Python version, API keys)Mentions recommended background if applicableUses %%capture for pip install to suppress outputUses dotenv.load_dotenv() not os.environDefines MODEL constant at topGroups related installs in single commandStructure OrganizationHas logical section progressionEach section teaches through demonstrationCode blocks have explanatory text before themIncludes what we learned after code blocksUses headers to break up sectionsConclusion(See style_guide.md Section 4)Maps back to learning objectivesSummarizes what was accomplishedSuggests ways to apply lessons to user’s contextPoints to next steps or related resourcesCode QualityAll code blocks have explanatory text before themNo hardcoded API keys (automatically checked by detect-secrets)Meaningful variable namesComments explain “why” not “what”Follows language best practicesModel name defined as constant at top of notebookOutput Managementpip install logs suppressed with %%captureNo verbose debug outputShows relevant API responsesStack traces only when demonstrating error handlingContent QualityExplains why approaches workDiscusses when to use this approachMentions limitations/considerationsProvides transferable knowledgeAppropriate model selectionTechnical RequirementsExecutable without modification (except API keys)Uses non-deprecated API patternsUses 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 notebookIncludes dependency specificationsAssigned to primary categoryHas relevant tagsContent Philosophy: Action UnderstandingCookbooks 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 codeProblem-first framing: Lead with the problem being solved and value delivered, not the machineryBuilder’s perspective: Written from the user’s point of view, solving real problemsAgency-building: Help users understand why approaches work, not just howTransferable knowledge: Teach patterns and principles that apply beyond the specific exampleCritical thinking: Encourage users to question outputs, recognize limitations, make informed choicesLearning contracts: State learning objectives upfront, then map back to them in conclusionsWhat Makes a Good CookbookA 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 NOTCookbooks 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 GuidelinesVoice ToneEducational and agency-buildingProfessional but approachableRespectful of user intelligence and timeEither second person (“you”) or first person plural (“we”) - be consistent within a notebookWriting QualityClear, concise explanationsActive voice preferredShort paragraphs (3-5 sentences)Avoid jargon without definitionUse headers to break up sectionsCode PresentationAlways explain before showing: Every code block should be preceded by explanatory textExplain after running: Include what we learned after code blocks executeComments explain why, not what: Use meaningful variable namesUse constants: Define MODEL as a constant at the topGood habits: Usedotenv.load_dotenv()instead ofos.environOutput HandlingRemove extraneous outputwith %%capture:pip install logs (always suppress these)Verbose debug statementsLengthy stack traces (unless demonstrating error handling)Show relevant output:API responses that demonstrate functionalityExamples of successful executionStructural RequirementsSee style_guide.md for detailed templates and examples1. 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 capabilitiesInclude context/constraintsOptional: 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 neededRequired Tools: Python version, API keys with linksRecommended: Optional background that helpsSetup: Step-by-step with explanationsUse%%capturefor pip installsUsedotenv.load_dotenv()notos.environDefineMODELconstant at top3. Main Content (Required)Organized by logical steps or phases, each with:Clear section headersExplanatory text before code blocks(what we’re about to do)Code examplesExplanatory 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 objectivesWhat was accomplished: Summary of key pointsApplication guidance: How to apply lessons to user’s contextNext 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 SectionsHow It Works: Brief explanation of underlying mechanismWhen to Use This: Appropriate use cases and contextsLimitations Considerations: Caveats, failure modes, constraintsTroubleshooting: Common issues and solutionsVariations: Alternative approaches or extensionsPerformance Notes: Optimization considerationsFurther Reading: Links to relevant docs, papers, or deeper explanationsCommon Anti-Patterns to FlagRefer 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 objectivesSetup Anti-Patterns❌ Noisy pip install output without%%capture❌ Multiple separate pip install commands❌ Usingos.environ[API_KEY] your_keyinstead of dotenv❌ Hardcoding model names throughout instead of using a MODEL constant✅ Clean setup with grouped installs, dotenv, and constantsCode 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 context3e:[“ , ,,L41”,null,{“content”:“$42”,“frontMatter”:{“name”:“cookbook-audit”,“description”:“Audit an Anthropic Cookbook notebook based on a rubric. Use whenever a notebook review or audit is requested.”}}]

相关新闻

财务比率分析_analyzing-financial-statements

财务比率分析_analyzing-financial-statements

以下为本文档的中文说明analyzing-financial-statements 是由 Anthropic 开发的财务比率计算与分析技能,专注于从财务报表数据中计算关键财务指标并用于投资分析。该技能提供了一个全面的财务比率分析框架,用于评估公司业绩、盈利能力、流动性和估值水平…

2026/10/7 15:55:34 阅读更多 →
Ubuntu系统下Android Studio导致关机失败的解决方案

Ubuntu系统下Android Studio导致关机失败的解决方案

1. 问题现象与初步排查最近在Dell笔记本上使用Ubuntu系统开发Android应用时,遇到一个奇怪的系统行为:当Android Studio处于运行状态时,尝试关机操作会完全失效。点击关机按钮后,系统没有任何反应,既没有弹出关机确认对…

2026/10/8 22:12:58 阅读更多 →
三步解锁Wand专业版:零门槛永久增强方案终极指南

三步解锁Wand专业版:零门槛永久增强方案终极指南

三步解锁Wand专业版:零门槛永久增强方案终极指南 【免费下载链接】Wand-Enhancer Advanced UX and interoperability extension for Wand (WeMod) app 项目地址: https://gitcode.com/GitHub_Trending/we/Wand-Enhancer 你是否厌倦了游戏修改工具Wand&#x…

2026/10/11 5:15:19 阅读更多 →

最新新闻

Aegis 多宿主支持完整清单:Claude Code、Codex、OpenCode、Kimi 安装指南一文看懂

Aegis 多宿主支持完整清单:Claude Code、Codex、OpenCode、Kimi 安装指南一文看懂

AI 技能AI 插件dsh-plugin 【免费下载链接】Aegis Make AI coding agents architecture-aware: baseline-first, evidence-verified, drift-checked, and safe across long tasks. 项目地址: https://gitcode.com/gh_mirrors/aegis21/Aegis 点击查看 免费下载 Aegi…

2026/10/12 17:34:59 阅读更多 →
豆瓣Top100爬虫实战:从请求到CSV乱码解决的完整复盘

豆瓣Top100爬虫实战:从请求到CSV乱码解决的完整复盘

标题起得挺直白,但真正动手之后才发现,这项目其实分两关:第一关是把豆瓣Top100电影的数据抓下来,第二关是把它存成Excel能正常打开的CSV文件。第二关看着简单,实际上最折磨人,我第一次做的时候卡在编码问题…

2026/10/12 17:34:59 阅读更多 →
fpinscala 状态章节练习 06 详解:实现 Rand.map2 与 RNG 状态传递顺序的决策

fpinscala 状态章节练习 06 详解:实现 Rand.map2 与 RNG 状态传递顺序的决策

示例工程 【免费下载链接】fpinscala Code, exercises, answers, and hints to go along with the book "Functional Programming in Scala" 项目地址: https://gitcode.com/gh_mirrors/fp/fpinscala 点击查看 免费下载 本文以 fpinscala 仓库第 6 章&am…

2026/10/12 17:34:59 阅读更多 →
AnyPS5:打破PS5封闭生态的通用化扩展与串流优化实战

AnyPS5:打破PS5封闭生态的通用化扩展与串流优化实战

1. 从"AnyPS5"这个名字说起:它到底想解决什么问题第一次看到"AnyPS5"这个标题,我脑子里冒出来的第一个念头是:这大概率是一个围绕"通用化"和"PS5"这两个关键词做文章的项目。PS5本身是一台游戏主机&…

2026/10/12 17:34:59 阅读更多 →
详解 np.random.normal:从参数、原理到工程实践的正态随机数生成指南

详解 np.random.normal:从参数、原理到工程实践的正态随机数生成指南

说起用Python生成服从正态分布的随机数,我估计不少人的第一反应就是那一行np.random.normal()。这行代码短是真短:给个均值loc、给个标准差scale、再给个数量size,一串符合正态分布的数据就出来了。但真正在项目里把这一行用好,远…

2026/10/12 17:34:58 阅读更多 →
基于一致性算法的分布式经济调度Matlab复现与调参实战

基于一致性算法的分布式经济调度Matlab复现与调参实战

为什么分布式经济调度值得你花一个周末去复现先说结论:这篇文章讲的是,如何用多智能体系统里的一致性算法,在Matlab里实现电力系统的分布式经济调度。我按照论文复现的完整流程,把原理、代码、调参踩坑全部走了一遍,下…

2026/10/12 17:33:58 阅读更多 →

日新闻

复古胶片颗粒感噪点合成器:Canvas ImageData 像素高斯杂色注入算法

复古胶片颗粒感噪点合成器:Canvas ImageData 像素高斯杂色注入算法

在数码相机、高清显示屏与现代矢量图形技术高度发达的今天,画面可以做到绝对的锐利、平滑与无瑕。然而,当一张秋日手账插画或拍立得照片过于“平整无瑕”时,往往会散发出一种冰冷生硬的“数码塑料感(Digital Plasticity&#xff0…

2026/10/12 0:00:59 阅读更多 →
活字印刷古籍线装排版:Canvas 竖排文字与栏线自适应算法

活字印刷古籍线装排版:Canvas 竖排文字与栏线自适应算法

在现代网页与移动端设计中,横排(Horizontal Layout)早已经成为了绝对的主流。然而,当我们翻开泛黄的线装古籍、宋版木刻诗集,或是欣赏一张茶道雅集的手写便签时,那种**自上而下纵向书写、自右向左逐列铺展&…

2026/10/12 0:00:59 阅读更多 →
周日晚间的“精神松绑减震器”:无压力情绪倾倒箱与温和轻声陪伴

周日晚间的“精神松绑减震器”:无压力情绪倾倒箱与温和轻声陪伴

每到周日的晚上八点到十点,很多人心里都会悄悄亮起一盏警示灯。 在心理学上,这种现象有一个专门的称谓——“周日夜晚焦虑症(Sunday Scaries)”。明天又是周一,闹钟又要重新在七点响彻卧房;脑海里仿佛有一个…

2026/10/12 0:00:59 阅读更多 →

周新闻

流感时间序列预测实战:ARIMA/LSTM全流程拆解与避坑指南

流感时间序列预测实战:ARIMA/LSTM全流程拆解与避坑指南

简介:基于 ARIMA、LSTM、Transformer 等模型的流感时间序列预测 Python 源码,面向计算机相关专业课程设计与期末大作业学生,以及项目实战学习者。内容覆盖预处理、平稳性检验、定阶、残差分析、多模型对比预测的完整时序建模流程,…

2026/10/12 0:16:30 阅读更多 →
影刀RPA新手教程:键盘模拟输入实战——输入文本与模拟按键的区别

影刀RPA新手教程:键盘模拟输入实战——输入文本与模拟按键的区别

影刀RPA新手教程:键盘模拟输入实战——输入文本与模拟按键的区别 做影刀RPA自动化,十个新手有八个栽在"往输入框里填东西"这件事上:要么填不进去,要么填了一半,要么直接把原来内容追加在后面。这背后的根因&…

2026/10/12 0:16:38 阅读更多 →
影刀RPA新手教程:阅文起点小说数据采集实战——书籍信息与章节内容

影刀RPA新手教程:阅文起点小说数据采集实战——书籍信息与章节内容

影刀RPA新手教程:阅文起点小说数据采集实战——书籍信息与章节内容 1. 认识影刀:什么场景该用RPA采小说数据 起点中文网的页面结构相对稳定——分类榜单、书籍详情、章节内容三块独立页面,跳转链路清晰。这种场景非常适合影刀自动化&#x…

2026/10/12 0:16:43 阅读更多 →

月新闻

我发现了一个新思路:用 Remotion + Claude Code 像写代码一样自动化生成短视频

我发现了一个新思路:用 Remotion + Claude Code 像写代码一样自动化生成短视频

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/10/11 10:45:37 阅读更多 →
Windows下 Codex 中 Chrome 和 Computer Use 插件不可用问题排查及解决参考方式:TaoToken 统一 Key 配置与验证

Windows下 Codex 中 Chrome 和 Computer Use 插件不可用问题排查及解决参考方式:TaoToken 统一 Key 配置与验证

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/10/12 14:48:49 阅读更多 →
黑夜航拍船只数据集训练YOLOV5模型全流程解析

黑夜航拍船只数据集训练YOLOV5模型全流程解析

/* MD / 富文本中的 .toc(含博客园搬家等嵌套结构);.toc-box 在侧栏,不受影响 */#content_views .toc,/* 编辑器常在目录前后插入空 p(:empty 仍占 20px),一并去掉避免顶空隙 */#content_views.markdown_views > p:empty:has(+ .toc),#content_views.markdown_views …

2026/10/11 14:36:54 阅读更多 →