Skip to main content
skill CX Codex

memory-compaction — Claude Code skill: compacting memory files

memory-compaction is a Claude Code skill that shortens and cleans up bloated memory.md files. It triggers automatically when limits are exceeded or upon user request.

no license ★ 285 updated 2026-11-17

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add makushingu/harness-maxxing --skill memory-compaction -a claude-code
Open on GitHub

What memory-compaction does

This skill scans project memory.md files for outdated facts, duplicates, and redundant entries. It performs content summarization while enforcing a consistent structure with sections for rules, current state, and decisions. It ensures essential project context and commands remain while reducing line counts and file weight.

The tool restricts modifications exclusively to memory files, avoiding code or config files. It integrates with Git, allowing users to restore previous versions if necessary using maxxing-backup. It applies a default limit of 200 lines and 20 KB per file to maintain optimal context management.

What it helps with

  • remove memory file duplicates
  • shrink bloated memory.md files
  • resolve contradictory facts
  • reorganize context history

Example prompts for the agent

  • Clean up my project memory files
  • memory-compaction: shorten long memory files
  • remove duplicates from memory.md

How to install memory-compaction

1Skills CLI (Vercel)

npx skills add makushingu/harness-maxxing --skill memory-compaction -a claude-code

2Manually: put the files in place

~/.claude/skills/memory-compaction/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/memory-compaction/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about memory-compaction

How to install memory-compaction in Claude Code?

Run npx skills add makushingu/harness-maxxing --skill memory-compaction -a claude-code. Afterward, verify the setup by checking ~/.claude/skills/memory-compaction/SKILL.md.

What does memory-compaction do?

It identifies bloated memory.md files, removes duplicates and outdated information, and standardizes the document structure.

What are the requirements for memory-compaction?

Git must be installed on your system, as the skill utilizes it for creating backups and restoring previous versions of memory files.

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set21

The whole set →
seo-audit The seo-audit skill for Claude Code conducts a technical SEO audit of your website and generates a prioritized report. The agent checks indexing, meta tags, site speed, and internal links. CX Codex +1 ★ 285repo stars maxxing-mcp maxxing-mcp is a Claude Code skill that manages MCP servers in Harness Maxxing. It activates for server setup, connection checks, OAuth sign-in, and troubleshooting. CX Codex +1 ★ 285repo stars web-scraping The web-scraping skill for Claude Code extracts data from websites into Markdown, CSV, or JSON. It triggers when asked to collect or monitor web content. CX Codex +1 ★ 285repo stars memory memory is a Claude Code skill that saves lasting facts to the appropriate memory file after a substantial exchange. It handles decisions, preferences, and project changes, while skipping one-off questions. CX Codex +1 ★ 285repo stars maxxing-tasks maxxing-tasks is a Claude Code skill that reads and edits the Harness Maxxing task board. It activates for requests to add or close a task, or check what is due today. CX Codex +1 ★ 285repo stars maxxing-backup The maxxing-backup skill for Claude Code saves the agent's memory workspace to a private GitHub repository. It runs on a daily schedule or upon specific user commands. CX Codex +1 ★ 285repo stars maxxing-setup maxxing-setup is a Claude Code skill that guides Harness Maxxing setup from the server terminal. It kicks in after installation or when changing access, signing in to Claude, or configuring Telegram and backups. CX Codex +1 ★ 285repo stars video-motion-design video-motion-design is a Claude Code skill that generates motion design videos using Remotion and React. It creates animated intros, trailers, and explainers upon user request. CX Codex +1 ★ 285repo stars

Project sponsors

Companies that keep this analytics open