一键导入
dream-memory
Memory consolidation — spawns a subagent with fresh context to review and consolidate session memories. Reports result to Telegram.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Memory consolidation — spawns a subagent with fresh context to review and consolidate session memories. Reports result to Telegram.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Track tasks and todos in the vault. Use when the user says 'add this to my todo', 'add this as a task', 'put this on my list', 'put this on the backlog', 'let's circle back to this later', 'don't let me forget', 'note for later', 'park this', 'we should come back to this', 'remind me to X', 'I need to do X later', or any phrase that implies queuing an action for future pickup. Also fires when the user wants to see pending tasks, check progress on multi-day work, or mark tasks complete. IMPORTANT: Do NOT fire on 'remember this', 'remember that X is Y', 'save this fact', 'store this about me' — those are memory actions, not task actions (see Task vs Memory Disambiguation below).
Wiki audit and lint — review the wiki for quality, consistency, and completeness. Use when the user says 'audit', 'lint', 'review the wiki', 'check for issues', 'check wiki health', or wants to assess the knowledge base quality. Also handles staleness checks and cross-link verification.
Wiki intake and compilation — process new content into the knowledge base. Use when the user says 'compile', 'add this to the wiki', 'process raw files', drops content in raw/, shares a URL to capture, or wants to ingest new material into the wiki. Also use when new raw files need processing or the user mentions intake, ingestion, or web clipping.
Telegram communication protocol — how to handle messages from Telegram. Use whenever a message arrives via Telegram (tagged source='telegram'), when handling voice messages from Telegram, when the user asks about Telegram behavior, or when you need guidance on Telegram reply formatting and progress updates.
Wiki compilation — spawns a subagent with fresh context to compile raw/ sources into wiki articles. Reports result to Telegram.
| name | dream-memory |
| description | Memory consolidation — spawns a subagent with fresh context to review and consolidate session memories. Reports result to Telegram. |
| argument-hint |
Spawn a subagent to perform memory consolidation. The subagent gets fresh context (no session bleed) but inherits CLAUDE.md conventions.
wiki/log.md:
## [YYYY-MM-DD] dream-memory | Memory consolidation summary
Brief notes on what changed.
You are performing a memory dream — a reflective pass over Claude's memory files. Synthesize what was learned recently into durable, well-organized memories so that future sessions can orient quickly.
## Paths
- Memory directory: the auto memory directory for this project (Claude Code auto-detects this — check ~/.claude/projects/ for the memory/ subfolder matching this project path)
- Session transcripts: the project directory under ~/.claude/projects/ (large JSONL files — grep narrowly, don't read whole files)
## Memory File Format
Each memory file uses YAML frontmatter:
---
name: {{memory name}}
description: {{one-line description}}
type: {{user, feedback, project, reference}}
---
{{memory content}}
Types:
- user — role, preferences, knowledge
- feedback — corrections and confirmed approaches (include Why: and How to apply: lines)
- project — ongoing work, goals, decisions (include Why: and How to apply: lines)
- reference — pointers to external systems
## 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
## Phase 2 — Gather Recent Signal
Look for new information worth persisting. Sources in rough priority order:
1. Existing memories that drifted — facts that contradict something in the codebase now
2. Transcript search — grep the JSONL transcripts for narrow terms only. Don't exhaustively read transcripts.
Focus on: user corrections, confirmed approaches, explicit save requests, recurring themes, important decisions.
Short-circuit: If no JSONL files are newer than the most recent memory file modification, return "Nothing new to consolidate — memories are already tight."
## Phase 3 — Consolidate
For each thing worth remembering, write or update a memory file. Focus on:
- Merging new signal into existing topic files rather than creating near-duplicates
- Converting relative dates to absolute dates
- Deleting contradicted facts at the source
- Removing stale memories
## Phase 4 — Prune and Index
Update MEMORY.md so it stays under 200 lines. It's an index, not a dump.
- Remove stale/wrong/superseded pointers
- Add pointers to newly important memories
- Resolve contradictions
## Phase 5 — Return Summary
Return a brief summary of what you consolidated, updated, or pruned. Format:
"Memory Dream complete. [N files updated, M created, K pruned]. Key changes: ..."
If nothing changed: "Nothing new to consolidate — memories are already tight."
Do NOT send Telegram messages or update wiki/log.md — the orchestrator handles reporting.