memory-doc

Document how CLAUDE.md and auto memory store project instructions across sessions.

1|Updated Feb 17, 2026
One-click install
npx skills add https://github.com/hlibkoval/claudemd --skill memory-doc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: memory-doc
Source: https://github.com/hlibkoval/claudemd/tree/main/skills/memory-doc
Command: npx skills add https://github.com/hlibkoval/claudemd --skill memory-doc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Claude Code needs a structured, consistent way to remember project-wide instructions and learnings across sessions. This guide explains how CLAUDE.md files and auto memory work together to keep your context intact and your team aligned.

Core Features & Use Cases

  • CLAUDE.md files provide persistent instructions at project, user, or organization scope.
  • Auto memory lets Claude write notes automatically to capture patterns, corrections, and workflows.
  • Memory organization with MEMORY.md indexes, .claude directory structure, and path-scoped rules for targeted loading.

Quick Start

Open MEMORY.md and CLAUDE.md to view memory guidance, then run /memory to explore and manage memory.

Frequently Asked Questions about memory-doc

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

FAQPage Schema
How does Claude Code memory management work across sessions?

Claude Code memory management uses CLAUDE.md files and auto memory to persist project-specific instructions across sessions. It loads these files at session start, reading topic files on demand to maintain context for project, user, and organization scopes.

What is the difference between project, user, and organization scopes in CLAUDE.md?

CLAUDE.md scopes define where persistent instructions apply: project scope targets a specific repository, user scope applies across personal sessions, and organization scope enforces rules for entire teams. They load hierarchically at session start based on their directory locations.

How do I set up auto memory in Claude Code?

To set up auto memory, open the MEMORY.md file to view memory guidance, then run the /memory command. This lets Claude automatically write notes to capture patterns, corrections, and workflows within the .claude directory structure.

Can I use path-scoped rules for targeted memory loading in Claude Code?

Yes, Claude Code supports path-scoped rules for targeted memory loading. The .claude directory organizes these rules and memory files, ensuring Claude only loads relevant instructions based on the specific file paths being accessed during a session.

What frontmatter metadata is required for CLAUDE.md files?

CLAUDE.md files require frontmatter metadata to define their scope and loading behavior. This metadata specifies how memory storage locations interact with the .claude directory, determining the load order and applicability of rules across project, user, and organization levels.

Why are my Claude Code instructions not persisting between sessions?

Instructions fail to persist when CLAUDE.md files are missing or placed outside the correct memory storage locations. Ensure your files are properly formatted with frontmatter metadata and reside in the .claude directory structure for proper session-start loading.