claude-code-project-memory
Installation
SKILL.md
Claude Code Project Memory (Jan 2026)
Configure CLAUDE.md project memory so Claude Code gets stable, scoped instructions across sessions while keeping token cost low.
Quick Reference
| Memory Type | Typical Location | Purpose |
|---|---|---|
| Managed policy | OS-dependent (see official docs) | Organization-wide standards (security, compliance) |
| Project memory | ./CLAUDE.md or ./.claude/CLAUDE.md |
Shared project context and conventions |
| Project rules | ./.claude/rules/*.md |
Modular, topic-focused rules (testing, security, style) |
| User memory | ~/.claude/CLAUDE.md |
Personal preferences across projects |
| Project memory (local) | ./CLAUDE.local.md (git-ignored) |
Local-only, project-specific preferences |
How Loading Works (High Level)
- Recursive loading: from the current working directory up to (but not including) filesystem root (
/). - On-demand loading: nested
CLAUDE.mdfiles under the cwd are loaded only when Claude reads files in those subtrees. - Imports:
@path/to/filepulls in additional context (max depth: 5;~supported).