CCAR-F practice › Claude Code Configuration & Workflows · Question 46 of 105

Claude Code Configuration & Workflows

A monorepo has one root CLAUDE.md that three package teams keep editing to add build steps that apply only inside their own package. Merge conflicts on the file now happen weekly. What is the most appropriate fix?

Show answer and explanation

Answer: C — Move each team's steps into a CLAUDE.md inside that team's package directory

Directory-level CLAUDE.md files hold instructions that are true only for one subtree, on top of the project-level file. Each team then edits its own file, which removes the conflicts and keeps other packages' steps out of unrelated sessions. (A) keeps everyone editing one file. (B) uses user-level files, which are never shared through version control. (D) duplicates the project-wide content, and the copies will drift.