All skills
anthropics avatar

/claude-opus-4-5-migration

@a194a9d
by Anthropicanthropics/claude-code149k stars
25,117

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.

Use this Skill: https://skilld.dev/gh/anthropics/claude-code/claude-opus-4-5-migration

This session only. Nothing lands on disk.

referenceseffort.md

≈432 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Effort Parameter (Beta)

Add effort set to "high" during migration. This is the default configuration for best performance with Opus 4.5.

Overview

Effort controls how eagerly Claude spends tokens. It affects all tokens: thinking, text responses, and function calls.

Effort Use Case
high Best performance, deep reasoning (default)
medium Balance of cost/latency vs. performance
low Simple, high-volume queries; significant token savings

Implementation

Requires beta flag effort-2025-11-24 in API calls.

Python SDK:

response = client.messages.create(
    model="claude-opus-4-5-20251101",
    max_tokens=1024,
    betas=["effort-2025-11-24"],
    output_config={
        "effort": "high"  # or "medium" or "low"
    },
    messages=[...]
)

TypeScript SDK:

const response = await client.messages.create({
  model: "claude-opus-4-5-20251101",
  max_tokens: 1024,
  betas: ["effort-2025-11-24"],
  output_config: {
    effort: "high"  // or "medium" or "low"
  },
  messages: [...]
});

Raw API:

{
  "model": "claude-opus-4-5-20251101",
  "max_tokens": 1024,
  "anthropic-beta": "effort-2025-11-24",
  "output_config": {
    "effort": "high"
  },
  "messages": [...]
}

Effort vs. Thinking Budget

Effort is independent of thinking budget:

  • High effort + no thinking = more tokens, but no thinking tokens
  • High effort + 32k thinking = more tokens, but thinking capped at 32k

Recommendations

  1. First determine effort level, then set thinking budget
  2. Best performance: high effort + high thinking budget
  3. Cost/latency optimization: medium effort
  4. Simple high-volume queries: low effort

Source: SKILL.md on GitHub

No alerts17d5 checks · Risk SAFE
  • Gen Agent Trust Hub17d

    This skill provides a structured workflow for migrating prompts and code to newer model versions. While it interacts with external codebases, which introduces a potential surface for indirect prompt injection, it mitigates this by recommending the use of organizational boundary markers like XML tags. The operations are consistent with standard developer migration tasks.

  • Socket17d

    No alerts

  • Snyk17d

    Risk: LOW · No issues

  • Runlayer7mo

    3 files scanned · No issues

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at a194a9d. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 18 hours ago.

Activeupdated 10 months ago
  • claude
  • opus
  • model-migration
  • anthropic-api
  • prompt-engineering
  • bedrock
  • vertex-ai

README badge

README badge for anthropics/claude-code/claude-opus-4-5-migration

Updates model strings and API calls across a codebase to use Claude Opus 4.5, replacing older Sonnet and Opus versions. Covers Anthropic API, AWS Bedrock, Google Vertex AI, and Azure AI Foundry platform-specific model identifiers, plus optional prompt adjustments for known Opus 4.5 behavioral differences like tool overtriggering and over-engineering.

Generated from the current SKILL.md.

Does this skill migrate Haiku models?
No. The skill explicitly skips Haiku models and only migrates from Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5.
Which platforms does this skill support?
The skill covers Anthropic API, AWS Bedrock, Google Vertex AI, and Azure AI Foundry with platform-specific model strings for each.
Does this skill update prompts automatically?
By default, it only updates model strings. Prompt adjustments for Opus 4.5 behavioral differences are applied only if the user explicitly requests them or reports a specific issue.
What happens to the context-1m beta header?
The skill removes the `context-1m-2025-08-07` beta header if present, since it is not yet supported with Opus 4.5.
Should I migrate the effort parameter?
The skill adds the effort parameter set to 'high' as part of the migration workflow, with configuration details available in references/effort.md.

Generated from the current SKILL.md. These answers refresh after source changes.