Skip to content

/dream

Memory consolidation - review, merge, prune, and index memory files. Run periodically to keep memories organized and up-to-date.

From plugin
agent-starter
758 skills5 hooks

Claude Code

$ npx -y skills add sneg55/agent-starter --skill dream --agent claude-code

SKILL.md

dream.SKILL.md
name: dream
description: Memory consolidation - review, merge, prune, and index memory files. Run periodically to keep memories organized and up-to-date.
user_invocable: true
allowed-tools:
  - Read
  - Write
  - Edit
  - Bash
  - Glob
  - Grep

Dream: Memory Consolidation

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.

Phase 1 - Orient

  • `ls` the memory directory to see what already exists
  • Read `MEMORY.md` to understand the current index
  • Skim existing topic files so you improve them rather than creating duplicates
  • If `logs/` or `sessions/` subdirectories exist, review recent entries there

Phase 2 - Gather recent signal

Look for new information worth persisting. Sources in rough priority order:

1. **Daily logs** (`logs/YYYY/MM/YYYY-MM-DD.md`) if present - these are the append-only stream 2. **Existing memories that drifted** - facts that contradict something you see in the codebase now 3. **Transcript search** - if you need specific context, grep transcripts for narrow terms: `grep -rn "<narrow term>" .claude/transcripts/ --include="*.jsonl" | tail -50`

Don't exhaustively read transcripts. Look only for things you already suspect matter.

Phase 3 - Consolidate

For each thing worth remembering, write or update a memory file. Use these type conventions:

| Type | What belongs | Examples | |------|-------------|----------| | **user** | User's role, goals, preferences, knowledge | "senior Go dev, new to React" | | **feedback** | Corrections AND confirmations from user | "don't mock DB in tests", "bundled PR was right call" | | **project** | Ongoing work context, deadlines, initiatives | "merge freeze 2026-03-05 for mobile release" | | **reference** | Pointers to external systems | "pipeline bugs in Linear project INGEST" |

Each memory file uses this format:

---
name: {{name}}
description: {{one-line description}}
type: {{user, feedback, project, reference}}
---

{{content - for feedback/project: rule, then **Why:** and **How to apply:**}}

Focus on:

  • Merging new signal into existing topic files rather than creating near-duplicates
  • Converting relative dates ("yesterday", "last week") to absolute dates
  • Deleting contradicted facts - if today's investigation disproves an old memory, fix it at the source

Phase 4 - Prune and index

Update `MEMORY.md` so it stays under 200 lines AND under ~25KB. It's an **index**, not a dump:

  • Each entry: one line under ~150 chars: `- [Title](file.md) - one-line hook`
  • Never write memory content directly into MEMORY.md
  • Remove pointers to stale, wrong, or superseded memories
  • Shorten verbose entries - move detail to the topic file
  • Add pointers to newly important memories
  • Resolve contradictions - if two files disagree, fix the wrong one

What NOT to save

  • Code patterns, architecture, file paths - derivable from the project
  • Git history - `git log` / `git blame` are authoritative
  • Debugging solutions - the fix is in the code
  • Anything already in CLAUDE.md
  • Ephemeral task details or conversation context

---

Return a brief summary of what you consolidated, updated, or pruned. If nothing changed, say so.

Read more
@sneg55
Ships withagent-starter

Skills, hooks, templates, and engineering guides for bootstrapping AI-agent-friendly projects, with a per-project self-improvement loop.

Stars on GitHub

Momentum

stars in total
75
Star history of sneg55/agent-starter on GitHub, a chart by star-history.com

Other skills on agent-starter.

adopt-project
Auto-invoked

adopt-project

Apply agent-starter patterns to an EXISTING project - audits the codebase, proposes components by invasiveness tier (hooks,…

commit-push-pr
Auto-invoked

commit-push-pr

Full git workflow - creates branch, commits, pushes, and creates or updates a PR with summary and test plan.

commit
Auto-invoked

commit

Create a single well-crafted git commit from current changes. Analyzes diff, follows repo's commit style, and writes a concise…

new-project
Auto-invoked

new-project

Full project bootstrap - interviews the developer (name, description, stack, components), then scaffolds directory structure,…

reflect
Auto-invoked

reflect

Per-project self-improvement - reads the .harness ledger and feedback memories, then proposes gated rule/threshold/ADR changes so…

remember
Auto-invoked

remember

Review auto-memory entries and propose promotions to CLAUDE.md, CLAUDE.local.md, or shared memory. Also detects outdated,…

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about dream.

Which coding agents can use dream?
dream installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.