claude-opus-4-5-migration by davila7/claude-code-templates
npx skills add https://github.com/davila7/claude-code-templates --skill claude-opus-4-5-migration从 Sonnet 4.0、Sonnet 4.5 或 Opus 4.1 一键迁移到 Opus 4.5。
effort 参数并设置为 "high"(参见 references/effort.md)识别代码库使用的平台,然后相应地替换模型字符串。
如果存在 context-1m-2025-08-07 beta 标头,请将其移除——它目前尚未在 Opus 4.5 中得到支持。留下注释说明:
# 注意:1M 上下文 Beta 版 (context-1m-2025-08-07) 目前尚未在 Opus 4.5 中支持
| 平台 |
|---|
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| Opus 4.5 模型字符串 |
|---|
| Anthropic API (1P) | claude-opus-4-5-20251101 |
| AWS Bedrock | anthropic.claude-opus-4-5-20251101-v1:0 |
| Google Vertex AI | claude-opus-4-5@20251101 |
| Azure AI Foundry | claude-opus-4-5-20251101 |
| 源模型 | Anthropic API (1P) | AWS Bedrock | Google Vertex AI |
|---|---|---|---|
| Sonnet 4.0 | claude-sonnet-4-20250514 | anthropic.claude-sonnet-4-20250514-v1:0 | claude-sonnet-4@20250514 |
| Sonnet 4.5 | claude-sonnet-4-5-20250929 | anthropic.claude-sonnet-4-5-20250929-v1:0 | claude-sonnet-4-5@20250929 |
| Opus 4.1 | claude-opus-4-1-20250422 | anthropic.claude-opus-4-1-20250422-v1:0 | claude-opus-4-1@20250422 |
请勿迁移:任何 Haiku 模型(例如 claude-haiku-4-5-20251001)。
Opus 4.5 与之前的模型存在已知的行为差异。仅当用户明确要求或报告特定问题时才应用这些修复。 默认情况下,只需更新模型字符串。
集成指南:添加代码片段时,不要只是将其附加到提示词末尾。请有策略地进行集成:
<code_guidelines>、<tool_usage>)来组织新增内容Opus 4.5 对系统提示词更敏感。在先前模型中用于防止触发不足的激进语言现在可能导致过度触发。
应用场景:用户报告工具被过于频繁或不必要地调用。
查找并软化:
CRITICAL: → 移除或软化You MUST... → You should...ALWAYS do X → Do XNEVER skip... → Don't skip...REQUIRED → 移除或软化仅应用于工具触发指令。其他强调性用词保持不变。
Opus 4.5 倾向于创建额外文件、添加不必要的抽象或构建未请求的灵活性。
应用场景:用户报告出现不需要的文件、过度抽象或未请求的功能。添加来自 references/prompt-snippets.md 的代码片段。
Opus 4.5 在探索代码方面可能过于保守,会在未读取文件的情况下提出解决方案。
应用场景:用户报告模型在未检查相关代码的情况下提出修复方案。添加来自 references/prompt-snippets.md 的代码片段。
应用场景:用户要求提高前端设计质量或报告输出结果看起来过于通用。
添加来自 references/prompt-snippets.md 的前端美学代码片段。
当未启用扩展思考(默认情况)时,Opus 4.5 对"think"一词及其变体特别敏感。仅当 API 请求包含 thinking 参数时才启用扩展思考。
应用场景:用户报告在未启用扩展思考(请求中没有 thinking 参数)时出现与"thinking"相关的问题。
将"think"替换为替代词,如"consider"、"believe"或"evaluate"。
查看 references/prompt-snippets.md 获取每个待添加代码片段的完整文本。
查看 references/effort.md 了解如何配置 effort 参数(仅在用户要求时)。
每周安装量
167
代码仓库
GitHub 星标数
23.5K
首次出现
2026年1月21日
安全审计
安装于
claude-code143
opencode131
gemini-cli128
cursor127
antigravity123
codex116
One-shot migration from Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5.
"high" (see references/effort.md)Identify which platform the codebase uses, then replace model strings accordingly.
Remove the context-1m-2025-08-07 beta header if present—it is not yet supported with Opus 4.5. Leave a comment noting this:
# Note: 1M context beta (context-1m-2025-08-07) not yet supported with Opus 4.5
| Platform | Opus 4.5 Model String |
|---|---|
| Anthropic API (1P) | claude-opus-4-5-20251101 |
| AWS Bedrock | anthropic.claude-opus-4-5-20251101-v1:0 |
| Google Vertex AI | claude-opus-4-5@20251101 |
| Azure AI Foundry | claude-opus-4-5-20251101 |
| Source Model | Anthropic API (1P) | AWS Bedrock | Google Vertex AI |
|---|---|---|---|
| Sonnet 4.0 | claude-sonnet-4-20250514 | anthropic.claude-sonnet-4-20250514-v1:0 | claude-sonnet-4@20250514 |
| Sonnet 4.5 | claude-sonnet-4-5-20250929 | anthropic.claude-sonnet-4-5-20250929-v1:0 | claude-sonnet-4-5@20250929 |
Do NOT migrate : Any Haiku models (e.g., claude-haiku-4-5-20251001).
Opus 4.5 has known behavioral differences from previous models. Only apply these fixes if the user explicitly requests them or reports a specific issue. By default, just update model strings.
Integration guidelines : When adding snippets, don't just append them to prompts. Integrate them thoughtfully:
<code_guidelines>, <tool_usage>) to organize additionsOpus 4.5 is more responsive to system prompts. Aggressive language that prevented undertriggering on previous models may now cause overtriggering.
Apply if : User reports tools being called too frequently or unnecessarily.
Find and soften :
CRITICAL: → remove or softenYou MUST... → You should...ALWAYS do X → Do XNEVER skip... → Don't skip...REQUIRED → remove or softenOnly apply to tool-triggering instructions. Leave other uses of emphasis alone.
Opus 4.5 tends to create extra files, add unnecessary abstractions, or build unrequested flexibility.
Apply if : User reports unwanted files, excessive abstraction, or unrequested features. Add the snippet from references/prompt-snippets.md.
Opus 4.5 can be overly conservative about exploring code, proposing solutions without reading files.
Apply if : User reports the model proposing fixes without inspecting relevant code. Add the snippet from references/prompt-snippets.md.
Apply if : User requests improved frontend design quality or reports generic-looking outputs.
Add the frontend aesthetics snippet from references/prompt-snippets.md.
When extended thinking is not enabled (the default), Opus 4.5 is particularly sensitive to the word "think" and its variants. Extended thinking is enabled only if the API request contains a thinking parameter.
Apply if : User reports issues related to "thinking" while extended thinking is not enabled (no thinking parameter in request).
Replace "think" with alternatives like "consider," "believe," or "evaluate."
See references/prompt-snippets.md for the full text of each snippet to add.
See references/effort.md for configuring the effort parameter (only if user requests it).
Weekly Installs
167
Repository
GitHub Stars
23.5K
First Seen
Jan 21, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code143
opencode131
gemini-cli128
cursor127
antigravity123
codex116
AI Elements:基于shadcn/ui的AI原生应用组件库,快速构建对话界面
62,200 周安装
Loom视频转录获取器 - 自动提取Loom视频字幕与文本,支持GraphQL API
163 周安装
bioRxiv数据库Python工具:高效搜索下载预印本,支持关键词/作者/日期/类别筛选
163 周安装
Magento 2 Hyvä CMS 组件创建器 - 快速构建自定义CMS组件
163 周安装
项目文档协调器 - 自动化文档生成与上下文管理工具
163 周安装
GPUI 布局与样式:Rust 类型安全的 CSS 样式库,Flexbox 布局与链式 API
163 周安装
Telegram自动化指南:通过Rube MCP与Composio实现消息发送、聊天管理
163 周安装
| Opus 4.1 |
claude-opus-4-1-20250422 |
anthropic.claude-opus-4-1-20250422-v1:0 |
claude-opus-4-1@20250422 |