{"slug":"dream","title":"dream","summary":"Memory consolidation - review, merge, prune, and index memory files. Run periodically to keep memories organized and up-to-date.","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-12-04T19:17:57.176285Z","repo":{"url":"https://github.com/sneg55/agent-starter","stars":77,"forks":5,"license":"MIT","updatedAt":"2026-12-04T09:22:51Z"},"bodyHtml":"<hr>\n<p>name: dream\ndescription: Memory consolidation - review, merge, prune, and index memory files. Run periodically to keep memories organized and up-to-date.\nuser_invocable: true\nallowed-tools:</p>\n<ul>\n<li>Read</li>\n<li>Write</li>\n<li>Edit</li>\n<li>Bash</li>\n<li>Glob</li>\n<li>Grep</li>\n</ul>\n<hr>\n<h1>Dream: Memory Consolidation</h1>\n<p>You are performing a dream - a reflective pass over your memory files. Synthesize what you've learned recently into durable, well-organized memories so that future sessions can orient quickly.</p>\n<h2>Phase 1 - Orient</h2>\n<ul>\n<li><code>ls</code> the memory directory to see what already exists</li>\n<li>Read <code>MEMORY.md</code> to understand the current index</li>\n<li>Skim existing topic files so you improve them rather than creating duplicates</li>\n<li>If <code>logs/</code> or <code>sessions/</code> subdirectories exist, review recent entries there</li>\n</ul>\n<h2>Phase 2 - Gather recent signal</h2>\n<p>Look for new information worth persisting. Sources in rough priority order:</p>\n<ol>\n<li><strong>Daily logs</strong> (<code>logs/YYYY/MM/YYYY-MM-DD.md</code>) if present - these are the append-only stream</li>\n<li><strong>Existing memories that drifted</strong> - facts that contradict something you see in the codebase now</li>\n<li><strong>Transcript search</strong> - if you need specific context, grep transcripts for narrow terms:\n<code>grep -rn \"&lt;narrow term&gt;\" .claude/transcripts/ --include=\"*.jsonl\" | tail -50</code></li>\n</ol>\n<p>Don't exhaustively read transcripts. Look only for things you already suspect matter.</p>\n<h2>Phase 3 - Consolidate</h2>\n<p>For each thing worth remembering, write or update a memory file. Use these type conventions:</p>\n<table>\n<thead>\n<tr>\n<th>Type</th>\n<th>What belongs</th>\n<th>Examples</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>user</strong></td>\n<td>User's role, goals, preferences, knowledge</td>\n<td>\"senior Go dev, new to React\"</td>\n</tr>\n<tr>\n<td><strong>feedback</strong></td>\n<td>Corrections AND confirmations from user</td>\n<td>\"don't mock DB in tests\", \"bundled PR was right call\"</td>\n</tr>\n<tr>\n<td><strong>project</strong></td>\n<td>Ongoing work context, deadlines, initiatives</td>\n<td>\"merge freeze 2026-03-05 for mobile release\"</td>\n</tr>\n<tr>\n<td><strong>reference</strong></td>\n<td>Pointers to external systems</td>\n<td>\"pipeline bugs in Linear project INGEST\"</td>\n</tr>\n</tbody>\n</table>\n<p>Each memory file uses this format:</p>\n<pre><code>---\nname: {{name}}\ndescription: {{one-line description}}\ntype: {{user, feedback, project, reference}}\n---\n\n{{content - for feedback/project: rule, then **Why:** and **How to apply:**}}\n</code></pre>\n<p>Focus on:</p>\n<ul>\n<li>Merging new signal into existing topic files rather than creating near-duplicates</li>\n<li>Converting relative dates (\"yesterday\", \"last week\") to absolute dates</li>\n<li>Deleting contradicted facts - if today's investigation disproves an old memory, fix it at the source</li>\n</ul>\n<h2>Phase 4 - Prune and index</h2>\n<p>Update <code>MEMORY.md</code> so it stays under 200 lines AND under ~25KB. It's an <strong>index</strong>, not a dump:</p>\n<ul>\n<li>Each entry: one line under ~150 chars: <code>- [Title](file.md) - one-line hook</code></li>\n<li>Never write memory content directly into MEMORY.md</li>\n<li>Remove pointers to stale, wrong, or superseded memories</li>\n<li>Shorten verbose entries - move detail to the topic file</li>\n<li>Add pointers to newly important memories</li>\n<li>Resolve contradictions - if two files disagree, fix the wrong one</li>\n</ul>\n<h2>What NOT to save</h2>\n<ul>\n<li>Code patterns, architecture, file paths - derivable from the project</li>\n<li>Git history - <code>git log</code> / <code>git blame</code> are authoritative</li>\n<li>Debugging solutions - the fix is in the code</li>\n<li>Anything already in CLAUDE.md</li>\n<li>Ephemeral task details or conversation context</li>\n</ul>\n<hr>\n<p>Return a brief summary of what you consolidated, updated, or pruned. If nothing changed, say so.</p>\n","files":[{"path":"SKILL.md","sizeBytes":3305,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-12-04T19:18:12.644696Z","sha256":"E0A1E607D15FA084DD95DEC0ECC2640662A32513EF802A852D37976E6AD54526","sizeBytes":1831},"review":null,"source":{"repositoryUrl":"https://github.com/sneg55/agent-starter","path":"skills/dream","license":"MIT","commit":"f9c1707c9bec60fa5c8220f3b7c520adb92b2600","subtreeSha":"3F35DD49F1C360E5A4563F2D795CB7423AA1721184CD936F0B60D2BD548E497A","lastSyncedAt":"2026-12-04T19:17:56.222495Z"},"reviewedAt":"2026-12-04T19:18:35.277122Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/sneg55/agent-starter/tree/main/skills/dream"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install sneg55-agent-starter@llmmart"},{"target":"git","command":"git clone https://github.com/sneg55/agent-starter.git"}]}