← ClaudeAtlas

memory-bank-defraglisted

Defragment and re-actualize a project memory bank (the .assistant/ knowledge base + the project's auto-memory). Reads everything that changed in the repo since the last defrag, finds where the memory bank has gone stale or accumulated amendment-on-amendment "patches", folds the patches into clean current-state docs, closes resolved questions, and updates the auto-memory — then shows a diff for review. Use when the user says "defrag the memory bank", "привести memory bank в порядок", "дефрагментация памяти", "актуализируй .assistant", "причеши базу знаний", or runs /memory-bank-defrag.
alexeyshishin/as-skill · ★ 4 · AI & Automation · score 76
Install: claude install-skill alexeyshishin/as-skill
# Memory Bank Defrag Bring a project's memory bank back in sync with reality and remove cruft. The memory bank is three things: 1. **`.assistant/`** in the repo — the durable, version-controlled knowledge base (project context, requirements, decisions/ADRs, scope, open questions, stakeholders, glossary). Structure varies per project; operate on whatever files exist, don't assume a fixed layout. 2. **Auto-memory** — the cross-session memory at `~/.claude/projects/<slugified-cwd>/memory/` (an `MEMORY.md` index plus one file per fact). Local only — **absent on cloud/headless runs**; skip silently if the directory doesn't exist. 3. **Repo current-state docs** — files that assert *what is true now* and drift the same way: `README.md`, `AGENTS.md`/`CLAUDE.md`, design specs, proposals. Update these when a recent commit makes them stale. Do **not** touch raw source records that capture *what happened* — meeting transcripts, chat dumps, extracted board content — those are evidence; keep them verbatim (translate only by adding a summary alongside, never by overwriting). The job is **defragmentation**, not rewriting: same facts, fewer patches. Amendment-on-amendment trails collapse into one current-state statement; resolved questions get closed; stale facts get corrected against the actual code/docs; new durable facts from recent commits get captured. ## Non-negotiables - **Accuracy > speed.** Memory is point-in-time and may be wrong. Before you a