From user-claude-md
Reference for the split structure of the user-level Claude Code context — ~/.claude/CLAUDE.md acts as an index that points at topic files in ~/.claude/context/. Use when editing, auditing, or reasoning about global Claude Code user configuration, or when the user asks where a particular piece of global context lives.
npx claudepluginhub danielrosehill/claude-code-plugins --plugin user-claude-mdThis skill uses the workspace's default tool permissions.
The user keeps their global Claude Code context split across two locations:
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Share bugs, ideas, or general feedback.
The user keeps their global Claude Code context split across two locations:
~/.claude/CLAUDE.md — short index. Identity, working-style preferences, input-method notes, and a pointer table. Should stay lean (ideally under ~200 lines).~/.claude/context/*.md — one file per topic. Authoritative home for reference-style content.The pointer table in ~/.claude/CLAUDE.md names each context file and its scope. Typical files:
| File | Purpose |
|---|---|
system-environment.md | OS, hardware, storage, network, LAN map |
development-environment.md | Languages, tools, containers, git |
mcp-usage.md | Guidance for calling specific MCP servers |
mcp-provisioning.md | Rules for adding new MCP connections |
file-organization.md | Repo layout, scripts, backups, conventions |
media-tools.md | Audio/video/image tooling |
troubleshooting.md | Known-issue playbooks |
contacts.md | Family and joint email addresses |
auth-and-security.md | SSH, GPG, API keys, sudo policy |
tools.md | Preferred CLI tools and utilities |
preferences.md | Locale, naming, formatting conventions |
git-rules.md | Commit/push policy |
Names and exact set may drift — always check the live pointer table.
~/.claude/CLAUDE.md.~/.claude/context/. Create a new file if none fits.~/.claude/projects/-home-daniel/memory/ via the auto-memory system, not this layer.Any time a file is added, removed, or meaningfully re-scoped in ~/.claude/context/, the pointer table at the top of ~/.claude/CLAUDE.md needs to match. Drift here is the most common bug in this layout.
/user-claude-md:chunk-user-claude — prune CLAUDE.md, push overflow into context/./user-claude-md:user-claude-health — audit the layout for bloat, drift, and duplication./user-claude-md:list-user-context — list context files with summaries./user-claude-md:edit-user-context <file> <instruction> — targeted edit, with pointer-table sync.~/.claude/ is typically not a git repo. These commands do not commit. Before destructive rewrites (e.g. chunk-user-claude), consider a manual backup: cp -r ~/.claude/CLAUDE.md ~/.claude/context ~/.claude/.backup-$(date +%Y%m%d)/.