Learn · Configuration & workflows · CCAR-F task 3.1

The CLAUDE.md hierarchy

Managed, user, project, local and subdirectory CLAUDE.md files: who shares each, when it loads, and why a teammate misses your rule.

Key ideas

Worked example: A teammate doesn't get your convention

You told Claude to use pnpm in ~/.claude/CLAUDE.md, and a new teammate's sessions keep running npm install. Move the line into ./CLAUDE.md and commit it; keep personal tweaks in ~/.claude or CLAUDE.local.md.

Exam traps

Official docs

Practise CCAR-F questions · Next lesson: Path-specific rules