compact-memory

Official

Keep memory lean and queryable.

AuthorRoentek
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It prevents Claude Code sessions from getting slower and noisier by cleaning up stale and redundant memory artifacts while preserving important facts for future use.

Core Features & Use Cases

  • Archive old memory sessions: Compresses .claude/rules/memory-sessions.md by keeping the 4 most recent entries and moving entries older than 30 days into a clearly labeled ## Archive block.
  • Prune dead memory decisions: Audits .claude/rules/memory-decisions.md to remove entries tied to tools, files, or patterns that no longer exist in the project.
  • Sync durable facts to the memory graph: Extracts 3–5 high-signal project facts and writes them as entities to the memory MCP graph via mcp__memory__create_entities so future sessions can query them without loading the full files.

Quick Start

Run /compact-memory to perform a full memory hygiene cycle, report what changed, and sync key facts to the memory MCP graph.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: compact-memory
Download link: https://github.com/Roentek/Claude_Code_Boilerplate_Framework/archive/main.zip#compact-memory

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.