演習 › 全問
問題 Q3-11
66 / 120分野3・パス固有ルール
まだ解いていません。
CLAUDE.md が長くなり、API の実装にしか関係のない規約が、全作業の文脈を圧迫している。最も適切な対応はどれか。
正解は B
- A削除すると、API を編集するときに守られません。
- B正解です。一部にしか要らない指示は、パスつきのルールに移すと、必要なときだけ読み込まれます。
- C複製すると、保守の手間が増え、文脈も重くなります。
- D長くすると、文脈を圧迫するだけです。
考え方:一部にしか要らない指示は、パスつきのルールに移す。
出典:How Claude remembers your project
Move instructions that matter for only part of the codebase into path-scoped rules, which load only when Claude works with matching files.https://code.claude.com/docs/en/memory.md(取得 2026-11-20)
出典:Claude Certified Architect – Foundations Exam Guide v1.0(英語)
Choosing path-specific rules over subdirectory CLAUDE.md files when conventions must apply to files spread across the codebasehttps://everpath-course-content.s3-accelerate.amazonaws.com/instructor…(取得 2026-11-20)