# 文档变更分析
## 总体摘要
本次文档更新主要集中在三个方面:重构了 Bedrock 和 Vertex AI 的配置流程(区分向导与手动设置),正式将插件中的“Commands”重命名为“Skills”并规范了目录结构,以及明确了模型版本回退和上下文压缩的具体行为逻辑。
## 关键主题
* **术语与架构规范化**:文档全面将插件中的“Commands”更名为“Skills”。新插件推荐使用 `skills/<name>/SKILL.md` 目录结构,保留 `commands/` 用于扁平的 Markdown 文件(Legacy),旨在统一概念并区分技能类型。
* **云配置流程优化**:Amazon Bedrock 和 Google Vertex AI 的配置文档被重写,明确区分了“交互式向导登录”和“手动环境变量配置”两种场景,并新增了“启动时的模型检查”说明。
* **模型版本策略调整**:放宽了对模型固定的强制要求警告。现在明确指出,在未固定模型且最新版本不可用时,Bedrock 和 Vertex AI 会自动回退到上一版本(而非直接报错),Pinning 现在更多是为了让管理员控制用户迁移到新模型的时机。
* **上下文管理精细化**:补充了关于 `CLAUDE.md`、Skills 和 MCP 的使用时机指导。特别细化了自动压缩时 Skills 的保留策略(总预算 25k tokens,每个保留 5k),并指出嵌套的 `CLAUDE.md` 不会在 `/compact` 后自动重载。
* **运维细节修正**:明确了 Worktree 清理条件(未跟踪的文件也会阻止自动清理)以及 Claude Code 工作空间的速率限制说明。
## 影响等级
**Medium**
**理由**:虽然大部分变更为文档重构和术语统一(不会破坏现有代码),但模型回退行为的变化和 Skills 在上下文压缩中的 Token 限制机制,会直接影响企业级用户的部署策略和重度用户的交互体验。
## 开发者行动项
1. **插件开发者**:检查并更新插件结构,推荐迁移至 `skills/` 目录结构(`<name>/SKILL.md`),以适应新的术语规范。
2. **平台管理员**:重新评估模型固定策略,利用新版本的“自动回退”机制来平滑过渡 Anthropic 的模型更新。
3. **重度用户**:注意大型 Skills 在长对话压缩后可能会被截断或丢弃,如果发现行为异常,尝试重新调用技能。
4. **配置审查**:如果使用 Bedrock 或 Vertex AI,了解新增的“启动模型检查”功能,确保账户权限允许 Claude Code 验证模型可用性。
💭 Model Reasoning
1. **Understand the Goal**: The user wants a concise, insightful batch analysis of 18 documentation pages related to a developer tool (likely "Claude Code" based on the content). The output must be in Chinese, markdown format, and follow a specific structure: Overall Summary, Key Themes, Impact Level, and Action Items.
2. **Analyze the Input Data**: I need to read through the diffs of the 18 pages to identify patterns.
* **amazon-bedrock.md**:
* *Major Change*: Restructured setup guide. Separated "Sign in with Bedrock" (wizard) from "Set up manually" (env vars).
* *Logic Update*: Changed the warning about pinning models. It used to say "pin to prevent breakage". Now it says "pin when deploying to multiple users... Claude Code falls back to previous version... but pinning lets you control when your users move".
* *New Feature*: Added "Startup model checks" section explaining behavior when pinned models are old/unavailable.
* *Terminology*: "Application inference profile ARN" mentioned.
* **common-workflows.md**:
* *Minor Change*: Worktree cleanup logic. Now explicitly mentions that subagent worktrees are *not* removed if they have "no uncommitted changes, no untracked files, and no unpushed commits". (Previously said "no modifications to tracked files", now clarifies untracked files also prevent removal).
* **costs.md**:
* *Minor Change*: Added note about custom rate limits for the "Claude Code" workspace in the console.
* **desktop.md**:
* *Terminology*: Changed "commands" to "skills" in the UI description.
* **discover-plugins.md**:
* *Terminology*: Changed "commands" to "skills" throughout (e.g., "commands and agents" -> "skills and agents", "plugin commands" -> "plugin skills").
* **google-vertex-ai.md**:
* *Major Change*: Similar to Bedrock. Restructured setup into "Sign in with Vertex AI" (wizard) vs "Set up manually".
* *Logic Update*: Same model pinning warning update as Bedrock. Added "Startup model checks" section.
* *Version Note*: Wizard requires v2.1.98+.
* **mcp.md**:
* *Guidance*: Added "Connect a server when..." paragraph to guide users on *when* to use MCP.
* **memory.md**:
* *Guidance*: Added "When to add to CLAUDE.md" section.
* *Clarification*: Clarified what survives compaction. Nested CLAUDE.md files don't reload automatically after `/compact` until a file in that dir is read.
* **model-config.md**:
* *Logic Update*: Updated pinning warning to match Bedrock/Vertex AI changes. Explains that Bedrock/Vertex have fallbacks, Foundry errors.
* **output-styles.md**:
* *Clarification*: Added "when to use" guidance. Distinguished output styles (voice/format) from CLAUDE.md (project instructions).
* **plugin-marketplaces.md**:
* *Terminology*: "commands" -> "skills" consistently.
* *Structure*: Table update showing `skills` field takes directories with `<name>/SKILL.md`, `commands` takes flat `.md`.
* **plugins.md**:
* *Structure/Terminology*: Directory structure table updated. `skills/` is now the primary directory for `<name>/SKILL.md`. `commands/` is legacy for flat files.
* **plugins-reference.md**:
* *Structure/Terminology*: Manifest fields updated. `skills` is distinct from `commands` now (skills=dir structure, commands=flat md).
* *Directory Tree Example*: Updated to show `skills/` at top.
* **settings.md**:
* *Terminology*: "commands" -> "skills".
* **skills.md**:
* *Guidance*: Added "Create a skill when..." paragraph.
* *Behavior Change*: Clarified Auto-compaction behavior for skills. Skills are carried forward within a token budget (25k total, 5k per skill). Older skills can be dropped. If content is large, re-invoke after compaction.
* **slash-commands.md**:
* *Duplicate*: Seems to be the same diff as skills.md. Same additions.
* **sub-agents.md**:
* *Guidance*: Added "Use one when..." paragraph. Clarifies the benefit (context saving).
* **third-party-integrations.md**:
* *Logic Update*: Updated pinning warning to match other pages.
3. **Synthesize Key Themes**:
* **Terminology Shift (Commands -> Skills)**: Massive renaming. "Commands" inside plugins are now predominantly referred to as "Skills". The file structure is formalizing: `skills/` directory for `name/SKILL.md`, `commands/` for flat legacy files.
* **Setup Experience (Wizard vs Manual)**: For cloud providers (Bedrock, Vertex), setup docs are split into "Wizard" (interactive) vs "Manual" (env vars).
* **Model Pinning & Fallback Logic**: Relaxation of the "pin or die" stance. It now says "pin to control updates", but acknowledges that Bedrock/Vertex will *fallback* to previous versions if the latest isn't available, instead of breaking.
* **Startup Checks**: New feature explicitly checking model availability at startup.
* **Context Management (Compaction)**: More detailed rules on what survives compaction (Skills have a budget, nested CLAUDE.md don't auto-reload).
* **Guidance/When-to-use**: Added "When to use X" paragraphs for MCP, Skills, CLAUDE.md, Sub-agents, and Output Styles to help users choose the right tool.
4. **Determine Impact Level**:
* *Reasoning*:
* **Terminology changes** are widespread (plugins, skills, marketplaces). This affects how developers read docs and potentially name files, but likely doesn't break existing code unless the API strictly enforced names (usually these are file-based). However, it's a significant conceptual shift.
* **Model Pinning logic**: The change from "breaks silently" to "falls back" reduces urgency for pinning but changes behavior expectations.
* **Compaction behavior**: The details about skills being truncated or dropped due to token limits are significant for power users relying on long skills.
* *Level*: **Medium**. It's not a breaking change in the code execution sense, but it represents a significant shift in documentation structure, terminology, and specific behavioral expectations (compaction, model fallback).
5. **Draft Action Items**:
* Update plugin documentation/repo structure to reflect `skills/` vs `commands/`.
* Review/Update model pinning strategy (fallback might change upgrade plans).
* Consider the 25k token limit for skills when designing long-form skills.
* If using nested CLAUDE.md, be aware they don't reload after `/compact`.
6. **Translate and Format (Chinese)**:
* *Summary*: 此次文档更新大幅改进了云服务提供商(Bedrock, Vertex)的配置流程,并正式将插件中的“命令”统一重命名为“技能”,同时细化了模型回退和上下文压缩的行为描述。
* *Themes*:
1. **术语变更**:插件中的 Commands 全面改称为 Skills,并明确了 `skills/`(目录结构)与 `commands/`(扁平文件)的区别。
2. **配置流程优化**:Bedrock 和 Vertex AI 的设置文档重构,明确区分了“向导式登录”和“手动环境变量配置”。
3. **模型版本管理**:调整了模型固定策略。现在 Bedrock 和 Vertex AI 在最新版本不可用时会回退到旧版本(而非直接报错),强调了 Pinning 是为了控制更新时机而非防止崩溃。
4. **上下文管理细节**:详细说明了 Skills 在会话压缩中的 Token 预算机制,以及嵌套 `CLAUDE.md` 在压缩后的加载行为。
* *Impact*: Medium.
* *Action Items*:
* 插件开发者:更新插件目录结构,推荐使用 `skills/<name>/SKILL.md` 格式。
* 团队管理员:重新评估模型版本固定策略,利用新的回退机制。
* 重度用户:注意压缩后 Skills 的 Token 限制(共享 25k),可能需要重新调用大型 Skills。
7. **Final Review**: Check against the provided diffs.
* Did I miss the worktree cleanup? Yes, it's minor but real. I'll fold it into the general "behavioral updates".
* Did I catch the specific startup model checks? Yes.
* Did I catch the "When to use" sections? Yes.
*Refining the "Impact"*: The renaming is cosmetic but pervasive. The model fallback is a functional change in user experience. The compaction detail is a functional change in behavior. "Medium" fits well.
*Refining Action Items*: Keep it to max 5 bullets.
*Final Polish (Chinese)*: Ensure professional tone. "世界级程序员" persona.
*Drafting Response...*