/claude-code-docs:memory-referencefrom claude-code-docs
Claude Code memory (CLAUDE.md) configuration reference. Use when setting up project memory, understanding memory hierarchy, or configuring persistent instructions.
Ships in claude-code-docs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Memory files (CLAUDE.md) provide persistent instructions that Claude loads every session.
| Priority | Location | Purpose | Shared With |
|---|---|---|---|
| 1 (highest) | Enterprise policy | Organization rules | All users |
| 2 | ./CLAUDE.md | Project instructions | Team via git |
| 3 | ./.claude/CLAUDE.md | Alternative project location | Team via git |
| 4 | ./.claude/rules/*.md | Modular project rules | Team via git |
| 5 | ~/.claude/CLAUDE.md | Personal preferences | Just you |
| 6 | ./CLAUDE.local.md | Personal project prefs | Just you (gitignored) |
/Library/Application Support/ClaudeCode/CLAUDE.md # Enterprise (macOS)
./CLAUDE.md # Project root
./.claude/CLAUDE.md # Alternative project
./.claude/rules/*.md # Modular rules
~/.claude/CLAUDE.md # User global
~/.claude/rules/*.md # User modular rules
./CLAUDE.local.md # Project personal
# Project Instructions
## Code Style
- Use TypeScript for all new files
- Prefer functional components in React
- Use ESLint and Prettier for formatting
## Commands
- Build: `npm run build`
- Test: `npm test`
- Lint: `npm run lint`
## Architecture
- Components in `src/components/`
- API routes in `src/api/`
- Types in `src/types/`
Use @path/to/file to import other files:
# Project Memory
See @README.md for project overview.
See @package.json for available commands.
## Team Guidelines
@docs/guidelines.md
## Personal Preferences
@~/.claude/my-prefs.md
Import rules:
Organize rules by topic:
.claude/rules/
├── code-style.md
├── testing.md
├── security.md
└── api-design.md
Use frontmatter to scope rules:
---
paths: src/api/**/*.ts
---
# API Development Rules
- All endpoints must validate input
- Use consistent error response format
- Document with OpenAPI comments
| Pattern | Matches |
|---|---|
**/*.ts | All TypeScript files |
src/**/* | All files under src/ |
*.md | Markdown in root |
src/components/*.tsx | React components |
src/**/*.{ts,tsx} | TS and TSX in src/ |
| Command | Description |
|---|---|
/memory | View/edit memory files |
/init | Bootstrap CLAUDE.md |
/memory user | Edit user memory |
/memory project | Edit project memory |
# Good
- Use 2-space indentation
- Name React components with PascalCase
# Bad
- Format code properly
- Use good naming
# Build Commands
- `npm run build` - Production build
- `npm run dev` - Development server
# Test Commands
- `npm test` - Run all tests
- `npm test:watch` - Watch mode
Review and update memory as project evolves.
# MyApp Project
## Overview
React + TypeScript web application with Express backend.
## Quick Commands
- Dev: `npm run dev`
- Test: `npm test`
- Build: `npm run build`
- Deploy: `npm run deploy`
## Code Style
- TypeScript strict mode
- Functional React components
- CSS Modules for styling
- Jest for testing
## Architecture
- `src/client/` - React frontend
- `src/server/` - Express backend
- `src/shared/` - Shared types
## Common Patterns
- Use `useQuery` for API calls
- Validate props with Zod schemas
- Log errors to Sentry
## Git Workflow
- Feature branches from `main`
- Squash merge PRs
- Conventional commit messages
Share rules across projects:
# Symlink shared rules
ln -s ~/shared-rules .claude/rules/shared
# Symlink specific file
ln -s ~/company-security.md .claude/rules/security.md
Symlinks are followed during loading.
# View loaded memory
/memory
# Check what files are loaded
# Memory command shows all active files
For complete documentation, see:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dunc4nj/entropy-plugins --plugin claude-code-docs7 skills in this plugin
/hooks-referenceClaude Code hooks configuration reference. Use when creating hooks, understanding hook events (PreToolUse, PostToolUse, Stop, SessionStart, etc.), debugging hook behavior, or implementing automation./mcp-referenceClaude Code MCP (Model Context Protocol) server configuration reference. Use when adding MCP servers, configuring external tools, or integrating third-party services./plugins-referenceClaude Code plugins configuration reference. Use when creating plugins, bundling commands/agents/hooks/skills/MCP servers, setting up marketplaces, or distributing extensions.Other plugins' skills for the same job