All skills
davila7 avatar

/claude-opus-4-5-migration

@0f4666f

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/davila7/claude-code-templates/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

1 warning1d5 checks · Risk SAFE
  • Gen Agent Trust Hub1d

    The skill facilitates the migration of codebases and system prompts to the Claude Opus 4.5 model. It provides guidance on updating model strings, implementing new API parameters like 'effort', and adjusting prompt instructions to account for behavioral changes in the new model. While the skill is functionally safe, it operates by reading and modifying a user's codebase, which is a standard surface for indirect prompt injection.

  • Socket1d

    No alerts

  • Snyk1d

    Risk: LOW · No issues

  • Runlayer7mo

    3/3 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

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

Last checked against GitHub 17 hours ago.

Activeupdated 10 months ago

README badge

README badge for davila7/claude-code-templates/claude-opus-4-5-migration