spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / plugins / claude-opus-4-5-migration / skills / claude-opus-4-5-migration / SKILL.md
105 lines · 4.6 KBPreviewCodeRaw
1---
2name: claude-opus-4-5-migration
3description: Migrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5. Use when the user wants to update their codebase, prompts, or API calls to use Opus 4.5. Handles model string updates and prompt adjustments for known Opus 4.5 behavioral differences. Does NOT migrate Haiku 4.5.
4---
5
6# Opus 4.5 Migration Guide
7
8One-shot migration from Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5.
9
10## Migration Workflow
11
121. Search codebase for model strings and API calls
132. Update model strings to Opus 4.5 (see platform-specific strings below)
143. Remove unsupported beta headers
154. Add effort parameter set to `"high"` (see `references/effort.md`)
165. Summarize all changes made
176. Tell the user: "If you encounter any issues with Opus 4.5, let me know and I can help adjust your prompts."
18
19## Model String Updates
20
21Identify which platform the codebase uses, then replace model strings accordingly.
22
23### Unsupported Beta Headers
24
25Remove the `context-1m-2025-08-07` beta header if present—it is not yet supported with Opus 4.5. Leave a comment noting this:
26
27```python
28# Note: 1M context beta (context-1m-2025-08-07) not yet supported with Opus 4.5
29```
30
31### Target Model Strings (Opus 4.5)
32
33| Platform | Opus 4.5 Model String |
34|----------|----------------------|
35| Anthropic API (1P) | `claude-opus-4-5-20251101` |
36| AWS Bedrock | `anthropic.claude-opus-4-5-20251101-v1:0` |
37| Google Vertex AI | `claude-opus-4-5@20251101` |
38| Azure AI Foundry | `claude-opus-4-5-20251101` |
39
40### Source Model Strings to Replace
41
42| Source Model | Anthropic API (1P) | AWS Bedrock | Google Vertex AI |
43|--------------|-------------------|-------------|------------------|
44| Sonnet 4.0 | `claude-sonnet-4-20250514` | `anthropic.claude-sonnet-4-20250514-v1:0` | `claude-sonnet-4@20250514` |
45| Sonnet 4.5 | `claude-sonnet-4-5-20250929` | `anthropic.claude-sonnet-4-5-20250929-v1:0` | `claude-sonnet-4-5@20250929` |
46| Opus 4.1 | `claude-opus-4-1-20250422` | `anthropic.claude-opus-4-1-20250422-v1:0` | `claude-opus-4-1@20250422` |
47
48**Do NOT migrate**: Any Haiku models (e.g., `claude-haiku-4-5-20251001`).
49
50## Prompt Adjustments
51
52Opus 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.
53
54**Integration guidelines**: When adding snippets, don't just append them to prompts. Integrate them thoughtfully:
55- Use XML tags (e.g., `<code_guidelines>`, `<tool_usage>`) to organize additions
56- Match the style and structure of the existing prompt
57- Place snippets in logical locations (e.g., coding guidelines near other coding instructions)
58- If the prompt already uses XML tags, add new content within appropriate existing tags or create consistent new ones
59
60### 1. Tool Overtriggering
61
62Opus 4.5 is more responsive to system prompts. Aggressive language that prevented undertriggering on previous models may now cause overtriggering.
63
64**Apply if**: User reports tools being called too frequently or unnecessarily.
65
66**Find and soften**:
67- `CRITICAL:` → remove or soften
68- `You MUST...` → `You should...`
69- `ALWAYS do X` → `Do X`
70- `NEVER skip...` → `Don't skip...`
71- `REQUIRED` → remove or soften
72
73Only apply to tool-triggering instructions. Leave other uses of emphasis alone.
74
75### 2. Over-Engineering Prevention
76
77Opus 4.5 tends to create extra files, add unnecessary abstractions, or build unrequested flexibility.
78
79**Apply if**: User reports unwanted files, excessive abstraction, or unrequested features. Add the snippet from `references/prompt-snippets.md`.
80
81### 3. Code Exploration
82
83Opus 4.5 can be overly conservative about exploring code, proposing solutions without reading files.
84
85**Apply if**: User reports the model proposing fixes without inspecting relevant code. Add the snippet from `references/prompt-snippets.md`.
86
87### 4. Frontend Design
88
89**Apply if**: User requests improved frontend design quality or reports generic-looking outputs.
90
91Add the frontend aesthetics snippet from `references/prompt-snippets.md`.
92
93### 5. Thinking Sensitivity
94
95When 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.
96
97**Apply if**: User reports issues related to "thinking" while extended thinking is not enabled (no `thinking` parameter in request).
98
99Replace "think" with alternatives like "consider," "believe," or "evaluate."
100
101## Reference
102
103See `references/prompt-snippets.md` for the full text of each snippet to add.
104
105See `references/effort.md` for configuring the effort parameter (only if user requests it).