jpskill.com
🛠️ 開発・MCP Anthropic公式 🔴 エンジニア向け 👤 エンジニア・AI開発者

🔄 Claude Opus 4.5 への移行ヘルパー

claude-opus-4-5-migration

既存の Claude Sonnet / Opus 4.1 を使ったコード・プロンプトを Opus 4.5 に自動移行するSkill。

⏱ RAG構築 1週間 → 1日

📺 まず動画で見る(YouTube)

▶ 【有料級】Claudeの使い方がわからない人、これで全部解決します【Anthropic Academy】 ↗

※ jpskill.com 編集部が参考用に選んだ動画です。動画の内容と Skill の挙動は厳密には一致しないことがあります。

📜 元の英語説明(参考)

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.

🇯🇵 日本人クリエイター向け解説

一言でいうと

既存の Claude Sonnet / Opus 4.1 を使ったコード・プロンプトを Opus 4.5 に自動移行するSkill。

日本人がよく使う場面
・社内 LLM プロダクトのモデル更新 ・コスト最適化のためのモデル切替 ・古い Sonnet 用プロンプトの再チューニング

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-17
取得日時
2026-05-17
同梱ファイル
3

💬 こう話しかけるだけ — サンプルプロンプト

  • Claude Opus 4.5 への移行ヘルパー を使って、最小構成のサンプルコードを示して
  • Claude Opus 4.5 への移行ヘルパー の主な使い方と注意点を教えて
  • Claude Opus 4.5 への移行ヘルパー を既存プロジェクトに組み込む方法を教えて

これをClaude Code に貼るだけで、このSkillが自動発動します。

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Opus 4.5 移行ガイド

Sonnet 4.0、Sonnet 4.5、または Opus 4.1 から Opus 4.5 へのワンショット移行です。

移行ワークフロー

  1. コードベースでモデル文字列と API 呼び出しを検索します。
  2. モデル文字列を Opus 4.5 に更新します(プラットフォーム固有の文字列は下記を参照してください)。
  3. サポートされていないベータヘッダーを削除します。
  4. effort パラメータを "high" に設定して追加します(references/effort.md を参照してください)。
  5. 行われたすべての変更を要約します。
  6. ユーザーに次のように伝えます。「Opus 4.5 で何か問題が発生した場合は、お知らせください。プロンプトの調整をお手伝いできます。」

モデル文字列の更新

コードベースが使用しているプラットフォームを特定し、それに応じてモデル文字列を置き換えてください。

サポートされていないベータヘッダー

context-1m-2025-08-07 ベータヘッダーが存在する場合は削除してください。Opus 4.5 ではまだサポートされていません。その旨をコメントに残してください。

# Note: 1M context beta (context-1m-2025-08-07) not yet supported with Opus 4.5

ターゲットモデル文字列 (Opus 4.5)

プラットフォーム 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 には、以前のモデルとは異なる既知の動作上の違いがあります。これらの修正は、ユーザーが明示的に要求した場合、または特定の問題を報告した場合にのみ適用してください。 デフォルトでは、モデル文字列のみを更新してください。

統合ガイドライン:スニペットを追加する際は、単にプロンプトに追記するのではなく、慎重に統合してください。

  • XML タグ(例: <code_guidelines><tool_usage>) を使用して追加内容を整理します。
  • 既存のプロンプトのスタイルと構造に合わせます。
  • スニペットを論理的な場所に配置します(例: コーディングガイドラインを他のコーディング指示の近くに配置します)。
  • プロンプトがすでに XML タグを使用している場合は、適切な既存のタグ内に新しいコンテンツを追加するか、一貫性のある新しいタグを作成します。

1. ツール過剰トリガー

Opus 4.5 はシステムプロンプトへの応答性が向上しています。以前のモデルでトリガー不足を防いでいた攻撃的な表現が、過剰トリガーを引き起こす可能性があります。

適用する場合:ユーザーがツールが頻繁にまたは不必要に呼び出されていると報告した場合。

見つけて緩和する

  • CRITICAL: → 削除または緩和
  • You MUST...You should...
  • ALWAYS do XDo X
  • NEVER skip...Don't skip...
  • REQUIRED → 削除または緩和

ツールトリガーの指示にのみ適用してください。その他の強調表現はそのままにしてください。

2. 過剰な設計の防止

Opus 4.5 は、余分なファイルを作成したり、不必要な抽象化を追加したり、要求されていない柔軟性を構築したりする傾向があります。

適用する場合:ユーザーが不要なファイル、過剰な抽象化、または要求されていない機能を報告した場合。references/prompt-snippets.md からスニペットを追加してください。

3. コード探索

Opus 4.5 は、コードの探索に関して過度に保守的であり、ファイルを読まずに解決策を提案する場合があります。

適用する場合:ユーザーがモデルが関連コードを検査せずに修正を提案していると報告した場合。references/prompt-snippets.md からスニペットを追加してください。

4. フロントエンドデザイン

適用する場合:ユーザーがフロントエンドデザイン品質の向上を要求した場合、または一般的な見た目の出力を報告した場合。

references/prompt-snippets.md からフロントエンドの美学に関するスニペットを追加してください。

5. 思考の感度

拡張思考が有効になっていない場合(デフォルト)、Opus 4.5 は「think」という単語とその派生語に特に敏感です。拡張思考は、API リクエストに thinking パラメータが含まれている場合にのみ有効になります。

適用する場合:拡張思考が有効になっていない(リクエストに thinking パラメータがない)状態で、ユーザーが「thinking」に関連する問題を報告した場合。

「think」を「consider」、「believe」、「evaluate」などの代替語に置き換えてください。

参照

追加する各スニペットの全文については、references/prompt-snippets.md を参照してください。

effort パラメータの設定については、references/effort.md を参照してください(ユーザーが要求した場合のみ)。

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Opus 4.5 Migration Guide

One-shot migration from Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5.

Migration Workflow

  1. Search codebase for model strings and API calls
  2. Update model strings to Opus 4.5 (see platform-specific strings below)
  3. Remove unsupported beta headers
  4. Add effort parameter set to "high" (see references/effort.md)
  5. Summarize all changes made
  6. Tell the user: "If you encounter any issues with Opus 4.5, let me know and I can help adjust your prompts."

Model String Updates

Identify which platform the codebase uses, then replace model strings accordingly.

Unsupported Beta Headers

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

Target Model Strings (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 Strings to Replace

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
Opus 4.1 claude-opus-4-1-20250422 anthropic.claude-opus-4-1-20250422-v1:0 claude-opus-4-1@20250422

Do NOT migrate: Any Haiku models (e.g., claude-haiku-4-5-20251001).

Prompt Adjustments

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:

  • Use XML tags (e.g., <code_guidelines>, <tool_usage>) to organize additions
  • Match the style and structure of the existing prompt
  • Place snippets in logical locations (e.g., coding guidelines near other coding instructions)
  • If the prompt already uses XML tags, add new content within appropriate existing tags or create consistent new ones

1. Tool Overtriggering

Opus 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 soften
  • You MUST...You should...
  • ALWAYS do XDo X
  • NEVER skip...Don't skip...
  • REQUIRED → remove or soften

Only apply to tool-triggering instructions. Leave other uses of emphasis alone.

2. Over-Engineering Prevention

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.

3. Code Exploration

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.

4. Frontend Design

Apply if: User requests improved frontend design quality or reports generic-looking outputs.

Add the frontend aesthetics snippet from references/prompt-snippets.md.

5. Thinking Sensitivity

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."

Reference

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).

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。