makushingu/harness-maxxing/memory-compaction

Claude Code and agent skill by makushingu/harness-maxxing

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Compact memory.md files (global, projects, topics, agents) that became long, redundant, contradictory or outdated. Run by the daily "Memory compaction" job; use it on demand when the user asks to clean up or shorten memory.

Install

npx vskill@latest install makushingu/harness-maxxing/memory-compaction

SKILL.md

The same SKILL.md was published earlier as makushingu/harness-maxxing/memory-compaction.

Memory compaction

Goal: memory files stay short, consistent and current. Most days there is nothing to do; that is the expected outcome.

Procedure

  1. Run maxxing memory: it lists every memory file (memory.md, projects/*/memory.md,

projects/*/topics/*/memory.md, projects/*/topics/*/agents/*/memory.md) with its line count and weight, and the limit set in Settings -> Memory (default 100 lines and 10 KB, 1 KB for 10 lines; none = no limit). A limit given in the prompt wins.

  1. Compact a file only if at least one is true:
  • it has more lines than the limit or is heavier (<- too heavy: few lines but very long bullets; without a

limit, larger than ~20 KB or ~400 lines). Weight matters as much as lines: a memory file is loaded by every session of its folder and sent to Claude again in full each time it changes;

  • facts contradict each other (keep the most recent);
  • duplicates or near-duplicates;
  • clearly outdated content (finished work long ago, old states superseded by newer ones).
  1. When compacting:
  • the result must fit the limit, in lines and in weight: aim for ~80 % of it so the file has room to grow;
  • a heavy file is made of long bullets: cut each to one or two lines (the fact, the decision, the path or command

still in use) and drop the narrative (lists of commits, test benches, step-by-step, what was tried). When a report file next to the memory already holds the detail, keep its path;

  • reorder into this structure (skip empty sections), most important first inside each:

# <title> line kept as is, then ## Rules & preferences, ## Current state, ## Decisions, ## References (paths, URLs, commands), ## Context (summarised history);

  • merge duplicates, settle contradictions (latest wins), keep dates on decisions;
  • summarise old history into one or two "Context" bullets, drop the rest;
  • nothing is lost: before removing or shortening bullets, append the original text of what goes away to

memory-archive.md in the same folder, under a ## Archived <YYYY-MM-DD> heading (create the file if needed; never compact or load it, never import it from CLAUDE.md). maxxing search finds it when a session needs it;

  • move a fact to the right level if it is obviously misplaced (topic fact in global memory, a fact

about the whole topic in an agent's memory);

  • never remove: what is needed to understand the project, the user's preferences and rules,

structural decisions, conventions, paths/URLs still in use.

  1. Nothing to do -> change nothing.
  2. End with one line per file changed (projects/acme/memory.md: 412 -> 160 lines, 61 -> 14 KB, merged 8 duplicates)

or nothing to compact.

Safety

  • Only edit memory.md files (and append to memory-archive.md). Never CLAUDE.md, code, tasks.json or anything else.
  • If unsure whether something is still useful, keep it.
  • Never paste secrets; if you find one in a memory file, replace it by the key name and tell the

user to rotate it (Settings -> Keys).

  • The memory backup keeps history in git, so a past version can always be restored

(maxxing-backup skill).

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
6
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/makushingu/harness-maxxing/memory-compaction/badge)](https://verified-skill.com/skills/makushingu/harness-maxxing/memory-compaction)

Something wrong with this skill or its page? Tell us.