con un clic
Autonomous nightly memory consolidation for one project.
npx skills add https://github.com/MinhHaDuong/ImperialDragonHarness --skill dreamCopia y pega este comando en Claude Code para instalar la habilidad
Autonomous nightly memory consolidation for one project.
npx skills add https://github.com/MinhHaDuong/ImperialDragonHarness --skill dreamCopia y pega este comando en Claude Code para instalar la habilidad
Run an Imperial Dragon raid across multiple tickets. Picks targets, manages waves, enforces isolation. Merges APPROVED PRs after verify-gate clears.
Pre-release audit, GPG tag signing, and download-URL update for a target repo. Runs audits autonomously; pauses at the human-only signing step.
Atomically close the linked ticket(s) and merge a PR. Must be run from the PR head branch. Works in git worktrees and on VMs. GitHub-only (requires the GitHub CLI).
Repo housekeeping — git sync, healthcheck, eager fix-now repairs, and ticket creation for open-ticket findings. Safe to call interactively or from automated sweeps.
Repo healthcheck — git hygiene, test status, and deep freshness verification of status/directive docs. Gracefully degrades when project-specific conventions (git-erg tickets, STATE.md, etc.) are absent.
Post-task wrap-up. Reflects on completed work, updates project state, cleans up branches.
| name | dream |
| description | Autonomous nightly memory consolidation for one project. |
| user-invocable | true |
Consolidates and deduplicates memory for one project using mem0 classifier + Park reflection. Claude does all reasoning inline; scripts handle only file I/O and git.
/dream <project> [--dry-run]
/dream <project> --rollback <commit-hash>
<project> is the directory name under ~/.claude/projects/ (e.g. -home-haduong--claude).
If --rollback <hash> is present, run:
python3 ~/.claude/skills/dream/commit.py rollback <hash>
Then stop.
1. Read the memory index.
python3 ~/.claude/skills/dream/read-index.py <project>
Output is JSON: {project, memory_dir, entries[]} where each entry has filename, title, desc, content, path.
If entries is empty, log "No memory entries found" and stop.
2. Classify each entry.
For each entry, read its content and the content of semantically related entries (look for keyword overlap in titles and descriptions). Then decide:
Rules:
3. Reflect on survivors.
From entries classified NOOP, ADD, or UPDATE: extract 5 high-level insights that capture patterns, recurring themes, or important lessons. Each insight: 1–2 sentences. These go into the regenerated index as context above the entry list.
4. Report.
Print a summary table:
If --dry-run: stop here. Do not write anything.
5. Apply deletions.
For each DELETE entry, overwrite its file with a tombstone:
# DELETED <ISO timestamp>: <title>
# Reason: <one-line reason>
# Original content preserved in git history.
Use the Edit or Write tool. Never use rm.
6. Rewrite MEMORY.md.
Write a new MEMORY.md at <memory_dir>/MEMORY.md with this structure:
## Key insights
- <insight 1>
- <insight 2>
...
## Entries
- [<title>](<filename>) — <desc>
...
Include only surviving entries (NOOP, ADD, UPDATE). Keep the index under 200 lines.
7. Commit.
python3 ~/.claude/skills/dream/commit.py commit <project> <n_before> <n_after>
One entry per project:
0 2 * * * /dream <project>
To inspect consolidation history:
git log --grep='^dream: consolidate' --oneline