講座 › 分野2 アプリケーションと統合
2.6 構成管理
CLAUDE.mdとsettings.jsonは「誰に効くか」で置き場所を選ぶ。モデルは固定のIDで、プロンプトとプラグインも版を管理する。
CLAUDE.mdの置き場所 読了

CLAUDE.mdには4つの置き場所があります。組織全体の方針(IT部門が管理)、自分だけの全プロジェクト共通(~/.claude/CLAUDE.md)、チームで共有するプロジェクト(./CLAUDE.md)、自分だけのプロジェクト用(CLAUDE.local.md、gitに入れない)です。チームの決まりはプロジェクトのCLAUDE.mdに書いてgitで共有します。1ファイルは200行以内を目安にします。
出典:Memory (CLAUDE.md)
Organization-wide instructions managed by IT/DevOps | Company coding standards, security policieshttps://code.claude.com/docs/en/memory.md(取得 2026-11-17)
出典:Memory (CLAUDE.md)
For private per-project preferences that shouldn't be checked into version control, create a `CLAUDE.local.md` at the project root.https://code.claude.com/docs/en/memory.md(取得 2026-11-17)
出典:Memory (CLAUDE.md)
target under 200 lines per CLAUDE.md filehttps://code.claude.com/docs/en/memory.md(取得 2026-11-17)
settings.jsonの優先順位 読了

同じ設定が複数の場所にあるときは、上の段の値が使われます。上から、組織の管理設定、起動時のコマンドラインの指定、自分だけのプロジェクト設定(.claude/settings.local.json)、チームで共有するプロジェクト設定(.claude/settings.json)、自分の全体設定(~/.claude/settings.json)です。チームの権限やフックは、共有のプロジェクト設定に書いてgitに入れます。
出典:Settings
Settings precedence, highest first: managed settings, command line, project local, shared project, user.https://code.claude.com/docs/en/settings.md(取得 2026-11-17)
出典:Settings
Commit `.claude/settings.json` so everyone who clones the repository gets the same permissions, hooks, and plugin settings.https://code.claude.com/docs/en/settings.md(取得 2026-11-17)
モデルの版を固定する 読了

モデルIDは、固定された版のモデルを指します。同じIDを使う限り、モデルの中身は変わりません。一方、古い世代の短い別名は、最新の日付付きの版を指す便利な名前で、指す先が変わることがあります。本番では、固定のIDを使うと挙動がぶれません。
出典:Model IDs and versions
When you use a model ID in an API request, the underlying model remains constant for the lifetime of that ID.https://platform.claude.com/docs/en/about-claude/models/model-ids-and-…(取得 2026-11-17)
出典:Model IDs and versions
An alias such as `claude-sonnet-4-5` is a convenience pointer that resolves to the most recent dated snapshot for that minor version.https://platform.claude.com/docs/en/about-claude/models/model-ids-and-…(取得 2026-11-17)
プロンプトとプラグインの版の管理 読了

プロンプトは、テストと改善を繰り返して育てるものです。変更ごとに評価を回せるよう、プロンプトもコードと同じように版を管理します。プラグインが別のプラグインに依存するときは、^2.0 のような版の範囲を指定できます。指定しないと、マーケットプレイスの最新版に追従します。
出典:Define success criteria and build evaluations
This cycle is central to prompt engineering.https://platform.claude.com/docs/en/test-and-evaluate/develop-tests.md(取得 2026-11-17)
出典:Plugin dependencies
Each dependency tracks the latest version its marketplace provides unless you declare a version constrainthttps://code.claude.com/docs/en/plugins/dependencies.md(取得 2026-11-17)
- 設定の優先順位:管理設定 > コマンドライン > ローカルのプロジェクト > 共有のプロジェクト > ユーザー。
出典:Settings
A key set at a higher level overrides the same key set lower down.
https://code.claude.com/docs/en/settings.md(取得 2026-11-17) - 個人用の上書きは settings.local.json や CLAUDE.local.md へ。どちらもgitに入れない。
出典:Settings
Each teammate can still override it for themselves in their own `.claude/settings.local.json`
https://code.claude.com/docs/en/settings.md(取得 2026-11-17)