HOW-TO GUIDE
How to keep your team's project context in CLAUDE.md files in Git
Based on a guide by Anthropic on the Claude Code Docs · Nov 20, 2026
You'll end with: A CLAUDE.md in the project that Claude reads at the start of every session, shared with the team through version control.
Why it's worth having: Standing facts stop being re-explained in chat, and every change to them is reviewed in Git like any other file.
At a glance
WHO IT'S FOR
Engineering leads, project engineers, and analysts who keep work files and scripts in a Git repository.
LEVEL
Beginner
COST
Free to read. The method needs Claude Code and a Git repository.
YOU NEED
Claude Code · A Git repository for the project
The method, in short
- 1Run /init in the project so Claude drafts a starting CLAUDE.md from what it finds, then edit it.
- 2Keep it to facts Claude needs every session, such as commands, conventions, and layout, in under 200 lines.
- 3Move multi-step procedures, or rules for one part of the project, into a skill or a path-scoped rule.
- 4Open /memory to view and edit the notes Claude saves on its own from your corrections.
Read the full guide from Anthropic on the Claude Code Docs
The guide covers file locations, imports, path-scoped rules, AGENTS.md, and auto memory.