Memory Compact — Development skill for Claude Code
Distill a bloated .marvin/memory.md into durable-fact files + archive the rest (ADR-0042).
How to install Memory Compact
Installs to ~/.claude/commands/robertilisei-marvin-memory-compact.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/RobertIlisei/MARVIN/HEAD/.claude/commands/memory-compact.md -o ~/.claude/commands/robertilisei-marvin-memory-compact.md Restart Claude Code, or start a new session, for it to be picked up.
What Memory Compact does
description: Distill a bloated .marvin/memory.md into durable-fact files + archive the rest (ADR-0042).
Compact the active project's project memory into the curated durable-facts layer defined by [ADR-0042](../../docs/decisions/0042-memory-as-durable-facts.md). Run this when `.marvin/memory.md` has grown into an append-log of per-turn Ship dumps (the failure mode: a real project hit 419 KB, ~99% redundant with ADRs/git/changelog).
**Operate on the ACTIVE project's `.marvin/`, never MAR
Alternatives in Development
- Nuwa Skill — 你想蒸馏的下一个员工,何必是同事 31.4k ★
- Code — Open MARVIN in your IDE (Cursor, VS Code, etc 1k ★
- Funes — Durable, searchable memory of your past agent sessions 349 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Distill Memory
Distill working memory in MEMORY.md — compact, remove stale content, preserve what matters
Compact Memory
Compact the project MEMORY.md index — SAFE-AUTO archive of fully-closed entries (reversible) + PROPOSE-ONLY de
Learn From Review
Distill code-review learnings into durable rules
ConPACT
CONtext comPACT coordinates agent-initiated context compaction at verified scope closure—after the final answe
Trim Context
Find and fix sources of Claude Code "token bloat" in a repo — oversized CLAUDE.md (vs the 40k-char limit), blo
Initiative
Durable work — opt-in noun. Sub-verbs new status list resume update archive restore close. A one-off /guild:gu
Related Agents
Ren Distiller
Worker-class batch miner for the #60 wiki-distiller. Spawned by /ren:distill with a batch of pre-escaped L1 na
Memory Skeptic
Read-only adversarial verifier for proposed memory edits (delete/merge/distill/prune). Given ONE proposed edit
Governance Learner
Feedback Distiller. Use this agent at sprint close to audit /memory/ logs, distill systemic patterns from bug-