Claude認定 対策ノート

講座 › 分野2 Claudeモデル、プロンプト作成、コンテキストエンジニアリング

2.5 キャッシュブレークポイントと再利用可能なパッケージ化

配点 1.6%Cache Breakpoints and Reusable Packaging

繰り返す呼び出しで、安定した内容を先に、変わる内容を後に置く。キャッシュの区切りと、Skillによる再利用で、再利用を最大にする。

未読

キャッシュは先頭から順に効く

図解:キャッシュは先頭から順に効く

キャッシュの対象は、ツール、システム、メッセージの順の先頭部分です。ある層を変えると、その層と、それより後ろの層のキャッシュが無効になります。ツールの定義(名前、説明、引数)を変えると、キャッシュ全体が無効になります。

出典:Prompt caching
Prompt caching covers the full prefix: `tools`, `system`, and `messages` (in that order), up to and including the block designated with `cache_control`.
https://platform.claude.com/docs/en/build-with-claude/prompt-caching.m…(取得 2026-11-23)
出典:Tool use with prompt caching
so a change at one level invalidates that level and everything after it:
https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-use…(取得 2026-11-23)
出典:Prompt caching
Modifying tool definitions (names, descriptions, parameters) invalidates the entire cache
https://platform.claude.com/docs/en/build-with-claude/prompt-caching.m…(取得 2026-11-23)

安定したものを先に、変わるものを後に

図解:安定したものを先に、変わるものを後に

指示や規則文書などの変わらない内容を先に置き、その直後に区切りを置きます。利用者ごとの変わる内容は、区切りの後に置きます。会話が伸びる場合は、自動の区切りが最後のブロックに付き、進んでいきます。区切りは、前方の確認が20ブロックまでなので、1回で増えるブロックの数に注意します。

出典:Claude Certified Architect – Professional Exam Guide v1.1(12月7日発効・英語)
Applying cache breakpoints and modular or Skill-based packaging to a repeated prompt sequence so that stable content precedes dynamic content and reuse is maximized across the stated call pattern.
https://cc.sj-cdn.net/instructor/6nizmqk8tpzpfjvt6qmmav7rh/public/1794…(取得 2026-11-23)
出典:Prompt caching
The system automatically applies the cache breakpoint to the last cacheable block and moves it forward as conversations grow.
https://platform.claude.com/docs/en/build-with-claude/prompt-caching.m…(取得 2026-11-23)
出典:Prompt caching
**The lookback window is 20 blocks.** The system checks at most 20 positions for each breakpoint, counting the breakpoint itself as the first.
https://platform.claude.com/docs/en/build-with-claude/prompt-caching.m…(取得 2026-11-23)

Skillによる再利用

図解:Skillによる再利用

Skillは、起動時には名前と説明だけを読み込み、使う時に本文を読み込みます。何度も使う手順を、Skillにまとめると、文脈を節約できます。ただし、読み込んだ本文の1トークンごとが、会話の履歴と競合するので、簡潔さが要ります。

出典:Agent Skills overview
| **Level 1: Metadata** | Always (at startup) | \~100 tokens per Skill | `name` and `description` from YAML frontmatter |
https://platform.claude.com/docs/en/agents-and-tools/agent-skills/over…(取得 2026-11-23)
出典:Skill authoring best practices
once Claude loads it, every token competes with conversation history and other context.
https://platform.claude.com/docs/en/agents-and-tools/agent-skills/best…(取得 2026-11-23)
試験のポイント