Claude User Context Pattern
A depersonalised reference pattern for organising user-level (~/.claude/) context for Claude Code: a lean CLAUDE.md that routes to topical context/*.md files.
About This Project
Claude-User-Context-Pattern is a documented reference structure for organising the user-level configuration layer of Claude Code, the agentic coding tool from Anthropic. The top-level ~/.claude/CLAUDE.md file is loaded into every session, so the project keeps it deliberately small, containing identity, an autonomy directive, output style, naming conventions, and plan-handling rules. Topical material such as system environment, development tooling, MCP usage and provisioning rules, git policy, media tools, security policy, contacts, and troubleshooting notes is moved into separate Markdown files under ~/.claude/context/. The top-level file indexes these files with one-line descriptions, so the assistant reads only the files relevant to a given task. The repository is a worked example of one person's setup, depersonalised by replacing specifics with angle-bracket placeholders and by omitting secrets, credentials, project-level CLAUDE.md patterns, and plugin or skill definitions.
The approach relies on plain Markdown, git-tracked files, and a routing index rather than any code or runtime dependency. Its stated benefits are reduced context-window consumption, since topical files load only on demand, easier diffing and review of narrow files compared with a single large file, and the ability to set priority markers on individual context files so the assistant consults them eagerly. The project is released under the MIT licence.
The project is most useful to developers who use Claude Code across several machines or on a daily basis and want a maintainable way to store persistent preferences and environment details. It may also suit those who want a template for setting up a new workstation quickly, or who are interested in how to balance assistant autonomy against confirmation prompts through a single configurable directive.