### 总体摘要
此次更新主要涉及文档架构的大规模重组,特别是将 SDK 相关文档统一迁移至新的路径结构下,同时引入了 Skills 的新配置选项以增强工具管理能力。
### 关键变更主题
* **文档路径重构 (核心变更)**:旧路径 `/api/client-sdks` 和 `/api/sdks/*` 被统一迁移至 `/cli-sdks-libraries/...` 结构下。所有相关的内部链接均已更新。
* **SDK 概览页精简**:原有的 `Client SDKs` 页面从一个包含所有语言安装和快速开始代码的巨型页面,重构为一个分类导航页(CLI、Client SDKs、Libraries),具体内容分流至各语言独立页面。
* **Skills 功能增强**:Skills 文档新增了在 Frontmatter 中使用 `disallowed-tools` 字段的能力。这允许开发者在 Skill 激活期间临时移除特定工具,限制在下一次消息发送前有效,补充了原有的权限设置功能。
* **文案与格式标准化**:全站统一了写作风格,将 `e.g.` 替换为 `for example`,将 `we`(指代 Anthropic)显式化为 `Anthropic`,并将部分 HTML 表格转换为 Markdown 表格。
### 影响级别
**级别:Medium**
**理由**:
1. **破坏性引用**:虽然 API 代码本身没有破坏性变更,但文档 URL 结构的根本性改变会导致开发者原有的书签、Wiki 链接或代码注释中的文档链接失效。
2. **内容可发现性变化**:SDK 文档的组织形式改变,开发者需要适应新的导航结构来查找语言特定的安装指南。
3. **新功能引入**:`disallowed-tools` 为 Skills 开发者提供了更细粒度的控制,属于非破坏性的功能增强。
### 开发者行动项
* **更新书签与链接**:请检查并更新所有指向旧版 SDK 文档路径(如 `/docs/en/api/client-sdks` 或 `/docs/en/api/sdks/cli`)的浏览器书签或内部知识库链接。
* **利用新工具限制功能**:如果在开发 Skills,尝试在 Frontmatter 中配置 `disallowed-tools`,以便在特定会话中动态限制 Claude 可用的工具集。
* **查阅错误处理文档**:查看 API Errors 页面中新增的 "SDK error types" 章节,以确保你在代码中正确使用了各 SDK 的类型化异常而非字符串匹配。
* **确认 SDK 列表顺序**:注意在新的概览页中,SDK 列表的显示顺序发生了微调(例如 C# 的位置有所变化)。
💭 Model Reasoning
1. **Analyze the Request:**
* **Role:** World-class programmer analyzing documentation changes.
* **Task:** Analyze a batch of 15 documentation changes (diffs provided).
* **Format:** Markdown (Concise, insightful).
* **Focus:** What matters to developers.
* **Language:** Chinese (as requested: "请用中文回复").
2. **Analyze the Diffs (Page by Page):**
* **Page: `skills.md` (+1 / -1)**
* *Change:* Clarified tool blocking for skills. Removed instruction to use permission settings *only*, added new instruction to use `disallowed-tools` in frontmatter for temporary restriction during skill activation.
* *Impact:* New configuration option for skill developers.
* **Page: `slash-commands.md` (+1 / -1)**
* *Change:* Same as `skills.md`. Adds `disallowed-tools` frontmatter capability.
* *Impact:* Consistent feature addition.
* **Page: `get-started.md` (+4 / -4)**
* *Change 1:* Update CLI installation link from `/api/sdks/cli#installation` to `/cli-sdks-libraries/cli/quickstart#installation`.
* *Change 2:* Update auth link from `/api/sdks/cli#authentication` to `/cli-sdks-libraries/cli/authentication`.
* *Change 3:* Update Client SDKs card link from `/api/client-sdks` to `/cli-sdks-libraries/overview`. Text change: Java -> C# in the list? Wait, looking at the text: "Python, TypeScript, C#, and other..." (Previous was "Python, TypeScript, Java...").
* *Impact:* URL restructuring/reorganization.
* **Page: `api/overview.md` (+4 / -4)**
* *Change 1:* Text tweak: `e.g.` -> `for example`.
* *Change 2:* Update Client SDKs link `/api/client-sdks` -> `/cli-sdks-libraries/overview`.
* *Change 3:* Update SDK list in card: "Python, TypeScript, C#, Go, Java, PHP, and Ruby" (Previously: "Python, TypeScript, Java, Go, C#, Ruby, and PHP"). Reordering.
* *Impact:* URL restructuring, minor text standardization.
* **Page: `api/client-sdks.md` (+20 / -204) - *Major Change***
* *Change:* Massive rewrite/shortening. Title changed from "Client SDKs" to "CLI, SDKs, and libraries".
* *Structure:* Instead of listing install commands and quickstarts for every language *on this page*, it now provides a landing page linking out to individual pages (`/cli-sdks-libraries/...`).
* *Categorization:* Split into CLI, Client SDKs, and Libraries & Integrations.
* *Impact:* Documentation architecture shift. Centralized page becomes a navigation hub rather than a reference dump.
* **Page: `api/rate-limits.md` (+10 / -29)**
* *Change:* HTML table `<table>` converted to Markdown table. Text changes: "Credit Purchase" -> "Credit purchase". Removed some specific HTML tags.
* *Impact:* Formatting consistency.
* **Page: `api/versioning.md` (+5 / -5)**
* *Change 1:* Link update: `/api/client-sdks` -> `/cli-sdks-libraries/overview`.
* *Change 2:* Text tweak: "we will preserve" -> "Anthropic preserves". "we may do" -> "Anthropic may do".
* *Change 3:* "we will not break" -> "Anthropic will not break".
* *Change 4:* "We always recommend" -> "Anthropic recommends".
* *Impact:* Brand voice standardization, URL restructuring.
* **Page: `api/beta-headers.md` (+1 / -1)**
* *Change:* Link update: `/api/client-sdks#beta-namespace...` -> `/cli-sdks-libraries/overview`.
* *Impact:* URL restructuring.
* **Page: `api/errors.md` (+4 / -1)**
* *Change 1:* Added "SDK error types" section explaining that SDKs use typed exceptions and linking to specific language docs.
* *Change 2:* Link update: `/api/client-sdks` -> `/cli-sdks-libraries/overview`.
* *Impact:* Improved clarity on error handling in SDKs.
* **Page: `build-with-claude/streaming.md` (+3 / -3)**
* *Change 1:* Text tweak: `e.g.` -> `for example`.
* *Change 2:* Link update: `/api/client-sdks` -> `/cli-sdks-libraries/overview`.
* *Impact:* Text standardization, URL restructuring.
* **Page: `build-with-claude/context-editing.md` (+3 / -3)**
* *Change 1:* Link update: `/api/client-sdks` -> `/cli-sdks-libraries/overview`.
* *Change 2:* Text tweak: `e.g.` -> `for example`.
* *Impact:* Text standardization, URL restructuring.
* **Page: `build-with-claude/structured-outputs.md` (+1 / -1)**
* *Change:* Link update: `/api/sdks/java#requirements` -> `/cli-sdks-libraries/sdks/java#requirements`.
* *Impact:* URL restructuring.
* **Page: `build-with-claude/claude-on-amazon-bedrock.md` (+3 / -3)**
* *Change:* Link updates: `/api/client-sdks` -> `/cli-sdks-libraries/overview`.
* *Impact:* URL restructuring.
* **Page: `build-with-claude/claude-on-vertex-ai.md` (+3 / -3)**
* *Change:* Link updates: `/api/client-sdks` -> `/cli-sdks-libraries/overview`.
* *Impact:* URL restructuring.
* **Page: `build-with-claude/claude-in-microsoft-foundry.md` (+2 / -2)**
* *Change 1:* Link update: `/api/client-sdks` -> Removed link in Note text, just text remains? No, the note text changed from "For available SDK platform integrations, see [Client SDKs](...)" to just "The Go and Ruby SDKs do not currently support Microsoft Foundry." (Implicit removal of link).
* *Change 2:* Link update: `/api/client-sdks` -> `/cli-sdks-libraries/overview`.
* *Impact:* URL restructuring.
3. **Synthesize Key Themes:**
* **Documentation Restructuring (Major):** The move from `/api/sdks/...` and `/api/client-sdks` to `/cli-sdks-libraries/...` is the most pervasive change. The SDK page went from a giant list to a navigation hub.
* **Feature Addition:** `disallowed-tools` in Skill frontmatter.
* **Style Standardization:** Changing "e.g." to "for example" and using "Anthropic [verb]" instead of "we [verb]" for brand voice.
* **Content Improvement:** Better error handling documentation for SDKs.
4. **Determine Impact Level:**
* *Reasoning:* The URLs changed significantly. If developers have hardcoded links to the docs or rely on the structure, they might get 404s. The `disallowed-tools` is a new feature (high impact for skill users). The consolidation of the SDK page improves discoverability but changes the mental model. The URL changes are the most "breaking" aspect for *references*, though not for the code itself.
* *Rating:* Medium. It's primarily a documentation overhaul. Code behavior hasn't changed, but the "API" for reading the docs has.
5. **Draft Action Items:**
* Update saved bookmarks or internal wikis pointing to `/api/client-sdks` or `/api/sdks`.
* Explore the new `disallowed-tools` frontmatter option for Skills to manage tool usage dynamically.
* Check the new SDK hub page (`/cli-sdks-libraries/overview`) if looking for specific language docs.
* Review the updated error handling section to ensure SDK exception handling matches best practices.
* (Optional) Note the reordering of language support (C# prominence).
6. **Translate and Refine into Chinese:**
* *Summary:* 本次更新主要涉及文档结构的重大重组和 SDK 相关路径的迁移,同时引入了 Skills 的新配置选项。
* *Themes:*
* **文档架构重组:** SDK 文档从单一长页重构为导航中心 (`/cli-sdks-libraries/...`)。
* **功能增强:** Skills 新增 `disallowed-tools` 前置元数据。
* **标准化:** 统一语言风格(e.g. -> for example, we -> Anthropic)和链接。
* *Impact:* Medium. URL 变更影响书签/引用,但功能未破坏。
* *Action Items:*
* 更新书签/链接。
* 使用 `disallowed-tools`。
* 查看新的错误处理文档。
7. **Final Polish (Markdown):** Ensure the tone is professional and concise.
* *Self-Correction during translation:* Ensure the distinction between "breaking" (code) and "breaking" (docs links) is clear. This is Medium impact because of the sheer volume of link changes, but it's documentation-only.
* *Drafting the "Key Themes":*
1. **大规模文档路径迁移**: 旧的 `/api/client-sdks` 和 `/api/sdks` 路径统一迁移至 `/cli-sdks-libraries/...` 结构。
2. **SDK 概览页重构**: 原有的 SDK 列表页转变为导航枢纽,不再包含所有语言的安装示例。
3. **Skills 功能增强**: 新增通过 Frontmatter 配置 `disallowed-tools` 的能力,用于临时禁用工具。
4. **语言风格与格式统一**: 文案规范化(例如 `e.g.` 改为 `for example`),表格格式标准化。
* *Drafting the "Action Items":*
* **更新书签与引用**: 检查并更新所有指向旧 SDK 文档路径(如 `/api/sdks`)的链接。
* **测试 Skills 工具限制**: 在 Skills 配置中试用新的 `disallowed-tools` 字段以实现动态工具管理。
* **查阅 SDK 错误处理**: 查看新增的 "SDK error types" 部分,优化异常捕获代码。
* *Drafting the "Impact":*
* **级别**: Medium
* **理由**: 虽然代码层面的 API 没有破坏性变更,但文档 URL 结构发生了根本性改变,可能导致旧的内部链接失效。新的 Skills 功能是重要的能力补充。
8. **Final Output Generation.** (Proceed to generate output based on these thoughts).