claude-memory

Optimize Claude.md memory files and modular rules for Claude Code projects.

Updated Apr 25, 2026
One-click install
npx skills add https://github.com/DevQwiet/my-skills --skill claude-memory-devqwiet
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: claude-memory
Source: https://github.com/DevQwiet/my-skills/tree/main/claude-memory
Command: npx skills add https://github.com/DevQwiet/my-skills --skill claude-memory-devqwiet

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill optimizes Claude.md memory files and modular rules, improving the context awareness and efficiency of Claude Code projects.

Core Features & Use Cases

  • Memory File Optimization: Clean and organize Claude.md files to enhance context window performance.
  • Modular Rules Management: Use the .claude/rules/ directory to create focused, scoped rules for project-specific concerns.
  • Use Cases: Ideal for developers and project managers who want to streamline Claude Code's interaction and maintain an efficient project structure.

Quick Start

Run /claude-memory init to create a new Claude.md with essential sections.

Frequently Asked Questions about claude-memory

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

FAQPage Schema
How do I optimize Claude.md memory files for better Claude Code context awareness?

Optimize Claude.md memory files by cleaning and organizing content structure to enhance context window performance. Run /claude-memory init to create a new file with essential sections, then manage file hierarchy and path-scoped rules to maintain efficient project context.

What is the best way to manage modular rules in a Claude Code project?

Manage modular rules by using the .claude/rules/ directory to create focused, scoped rules for project-specific concerns. This approach separates path-scoped rules from the main memory file, improving Claude Code's interaction efficiency and maintaining a streamlined project structure.

Do I need a specific environment to use Claude.md file hierarchy and path-scoped rules?

Yes, managing Claude.md file hierarchy and path-scoped rules requires a Claude Code environment and associated tools. The Skill operates within this specific ecosystem to handle content structure, file hierarchy, and best practices for project context management.

Can I restructure an existing Claude.md file or only initialize new ones?

You can both initialize and restructure. Run /claude-memory init to create a new Claude.md file with essential sections, or use the Skill to clean and organize existing memory files, optimizing their content structure and path-scoped modular rules for better performance.

Why does Claude Code lose project context when working with large memory files?

Large, unoptimized Claude.md memory files consume excessive context window space, degrading project context awareness. Optimizing these files by cleaning content structure and moving project-specific concerns to path-scoped modular rules in .claude/rules/ resolves this inefficiency.