## 文档变更分析摘要
### 1. 总体摘要
本次更新主要进行了术语重构与架构澄清:将“自定义斜杠命令”统一整合进“技能”体系,并明确区分了“内置命令”与“打包技能”的差异,同时将 `/debug` 功能升级为打包技能。
### 2. 核心主题
* **术语统一化**:全面弃用 "Slash Commands"(斜杠命令)这一说法,改用 "Commands"(命令)。自定义命令现在明确归属于 "Skills"(技能)范畴,消除了概念上的混淆。
* **架构分类明确**:文档清晰界定了三类功能的区别:
* **Built-in Commands**:硬编码逻辑(如 `/clear`, `/help`)。
* **Bundled Skills**:随产品附带的、基于提示词的技能(如 `/simplify`, `/batch`, `/debug`)。
* **Custom Skills**:用户自定义的功能(原自定义斜杠命令)。
* **功能重新归类**:`/debug` 命令被重新定义为一项“打包技能”,强调了其通过读取日志和提示词编排来解决问题的特性。
* **文档一致性修正**:修正了安装代码块中的语法错误(`theme={null}` 重复),并同步更新了 CLI 参考、Hooks 指南及概览页面中的术语描述。
### 3. 影响等级
**Low (低)**
**理由**:此次变更主要是文档层面的术语清理和概念澄清,不涉及破坏性 API 变更。现有的命令和技能用法保持不变,开发者只需更新对概念的认知即可。
### 4. 开发者行动项
* **更新术语习惯**:在团队文档或日常交流中,将“自定义斜杠命令”改称为“自定义技能”或“技能”。
* **利用新技能**:尝试使用新归类的 `/debug` 打包技能来诊断 Claude Code 会话中的问题。
* **理解扩展机制**:区分“内置命令”(直接执行逻辑)和“打包技能”(AI 自主执行),以便更有效地创建自己的 `SKILL.md` 文件。
💭 Model Reasoning
1. **Analyze the Request:**
* **Role:** World-class programmer with expertise in dev tools/docs.
* **Task:** Analyze a batch of 14 documentation changes.
* **Output:** Concise, insightful analysis in Markdown format.
* **Format:**
* Overall Summary (1-2 sentences).
* Key Themes (bullets).
* Impact Level (Low/Medium/High/Breaking) with reasoning.
* Action Items (bullets, max 5).
* **Language:** Chinese.
2. **Analyze the Input Data (14 Pages):**
* **Page 1: `cli-reference.md`** (+1/-1)
* Change: `--disable-slash-commands` description changed from "Disable all *skills and slash commands*" to "Disable all *skills and commands*".
* Meaning: Terminology shift from "slash commands" to just "commands".
* **Page 2: `hooks-guide.md`** (+1/-1)
* Change: "They cannot trigger *slash commands* or tool calls directly" -> "They cannot trigger *commands* or tool calls directly".
* Meaning: Consistency with Page 1. Terminology shift.
* **Page 3: `interactive-mode.md`** (+64/-33)
* Change: The table of built-in commands seems to be restructured or expanded in the diff (though the diff context looks a bit messy/truncated in the prompt, focusing on the visible changes). Actually, looking closely at the diff for `interactive-mode.md`, the provided diff is huge (deleted lines, added lines). It looks like a table update or formatting change, but the text content is heavily reformatted. *Wait*, let me look closer at the diff text provided.
* The diff shows the "Built-in commands" section being rewritten. The table structure is likely changing. The prompt shows deletion of many lines and addition of many lines. It's a significant structural change to the commands table.
* *Correction*: Upon closer inspection of the `interactive-mode.md` diff, the `+` lines show a new table structure or content, while the `-` lines show the old table. The `+` lines include: `/clear`, `/compact`, `/config`, `/context`, `/cost`, `/debug`, `/doctor`, `/exit`, `/export`, `/help`, `/init`, `/mcp`, `/memory`, `/model`, `/permissions`, `/plan`, `/rename`, `/resume`, `/rewind`, `/stats`, `/status`, `/statusline`.
* *Wait, the old text also contained these or similar*. The main change seems to be the removal of a specific sentence: "To create your own commands you can invoke with `/`, see [skills](/en/skills)." and the table itself.
* *Hypothesis*: This is likely a terminology and structural update to the command table. Note: The prompt text for this page diff is quite long and looks like a table replacement.
* **Page 4: `overview.md`** (+4/-4)
* Change 1: Code blocks (install scripts) now have `theme={null} theme={null} theme={null} theme={null}` (seems like a rendering artifact/bug in the doc generator, but technically a change).
* Change 2: "Create custom *slash commands*..." -> "Create custom *commands*..." in the "Customize..." section.
* Meaning: Terminology consistency again.
* **Page 5: `skills.md`** (+6/-3)
* Change: Title/description "Includes custom *slash commands*" -> "Includes custom *commands* and bundled skills."
* Note: "**Custom *slash commands* have been merged into skills.**" -> "**Custom *commands* have been merged into skills.**"
* Addition: "Bundled skills" section expanded.
* Distinction made between "built-in commands" (fixed logic) vs "bundled skills" (prompt-based).
* Added `/debug` as a bundled skill (previously likely a built-in command? or new).
* Explicitly mentions "Bundled skills ship with Claude Code... Unlike [built-in commands]... bundled skills are prompt-based".
* Meaning: This is the core change. "Slash commands" is being renamed to just "commands" (or specifically "skills" for custom ones). The distinction between "Built-in Commands" (hardcoded) and "Bundled Skills" (prompt-based) is being clarified. `/debug` is now categorized as a bundled skill.
* **Page 6: `slash-commands.md`** (+6/-3)
* Change: This page content is identical to `skills.md` in the provided diff.
* Meaning: Likely a redirect or copy of the skills page to handle the "slash command" terminology migration.
* **Page 7-13: `build-with-claude/prompt-engineering/*.md`**
* These diffs show large HTML block changes (DOCTYPES, stylesheets, scripts). The `+` lines are huge HTML strings, and the `-` lines are huge HTML strings.
* *Observation*: These look like build artifacts or full HTML dumps rather than Markdown source changes, or perhaps the diff tool is outputting rendered HTML differences instead of source markdown diffs.
* *Action*: Ignore these as they don't represent meaningful documentation content changes for a developer (looks like CI/Build noise or a bad diff output format).
* **Page 14: (implied end of list, wait, count check)**
* 1. cli-reference.md
* 2. hooks-guide.md
* 3. interactive-mode.md
* 4. overview.md
* 5. skills.md
* 6. slash-commands.md
* 7. be-clear-and-direct.md (HTML noise)
* 8. multishot-prompting.md (HTML noise)
* 9. chain-of-thought.md (HTML noise)
* 10. use-xml-tags.md (HTML noise)
* 11. system-prompts.md (HTML noise)
* 12. chain-prompts.md (HTML noise)
* 13. long-context-tips.md (HTML noise)
* 14. extended-thinking-tips.md (HTML noise)
* Okay, 7 "real" docs with content changes, 7 "noise" files showing HTML diffs.
3. **Synthesize the Themes:**
* **Terminology Shift:** "Slash commands" is being deprecated as a term in favor of "Commands". Custom slash commands are now referred to as "Skills" (which has been mentioned before, but the terminology is consolidating).
* **Categorization:** A clearer distinction is being drawn between:
1. **Built-in Commands:** Hardcoded logic (e.g., `/help`, `/clear`).
2. **Bundled Skills:** Prompt-based capabilities that ship with the tool (e.g., `/simplify`, `/batch`, `/debug`).
3. **Custom Skills (formerly Custom Slash Commands):** User-defined capabilities.
* **Feature Update:** `/debug` is being elevated/promoted as a "Bundled Skill" rather than just a standard command, highlighting its "prompt-based" nature (reading logs and analyzing).
* **Consistency:** Updates across multiple files to ensure "commands" is the generic term, reserving "slash commands" only where necessary (or removing it entirely).
4. **Determine Impact Level:**
* **Reasoning:** This is primarily a terminology and structural documentation update.
* The renaming of "Slash Commands" to "Commands" is low friction but important for understanding the architecture.
* The reclassification of `/debug` is a nuance, but doesn't break existing functionality.
* The distinction between "Built-in" and "Bundled Skills" helps developers understand how to extend the tool vs. what comes out-of-the-box.
* **Level:** Low to Medium. It's Medium if a user was confused about the difference between a command and a skill. It's Low if they just used them. I'll lean towards **Low** because it's mostly nomenclature and documentation structure, not API changes.
5. **Draft Action Items (Chinese):**
* Update any internal documentation or guides referring to "custom slash commands" to use "skills" or "custom commands".
* Review the distinction between "built-in commands" and "bundled skills" to understand extensibility.
* Try using `/debug` as a bundled skill for troubleshooting sessions.
* (If applicable) Update scripts or automation that might parse these docs if they relied on the "slash command" terminology.
6. **Drafting the Response (in Chinese):**
* *Summary:* 本次更新主要涉及术语调整和架构澄清,将“斜杠命令”统一整合进“技能”范畴,并明确了“内置命令”与“打包技能”的区别。
* *Themes:*
* 术语重构:弃用 "Slash Commands"(斜杠命令),改用 "Commands"(命令)或 "Skills"(技能)。
* 概念区分:明确了 Built-in Commands(硬编码逻辑)与 Bundled Skills(基于提示词的打包技能)。
* 功能优化:将 `/debug` 归类为打包技能,提升了其功能的可见度。
* 文档一致性:修复了代码块渲染和描述中的术语统一性问题。
* *Impact:* Low. 主要是术语和文档结构的优化,未涉及破坏性变更。
* *Action Items:*
* 更新团队内部文档:将 "自定义斜杠命令" 改称为 "技能" 或 "自定义命令"。
* 了解新架构:区分内置命令(如 `/clear`)和打包技能(如 `/simplify`)的运行机制差异。
* 利用新特性:尝试使用 `/debug` 技能进行会话故障排查。
7. **Review and Refine:**
* The HTML diffs (files 7-14) should be ignored in the *analysis* of developer value, treating them as noise/build artifacts.
* The `theme={null}` repetition in `overview.md` is likely a bug in the doc generation, not a dev concern. I will mention it briefly or ignore it as noise. Let's ignore it to keep it insightful.
* The `interactive-mode.md` change involves a table rewrite. The prompt shows deletion of a sentence about creating custom commands and rewriting the table. This supports the "consolidation" theme.
* *Self-Correction on Theme:* The key insight is the unification. "Slash commands" (the user-created ones) were confusingly named. They are now explicitly "Skills". The `/` prefix is just the invocation method. The tool also has "Built-in Commands" (coded by dev) and "Bundled Skills" (coded by dev but prompt-based). This is a cleaner mental model for users.
* *Refining Action Items:*
1. Update internal terminology references.
2. Use `/debug` for troubleshooting.
3. Understand the distinction for customization.
* *Final Polish of Chinese text.* Ensure "Skills" translates correctly or is kept as English if standard (usually "技能" in this context, or keep English for specific terms like "Bundled Skills"). I will use "技能" for Skills, "命令" for Commands.
* *Action Items check:* Are there any code actions? No. Just knowledge updates.
* *Impact:* Low. It's mostly wording.
8. **Final Output Generation:** (Proceed to generate markdown).