infra:memory

Manage and optimize Claude Code memory files like CLAUDE.md and .claude/rules/.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/atournayre/claude-personas --skill infra-memory
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: infra:memory
Source: https://github.com/atournayre/claude-personas/tree/main/infra/skills/memory
Command: npx skills add https://github.com/atournayre/claude-personas --skill infra-memory

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the creation and optimization of Claude Code's memory files (CLAUDE.md or .claude/rules/), ensuring efficient context management and clear project guidance.

Core Features & Use Cases

  • Memory Strategy Guidance: Helps choose between a single CLAUDE.md or a modular .claude/rules/ structure based on project size and complexity.
  • Hierarchy & Scoping: Explains file loading priorities and how to use path-scoping for targeted rules.
  • Content Structure: Defines the WHAT-WHY-HOW framework for organizing memory file content.
  • Use Case: When starting a new project, use this Skill to set up the optimal memory file structure and content organization from the outset.

Quick Start

Use the infra:memory skill to create a new CLAUDE.md file for the current project.

Frequently Asked Questions about infra:memory

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

FAQPage Schema
How do I set up Claude Code memory files for a new project?

Setting up Claude Code memory files involves creating a CLAUDE.md file or a modular .claude/rules/ structure to establish project context. This Skill guides initial strategy decisions based on project size, ensuring efficient context management and clear guidance from the outset.

What is the best way to structure CLAUDE.md content for contextual awareness?

Structuring CLAUDE.md content uses the WHAT-WHY-HOW framework to organize context and rules clearly. This approach defines what the project is, why specific rules exist, and how to execute tasks, optimizing Claude Code's contextual awareness.

When should I use a single CLAUDE.md file versus modular .claude/rules/ structures?

Choose a single CLAUDE.md for smaller projects or a modular .claude/rules/ structure for larger, complex codebases. This decision impacts file hierarchy, loading priorities, and path-scoped rules for targeted contextual guidance.

How does path-scoping work for Claude Code rules?

Path-scoping in Claude Code rules allows targeted application of instructions based on file hierarchy and directory paths. This ensures specific guidelines are loaded only when relevant files are accessed, optimizing context management.

What are common anti-patterns when managing Claude Code memory files?

Common anti-patterns in Claude Code memory management include poorly structured content, ignoring file hierarchy, and overloading a single CLAUDE.md with unscoped rules. This Skill identifies these issues to maintain clear, efficient project guidance.

Can I optimize existing CLAUDE.md files in a current codebase?

Optimizing existing CLAUDE.md files in a current codebase involves reorganizing content using the WHAT-WHY-HOW framework and implementing path-scoped rules. This Skill addresses file hierarchy and best practices for existing project structures.