memory-design

Decide memory placement across Claude Code's 4-tier hierarchy.

1|Updated Nov 15, 2025
One-click install
npx skills add https://github.com/racurry/neat-little-package --skill memory-design
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: memory-design
Source: https://github.com/racurry/neat-little-package/tree/main/plugins/box-factory/skills/memory-design
Command: npx skills add https://github.com/racurry/neat-little-package --skill memory-design

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Memory design governs how Claude Code loads and uses memory across enterprise, project, rules, and user levels, ensuring scalable and organized prompts.

Core Features & Use Cases

  • Memory hierarchy: Enterprise → Project → Project Rules → User memory → Project Local
  • Loading strategy: Memory is always loaded; skills load when relevant
  • Organization patterns: Path-specific rules and modular memory organization

Quick Start

Example user request: Decide where to place project-specific instructions within CLAUDE.md.

Frequently Asked Questions about memory-design

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I organize memory across enterprise, project, and user levels in Claude Code?

Memory design establishes a 4-tier hierarchy: enterprise memory loads first, followed by project memory, project-specific rules, user memory, and project-local memory. This loading order ensures scalable organization where instructions cascade from broad governance to task-specific guidance, with each tier overriding prior levels when needed.

Where should I place project-specific instructions in CLAUDE.md versus .claude/rules/?

CLAUDE.md holds project-wide context and workflows; .claude/rules/ organizes path-specific rules that apply conditionally based on file location. Use CLAUDE.md for general project knowledge and next_step decisions, and .claude/rules/ for directory-scoped constraints that Claude Code discovers recursively during memory loading.

What's the difference between memory locations in Claude Code's hierarchy?

Enterprise memory applies organization-wide; project memory is repository-scoped; project rules are path-specific; user memory is individual-level; project-local memory is session-scoped. Each tier narrows scope and increases specificity, enabling progressive disclosure where Claude Code loads only relevant memory for the current workflow.

How does Claude Code discover and load path-specific rules automatically?

Path-specific rules use recursive discovery: Claude Code scans .claude/rules/ directories up the file hierarchy and loads applicable rules based on your current working path. This mechanism supports modular memory organization, ensuring project-wide rules apply globally while subdirectory rules override them for localized workflows.

Can I use memory design for multi-team enterprise projects?

Yes. Memory design supports enterprise-level organization through its 4-tier hierarchy: enterprise memory sets governance for all teams, project memory isolates repository-level workflows, and path-specific rules let teams within the same project apply localized constraints without conflicts.