Interpretive guidance for Claude Code memory management system. Helps choose between memory locations, organize modular rules, use path-specific rules, and avoid common pitfalls. Use when setting up CLAUDE.md files, organizing .claude/rules/ directories, or deciding where to put project instructions.
Inherits all available tools
Additional assets for this skill
This skill inherits all available tools. When active, it can use any tool Claude has access to.
anti-patterns.mdfile-imports.mdorganization-patterns.mdpath-specific-rules.mdInterpretive guidance for organizing Claude Code's memory system. The 4-tier memory hierarchy and .claude/rules/ system are post-training knowledge—fetch official docs when organizing memory.
| If you need to... | Go to... |
|---|---|
| Use path-specific conditional rules | path-specific-rules.md |
| Set up file imports with @syntax | file-imports.md |
| Choose an organization pattern | organization-patterns.md |
| Avoid common mistakes | anti-patterns.md |
| Validate your setup | Quality Checklist below |
Fetch when organizing memory (post-training knowledge):
Claude Code loads memory in this order (highest to lowest priority):
./CLAUDE.md or ./.claude/CLAUDE.md)./.claude/rules/*.md)~/.claude/CLAUDE.md)./CLAUDE.local.md, gitignored)Key insight: Higher tiers provide foundation, lower tiers add specificity. All files load automatically at session start.
Recursive search: Claude starts in cwd, recurses UP to root, reading all CLAUDE.md and CLAUDE.local.md files found.
Nested discovery: CLAUDE.md files in subtrees under cwd are discovered but only loaded when Claude reads files in those subtrees.
Location: ./.claude/rules/ (project level) or ~/.claude/rules/ (user level)
Behavior: All .md files discovered recursively, loaded with same priority as .claude/CLAUDE.md
Use Project Memory (CLAUDE.md) when:
Use Project Rules (.claude/rules/) when:
Use User Memory (~/.claude/CLAUDE.md) when:
Use Project Local (CLAUDE.local.md) when:
Keep single CLAUDE.md when:
Split into .claude/rules/ when:
| Put In... | When... |
|---|---|
| Memory (rules/) | Always relevant in this project, loads at session start |
| Skills | Loads progressively when topics arise, 20+ lines expertise |
| Single CLAUDE.md | Simple project, <200 lines, interconnected content |
The boundary: Memory is "always loaded context", Skills are "load when relevant"
Memory location:
Rules directory:
Path-specific rules: See path-specific-rules.md
File imports: See file-imports.md