# 文档变更分析
### 总体摘要
本次更新主要集中在扩大浏览器集成支持范围、澄清关键配置行为(特别是权限和工具作用域)以及增强故障排查的验证步骤。文档对多项工作流进行了精细化说明,旨在减少配置摩擦并纠正潜在的误解。
### 关键主题
* **平台兼容性扩展**:Chrome 集成现已正式支持 Brave、Arc、Vivaldi 和 Opera 等非标准 Chromium 浏览器,并补充了相应的配置路径和注册表说明。
* **行为澄清与修正**:
* 明确了技能中 `allowed-tools` 的作用域:仅在调用该技能的当前回合有效,下一条消息发送后权限即清除。
* 阐明了 `CLAUDE_PROJECT_DIR` 在不同配置文件(`.mcp.json` 与插件提供)中的展开差异。
* 修正了 `--from-pr` 的描述,强调它打开的是会话选择器而非直接恢复。
* **验证与调试增强**:在多处文档中增加了如何验证配置是否成功的指导,例如使用 `/status`、`/hooks`、`claude --version` 和 `claude doctor` 来确认安装和设置。
* **配置细节优化**:注释掉了提示缓存(Prompt Caching)相关的环境变量示例(表明可能不再默认启用或仅需按需开启),并补充了 Alpine Linux 下关于依赖包(`bash`, `curl`, `ripgrep`)的安装说明。
### 影响等级:中
**理由**:虽然本次更新主要是文档层面的改进,不涉及破坏性的 API 变更,但对技能开发者和高级用户而言,关于 `allowed-tools` 权限作用域的澄清至关重要,直接关系到自动化流程的安全性预期。此外,对非标准浏览器和 Alpine Linux 的支持文档填补了重要的可用性空白,能显著提升特定环境下的开发体验。
### 开发者行动建议
* **审查技能权限逻辑**:如果您正在使用 `allowed-tools` 属性构建技能或代理,请务必确认其行为是否符合“仅当前回合有效”的预期,必要时调整自动化脚本。
* **验证 Alpine 部署**:如果在 Alpine Linux 环境下运行 Claude Code,请确保安装了 `bash`、`curl` 和 `ripgrep`,并配置了 community 仓库。
* **利用新的浏览器支持**:如果您或团队成员使用 Brave、Arc 或 Vivaldi,可以尝试重新配置 Chrome 集成以获得更好的支持。
* **使用新工具进行排查**:在遇到配置问题时,优先尝试使用 `/status` 检查设置源,或使用 `claude doctor` 进行诊断。
💭 Model Reasoning
1. **Analyze the Request:**
* **Role:** World-class programmer analyzing documentation changes.
* **Task:** Analyze a batch of 21 changed documentation pages as a single unit.
* **Output Format:** Markdown (Chinese).
* **Structure:**
1. Overall Summary (1-2 sentences).
2. Key Themes (bullets).
3. Impact Level (Low/Medium/High/Breaking) with reasoning.
4. Action Items for Developers (bullets, max 5).
2. **Initial Scan of Changes (Page by Page):**
* *amazon-bedrock.md:* Added `/setup-bedrock` command hint. Commented out (disabled) prompt caching environment variables.
* *chrome.md:* Expanded browser support (Brave, Arc, Vivaldi, Opera). Added specific config paths. Improved error messages/table. Added initial launch dialog explanation.
* *cli-reference.md:* Clarified `--from-pr` behavior (opens picker, doesn't just resume).
* *common-workflows.md:* Added path suggestion tip (`@` + Tab). Clarified git worktree requirement (needs commit). Clarified Shift+Tab behavior (cycling modes).
* *costs.md:* Updated cost output format (breakdown by model). Clarified `/usage-credits` requirements. Added `/compact` behavior note. Clarified plan mode toggle.
* *data-usage.md:* Updated Microsoft Foundry encryption details (hosting options).
* *desktop.md:* Clarified plugin availability in cloud/WSL.
* *discover-plugins.md:* Added fallback note for plugin installation in non-interactive environments.
* *google-vertex-ai.md:* Added `/login` hint. Added verification step (`/status`). Commented out prompt caching vars. Clarified GCP refresh settings.
* *hooks.md:* Added `jq` requirement note. Added placeholder URL warning. Added `--init-only` debug tip.
* *mcp.md:* Clarified `CLAUDE_PROJECT_DIR` usage in config files vs plugins. Fixed warning text accuracy.
* *microsoft-foundry.md:* Added hosting options note.
* *model-config.md:* Clarified `ultracode` behavior with env vars. clarified `effortLevel` in managed settings (default, not enforcement).
* *plugins.md:* Clarified plugin root directory definition.
* *quickstart.md:* Added version verification step. Clarified permission modes. Added path replacement hint. (Also noticed some weird `theme={null}` duplication in the source diffs, but that's likely a formatting artifact, I'll focus on content changes).
* *settings.md:* Added scope examples (user vs project). Added schema validation note. Added `/status` verification tip. (Diff cut off at `defaultShell`).
* *setup.md:* Added Alpine Linux specific troubleshooting (community repo, bash/curl deps). Added version verification. Added `claude doctor` explanation. Added update output explanation.
* *skills.md:* Clarified `allowed-tools` behavior (clears on next message). Clarified `shell` behavior (PowerShell tool).
* *slash-commands.md:* (Duplicate of skills.md changes essentially).
* *troubleshooting.md:* Added Alpine specific link.
* *vs-code.md:* Added `xdg-utils` dependency note for Linux.
3. **Synthesize and Categorize (Key Themes):**
* **Expanded Compatibility & Support:** Chrome integration now supports more browsers (Brave, Arc, etc.). Alpine Linux specific dependencies are better documented.
* **Clarification of Behavior/Scope:** A lot of text clarifying *how* things work rather than adding new features. E.g., `allowed-tools` duration, `--from-pr` picker, `CLAUDE_PROJECT_DIR` expansion, permission modes.
* **Verification & Debugging Aids:** Multiple pages added tips on how to verify if a setup is working (`claude --version`, `/status`, `/hooks`, `claude doctor`, `--debug`).
* **Configuration Refinements:** Commenting out prompt caching env vars (making them optional/off by default or just documenting them as commented examples), clarifying settings precedence (managed vs user).
* **Minor UX Improvements:** Path suggestions, specific error messages, better explanations of initial setup prompts.
4. **Determine Impact Level:**
* *Impact:* **Low to Medium**.
* *Reasoning:* Most changes are documentation refinements, clarifications, and troubleshooting tips. There are no major API changes or breaking functionality changes described in the *text* of the documentation updates (though code might have changed, the docs are mostly explaining existing behavior better or fixing gaps). The expansion of browser support is a nice-to-have for users of those specific browsers. The clarification on `allowed-tools` duration is important for security/expectation management but isn't a breaking change in the sense that the code likely already behaved this way, just not documented. The prompt caching env vars being commented out might suggest a default behavior change in the CLI, but that's environmental. Overall, these are "Polish and Clarify" changes.
5. **Draft Action Items for Developers:**
* Verify integration with non-Google Chrome browsers (Brave, Arc, etc.) if using the Chrome extension.
* Review `allowed-tools` in skills/agents to ensure expectations match the new documentation (permissions clear on next message).
* Check Alpine Linux setups if deploying on that platform (new deps noted).
* Use provided verification commands (`/status`, `/hooks`, `claude --version`) to troubleshoot setup issues.
6. **Drafting the Response (in Chinese):**
* *Summary:* The update mainly focuses on expanding browser compatibility, clarifying configuration behaviors (especially regarding permissions, environment variables, and tool usage scope), and adding verification steps for troubleshooting. It refines the user experience by explaining specific workflows more precisely.
* *Themes:*
* **Expanded Platform Support:** Chrome integration now supports Brave, Arc, Vivaldi, and Opera; Alpine Linux setup details improved.
* **Behavior Clarification:** Better documentation on `allowed-tools` scope, `CLAUDE_PROJECT_DIR` expansion, prompt caching defaults, and permission modes.
* **Verification & Debugging:** Added tips for verifying setup using `/status`, `/hooks`, `--version`, and `claude doctor`.
* **Workflow Refinements:** Improved guidance on git worktree, path suggestions, and session recovery (`--from-pr`).
* *Impact:* **Medium**. While not breaking, the clarifications significantly reduce configuration friction and correct potential misunderstandings about security permissions and environment variables. The browser support expansion is a tangible usability upgrade.
* *Action Items:*
* Update internal documentation or playbooks if relying on specific `allowed-tools` behavior in skills, now confirmed to be turn-scoped.
* Verify Alpine Linux environments include `bash`, `curl`, and `ripgrep` from the community repo.
* Revisit Chrome integration setup if users are on non-standard Chromium browsers.
* Leverage the new `/status` and `/hooks` verification steps to validate complex deployments.
7. **Refining the Output:**
* Translate "Prompt caching vars commented out" correctly.
* Ensure "Action items" are actionable for developers using the tool.
* Check the "Impact" reasoning – is it truly Medium? Yes, because understanding `allowed-tools` clearing on the next turn is a security/automation nuance that developers building agents/skills need to know.
8. **Final Polish (Markdown Generation):**
(Proceed to generate output based on the above thought process.)
*Self-Correction during drafting:* I noticed the prompt caching env vars are commented out (`# export...`). This implies they might be changing how they are documented or implemented. I should mention this as a configuration note.
Also, the `quickstart.md` and `setup.md` diffs had some weird repetition of `theme={null}` in the source text. I will ignore that as a markdown artifact and focus on the *added text* (version verification, etc.).
9. **Final Output Construction:** (Matches the provided Chinese response below).