360 Secure SkillHub
360 安全技能中心

Dream Memory

该 Skill 提供一次有意的记忆整合流程:检查 MEMORY.md、主题文件和近期日志或会话,提取持久事实,合并到主题文件,清理过时或矛盾记忆,并将 MEMORY.md 重写为简洁索引。包含可移植提示模板与记忆目录检查脚本,声明不依赖特定宿主内部实现。

2020必胜
2020必胜
热度 33.27
最近更新 2026-04-03 21:40:59
分类:知识依赖:代码执行 / 读写文件 / 内部调用大模型应用场景:笔记整理 / 摘要总结 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add dream-memory
Metadata
name
dream-memory
description
Consolidate recent logs, sessions, and existing memory files into durable topic memories, normalize dates, prune stale entries, and keep MEMORY.md short enough for prompt use.

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.

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

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:

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.

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.

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.

Supporting Files