brainstorm
Runs a structured design conversation — clarifies intent, proposes 2-3 approaches with trade-offs, iterates the design — and writes a user-approved engineering…
Prunes and consolidates the project's auto-memory to keep it minimal — deletes stale, wrong, or redundant memories, merges overlapping ones into existing files, and trims the index. Strong bias against growth: never creates new memory files and never stores new facts. Verifies
$ npx -y skills add oprogramadorreal/optimus-claude --skill dream --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/dreamContext preview
The summary Claude sees to decide when to auto-load this skill.
Prunes and consolidates the project's auto-memory to keep it minimal — deletes stale, wrong, or redundant memories, merges overlapping ones into existing files, and trims the index. Strong bias against growth: never creates new memory files and never stores new facts. Verifies
description: >- Prunes and consolidates the project's auto-memory to keep it minimal — deletes stale, wrong, or redundant memories, merges overlapping ones into existing files, and trims the index. Strong bias against growth: never creates new memory files and never stores new facts. Verifies staleness against the current codebase, then presents the plan and asks before deleting. Requires Claude Code auto-memory; run periodically after heavy stretches of work. disable-model-invocation: true argument-hint: "[optional focus, e.g. a memory file or topic]"
Under Codex, stop without reading or changing memory: this skill requires Claude Code auto-memory. Recommend Codex's own memory controls instead.
A reflective pass over this project's auto-memory, biased toward shrinking it. Claude Code loads a bounded MEMORY.md index at startup (the first 200 lines or 25 KB, whichever comes first); detailed memory files load on demand. Stale entries can mislead and near-duplicates make useful entries harder to retrieve. Keep information that changes what a future session does, including valuable on-demand details. This skill only removes, merges, and tightens — capturing new facts is the job of regular sessions, not of a dream.
**Hard rules:**
If the user passed an argument, treat it as the focus: judge only the memories it names or covers.
The auto-memory section of your system prompt names the memory directory and defines the file format — it is the source of truth for both. If your context has no such section, tell the user auto-memory is not enabled for this project and stop; if the directory is missing or empty, report that there is nothing to consolidate and stop.
List the directory and read every top-level memory file (they are small by design), plus the index — `MEMORY.md` where it exists, otherwise the frontmatter `description` lines the harness assembles into an index at load time. Leave any `logs/` or `sessions/` subdirectories alone throughout: they are activity streams, not memories. Record the baseline footprint: memory file count and total bytes including the index.
Assign each file one verdict. The bar for KEEP is concrete: name the future-session decision this memory would change. If you can't, it is context cost with no return — mark it DELETE.
Judge the index too: flag dangling lines, lines that no longer match their file, and any inline content beyond index lines — fold such content into the memory file it belongs to, or mark it for deletion in the plan; the Step 4 rebuild must never silently drop it. Check its size against the harness load limit (currently the first 200 lines or 25KB — nothing past that reaches a session): an over-limit index silently orphans every entry beyond the cutoff and is a defect the plan must fix.
The current repo state is the primary evidence. If a memory's staleness is suspected but unconfirmed and session transcripts exist (large JSONL files in the memory directory's parent), a narrow grep may settle it — locate and count matches first (`grep -l`, `-c`), then extract only small bounded windows (`grep -o`): single transcript lines run to hundreds of KB, so never read whole files or dump matching lines. Never use transcripts or logs to mine new facts to store.
Present the plan: each file with its verdict and a one-line reason, any index repairs, plus the projected footprint (files and bytes, before → after). If every verdict is KEEP and the index needs no repair, tell the user the memory is already tight and stop; if a focus matched no memories, say that instead — don't call the store tight when nothing was judged.
Then AskUserQuestion — header "Dream", question "Apply this memory consolidation plan?":
1. "Apply all" (Recommended) — a snapshot goes to the session scratchpad first; deletion is otherwise irreversible 2. "Abort" — change nothing
First copy the memory directory into the session scratchpad as a snapshot, then re-list the directory and re-read the index: memory has concurrent writers by design (parallel sessions, the harness's own background pass), and anything written or changed since the Step 1 inventory was never judged — treat it as KEEP and preserve its index entries.
Apply the approved verdicts and index repairs. Across the surviving files:
Repo: oprogramadorreal/optimus-claude
Runs a structured design conversation — clarifies intent, proposes 2-3 approaches with trade-offs, iterates the design — and writes a user-approved engineering…
Reviews local changes, an open PR/MR, or a branch diff against the project's own coding guidelines through the review lenses — bugs, security, guidelines,…
Stages, commits, and optionally pushes local changes with a Conventional Commits message — always previews and confirms first, and offers a feature branch on…
Runs an iterative auto-fix loop on a chosen target — review, refactor, or coverage — dispatching the base skill into fresh subagent contexts per iteration,…
Runs a Gauntlet Loop: turns an ambitious goal and optional quality references into a minimal builder/critic prompt judged against a concrete comparison bar,…
Compacts the current conversation into one self-contained, tool-agnostic handoff document at docs/handoffs/<slug>.md so any fresh agent or teammate can resume…