Opus 4 5 Migration

Migrerar Claude API-modellsträngar och prompter från Sonnet 4.x / Opus 4.1 till Opus 4.5

av gotalab · gotalab/skillport

Testad · Fungerar ★ 8.8/10

Opus 4 5 Migration — Migrerar Claude API-modellsträngar och prompter från Sonnet 4.x / Opus 4.1 till Opus 4.5

Vad den gör

Uppdaterar en codebase's Claude model strings, beta headers, och API config to target Opus 4.5 across Anthropic API, Bedrock, Vertex, och Azure. Utlöses when the user asks to migrate or update prompts, code, or API calls from Sonnet 4.0/4.5 or Opus 4.1 to Opus 4.5; explicitly excludes Haiku. Also supplies optional prompt-adjustment snippets for known Opus 4.5 behavioral differences, applied only on user request.

Testrapport

Hämtade SKILL.md och båda referenserna via raw GitHub (effort.md and prompt-snippets.md each HTTP 200). Frontmatter har valid name+description; inga scripts, hardcoded paths, or security smells. För output skrev jag original.py (a Sonnet 4.5 messages.create call carrying a context-1m-2025-08-07 beta header), then a baseline naive migration vs a strict skill-followed migration. Baslinjen uppdaterade only the model string and left the unsupported 1M beta header in place; the skill artifact additionally removed that header with the prescribed comment and added the effort config (betas=["effort-2025-11-24"], output_config={"effort":"high"}) — en konkret, korrekt improvement. Jag kunde not independently verify Anthropic's actual effort-2025-11-24 beta API shape, so output is scored real-but-narrow rather than perfect.

Testad: 2026-07-21 · Claude Code 2.x (agent harness)

Installation

git clone --depth 1 https://github.com/gotalab/skillport.git /tmp/opus-4-5-migration-src
mkdir -p ~/.claude/skills
cp -R /tmp/opus-4-5-migration-src/.skills/experimental/opus-4-5-migration ~/.claude/skills/opus-4-5-migration
# Pure-instruction skill: SKILL.md + references/effort.md + references/prompt-snippets.md. No deps, no scripts, no API keys needed to install.
# Note: skill lives under .skills/experimental/ in the repo.

Kommandon och exempelprompter

  • /opus-4-5-migrationMigrerar Claude API-modellsträngar och prompter från Sonnet 4.x / Opus 4.1 till Opus 4.5

Skills triggas av vanliga förfrågningar — inga kommandon att memorera. Efter installationen aktiverar prompter som dessa skillen (på engelska):

  • Migrate this codebase to use Opus 4.5
  • Update our API calls from Sonnet 4 to Opus 4.5
  • Fix prompt behavior differences after the Opus upgrade