Study FAQ
How do I make shared CLAUDE.md guidance load reliably across teammates and worktrees?
Also asked as 2
- Where should shared Claude Code instructions and their imports live so teammates receive them?
- How can I verify that a checkout loads the intended CLAUDE.md files and shared references?
Answer
Keep team conventions and their required references in the shared repository. A teammate's clone does not contain your personal home-directory guidance or a gitignored file from another worktree.
Use a root CLAUDE.md or .claude/CLAUDE.md for shared project guidance, and a directory's CLAUDE.md for conventions owned by that subtree. Keep personal cross-project preferences in ~/.claude/CLAUDE.md. Use CLAUDE.local.md for appropriate private project notes and inspect its actual Git tracking state before assuming it is private.
An active @docs/testing-standards.md import resolves relative to the instruction file containing it. Moving that file can change the target. References inside code spans or fenced blocks remain literal examples. Commit the shared import targets with the guidance and keep chains shallow. Splitting text into imported files does not remove its context cost when loaded.
Claude Code loads instruction files in the working directory and its ancestors at launch. Nested instruction files load when relevant files in their subtree are accessed through supported reads, writes, or edits. The files are included as guidance rather than merged like scalar JSON settings.
Check the actual checkout, enabled sources, saved bytes and accessible import targets. Use /context all to inspect launch-loaded Memory files and /memory to manage instruction files. Nested files have on-demand loading behavior and need not appear in the launch list; inspect their loading notice or supported loading diagnostics.
Verify a representative task against the required convention. A menu entry, saved file, or loaded paragraph proves a different stage from compliance. Keep permission and sandbox policy in their supported enforcement controls.
Full explanation
Configure CLAUDE.md files with appropriate hierarchy, scoping, and modular organization
Learning material · CCAR-F
Read the full explanation