DR Memory Foundation
Use this skill to set up a memory layout that is easy to retrieve from, audit, and compress.
Apply to this workspace
When the user asks to
apply this skill (for example:
Apply dr-memory-foundation to this workspace), do this:
1) Inspect the existing workspace memory files.
2) Create any missing template files from
references/templates/.
3) Preserve existing notes; merge or relocate content rather than deleting it.
4) Normalize
MEMORY.md into preferences + indexes only.
5) Ensure
memory/always_on.md contains a tiny policy header + topic catalog.
6) Confirm what changed.
This apply flow should be idempotent: if the structure already exists, do not duplicate sections or overwrite user content blindly.
Quick install commands (copy/paste)
Run this from the workspace root when you want the templates created automatically:
cd ~/.openclaw/workspace
python3 ./skills/dr-memory-foundation/scripts/install_memory_foundation.py
tree -L 2 memory | head -n 40
If files already exist the script skips them; otherwise it copies the templates from
references/templates/.
Template layout
- -
MEMORY.md (small): preferences + indexes only. - INLINECODE6 : tiny policy header + topic catalog (with keywords).
- Dashboards / registries:
-
memory/now.md
-
memory/open-loops.md
-
memory/automation.md
-
memory/topics/glossary.md
-
memory/topics/<topic>.md
- INLINECODE12
Apply (safe steps)
1) Create the folders/files from
references/templates/.
2) Move existing knowledge into topic files without deleting source logs.
3) Keep
MEMORY.md as indexes + preferences only.
4) Update the topic catalog in
memory/always_on.md as topics evolve.
Templates
Use the files under
references/templates/.
DR Memory Foundation
使用此技能来建立一个易于检索、审计和压缩的内存布局。
应用于当前工作区
当用户要求
应用此技能时(例如:将 dr-memory-foundation 应用于此工作区),请执行以下操作:
1) 检查现有的工作区内存文件。
2) 从 references/templates/ 创建任何缺失的模板文件。
3) 保留现有笔记;合并或迁移内容,而非删除。
4) 将 MEMORY.md 规范化为仅包含偏好设置和索引。
5) 确保 memory/always_on.md 包含一个简短的策略头部和主题目录。
6) 确认所做的更改。
此应用流程应是幂等的:如果结构已存在,不要重复创建章节或盲目覆盖用户内容。
快速安装命令(复制/粘贴)
当您希望自动创建模板时,从工作区根目录运行以下命令:
bash
cd ~/.openclaw/workspace
python3 ./skills/dr-memory-foundation/scripts/install
memoryfoundation.py
tree -L 2 memory | head -n 40
如果文件已存在,脚本将跳过它们;否则将从 references/templates/ 复制模板。
模板布局
- - MEMORY.md(小型):仅包含偏好设置和索引。
- memory/always_on.md:简短的策略头部和主题目录(含关键词)。
- 仪表盘/注册表:
- memory/now.md
- memory/open-loops.md
- memory/automation.md
- memory/topics/glossary.md
- memory/topics/
.md
- memory/YYYY-MM-DD.md
应用(安全步骤)
1) 从 references/templates/ 创建文件夹/文件。
2) 将现有知识移至主题文件,不删除源日志。
3) 保持 MEMORY.md 仅包含索引和偏好设置。
4) 随着主题演变,更新 memory/always_on.md 中的主题目录。
模板
使用 references/templates/ 下的文件。