memory-and-rules

Installation
SKILL.md

Claude Code Memory and Rules Reference

Claude Code has two kinds of persistent memory:

  • Auto memory — Claude's self-written notes at ~/.claude/projects/<project>/memory/
  • CLAUDE.md files — User-written instructions at multiple hierarchy levels

Both load into context at session start. More specific instructions take precedence over broader ones.


Memory Hierarchy

Memory locations load in priority order (highest priority first):

  1. Managed policy — Organization-wide (deployed by IT)
    • macOS: /Library/Application Support/ClaudeCode/CLAUDE.md
    • Linux: /etc/claude-code/CLAUDE.md
  2. User memory — Personal, all projects: ~/.claude/CLAUDE.md
Related skills

More from jamie-bitflight/claude_skills

Installs
9
GitHub Stars
44
First Seen
Mar 29, 2026