From dream
Consolidates, prunes, and reorganizes Claude Code auto memory files. Fixes format drift, deduplicates facts, enforces MEMORY.md index structure. Use when memory feels stale or cluttered.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dream:dreamThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Consolidate auto memory by enforcing the format contract, pruning stale content, deduplicating facts, and rebuilding MEMORY.md as a clean index.
Consolidate auto memory by enforcing the format contract, pruning stale content, deduplicating facts, and rebuilding MEMORY.md as a clean index.
Announce at start: "Running memory consolidation (dream)."
Context: Standalone maintenance utility. Run periodically or when memory feels cluttered. Simulates the Auto Dream feature that is in gradual rollout.
Source: Claude Code client system prompt + official docs.
MEMORY.md is an index, not a memory. It should contain only one-line pointers to topic files:
- [Title](file.md) -- one-line hookTopic files require frontmatter:
---
name: {{topic name}}
description: {{one-line description}}
type: {{user | feedback | project | reference}}
---
Organization: Semantic by topic, not chronological by session.
Read MEMORY.md and every file in the memory directory. For each file, check:
session-YYYY-MM-DD-* should be renamed to their actual topic.For MEMORY.md, check:
- [Title](file.md) link or a ## section header.Present a structured report to the user with these sections:
Format violations -- files missing frontmatter, content in MEMORY.md Stale content -- items older than 14 days with forward-looking TODOs or "Next/Pending" sections that may be completed Duplicates -- facts that appear in both topic files and MEMORY.md inline, or across multiple topic files Rename candidates -- session-dated files that should be topic-named Proposed actions -- numbered list of specific changes (extract, merge, prune, rename, add frontmatter)
Do NOT execute any changes yet. Wait for user approval.
After user approves (all or selected items):
## section headers.After execution, read the rebuilt MEMORY.md and confirm:
Report the results: files changed, lines saved, violations fixed.
Phase 2 report structure:
## Dream Report
### Format Violations (X found)
- [file] -- [issue]
### Stale Content (X flagged)
- [file] -- [what's stale] -- [age]
### Duplicates (X found)
- [fact] -- appears in [file1] and [file2]
### Proposed Actions
1. [action] -- [file] -- [reason]
2. ...
Approve all, select by number, or cancel?
Report summary: files modified, created, renamed, deleted. Line count before/after.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub jl-cmd/claude-dream --plugin dream