$npx -y skills add thtskaran/claude-skills --skill consolidate-memoryReflective pass over your memory files — merge duplicates, fix stale facts, prune the index.
| 1 | # Memory Consolidation |
| 2 | |
| 3 | You're doing a reflective pass over what you've learned about this user and their work. The goal: a future session should be able to orient quickly — who they work with, what they're focused on, how they like things done — without re-asking. |
| 4 | |
| 5 | Your system prompt's auto-memory section defines the directory, file format, and memory types. Follow it. |
| 6 | |
| 7 | ## Phase 1 — Take stock |
| 8 | |
| 9 | - List the memory directory and read the index (`MEMORY.md`) |
| 10 | - Skim each topic file. Note which ones overlap, which look stale, which are thin. |
| 11 | |
| 12 | ## Phase 2 — Consolidate |
| 13 | |
| 14 | **Separate the durable from the dated.** Preferences, working style, key relationships, and recurring workflows are durable — keep and sharpen them. Specific projects, deadlines, and one-off tasks are dated — if the date has passed or the work is done, retire the file or fold the lasting takeaway (e.g. "user prefers X format for launch docs") into a durable one. |
| 15 | |
| 16 | **Merge overlaps.** If two files describe the same person, project, or preference, combine into one and keep the richer file's path. |
| 17 | |
| 18 | **Fix time references.** Convert "next week", "this quarter", "by Friday" to absolute dates so they stay readable later. |
| 19 | |
| 20 | **Drop what's easy to re-find.** If a memory just restates something you could pull from the user's calendar, docs, or connected tools on demand, cut it. Keep what's hard to re-derive: stated preferences, context behind a decision, who to go to for what. |
| 21 | |
| 22 | ## Phase 3 — Tidy the index |
| 23 | |
| 24 | Update `MEMORY.md` so it stays under 200 lines and ~25KB. One line per entry, under ~150 chars: `- [Title](file.md) — one-line hook`. |
| 25 | |
| 26 | - Remove pointers to retired memories |
| 27 | - Shorten any line carrying detail that belongs in the topic file |
| 28 | - Add anything newly important |
| 29 | |
| 30 | Finish with a short summary: how many files you touched and what changed. |