dream-memory

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Dream Memory

Dream Memory

Use this skill when you want a deliberate memory-consolidation pass instead of storing more raw notes.
This bundle is intentionally portable. It borrows the workflow shape from Claude Code's dream system, but it does not depend on Claude Code internals.
当你需要进行专门的记忆整合流程,而非存储更多原始笔记时,可以使用这个Skill。
这个工具包专门设计为可移植的。它借鉴了Claude Code梦境系统的工作流形态,但不依赖Claude Code的内部实现。

Use It For

适用场景

  • nightly or manual memory cleanup
  • merging overlapping memory notes
  • normalizing relative dates into absolute dates
  • pruning stale or contradicted memories
  • keeping
    MEMORY.md
    small and index-like
  • 夜间或手动记忆清理
  • 合并存在重叠的记忆笔记
  • 将相对日期标准化为绝对日期
  • 清理过时或存在冲突的记忆
  • 保持
    MEMORY.md
    体积小巧、类似索引的形态

Avoid It For

不适用场景

  • saving a single new memory from the current turn
  • persisting code facts that should be re-read from source
  • replacing plans, task boards, or issue trackers
  • 保存当前会话的单条新记忆
  • 持久化需要从源码重新读取的代码相关信息
  • 替代计划、任务看板或问题追踪器

Quick Start

快速开始

Inspect a memory directory before running the consolidation prompt:
bash
python3 {baseDir}/scripts/dream_memory.py --memory-root /path/to/memory --transcripts-dir /path/to/transcripts
Then use the portable prompt in references/prompt-template.md.
运行整合Prompt前,先检查记忆目录:
bash
python3 {baseDir}/scripts/dream_memory.py --memory-root /path/to/memory --transcripts-dir /path/to/transcripts
然后使用references/prompt-template.md中的可移植Prompt。

Workflow

工作流

  1. Inspect
    MEMORY.md
    , topic files, and recent logs or transcripts.
  2. Identify durable facts worth keeping.
  3. Merge into topic files instead of creating near-duplicates.
  4. Remove stale or contradicted memory.
  5. Rewrite
    MEMORY.md
    as a concise index.
  1. 检查
    MEMORY.md
    、主题文件以及近期日志或会话记录
  2. 筛选出值得保留的持久化事实
  3. 合并到现有主题文件中,避免创建近似重复的文件
  4. 移除过时或存在冲突的记忆
  5. MEMORY.md
    重写为简洁的索引

Rules

规则

  • MEMORY.md
    is an index, not a content dump.
  • Prefer topic merges over new file creation.
  • Convert relative dates to absolute dates.
  • Do not store code-state facts that can drift.
  • MEMORY.md
    是索引,不是内容转储
  • 优先合并到现有主题,而非创建新文件
  • 将相对日期转换为绝对日期
  • 不要存储可能会发生变更的代码状态信息

Supporting Files

配套文件

  • Prompt template: references/prompt-template.md
  • Source notes: references/source-notes.md
  • Helper script:
    python3 {baseDir}/scripts/dream_memory.py ...
  • Prompt模板:references/prompt-template.md
  • 源笔记:references/source-notes.md
  • 辅助脚本:
    python3 {baseDir}/scripts/dream_memory.py ...