360 Secure SkillHub
360 安全技能中心

dr-memory-foundation

核心功能:按指定模板搭建或规整OpenClaw风格代理内存文件结构,包含仪表盘、主题文件、每日日志等,保留用户现有内容,操作幂等(已存在结构不重复创建)。典型场景:新代理内存搭建、现有内存重组,适配检索+压缩管道。输入为用户应用指令或执行安装脚本,输出符合规范的内存文件夹,自动合并旧内容。

daniel-refahi-ikara
daniel-refahi-ikara
热度 56.86
最近更新 2026-05-11 17:31:09
分类:效率依赖:代码执行 / 读写文件应用场景:工作流 / 模板

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add dr-memory-foundation
Metadata
name
dr-memory-foundation
description
Opinionated, file-based memory layout for OpenClaw-style agents: dashboards (now/open-loops/automation), topic files, glossary, and an always-on policy+topic catalog. Use when setting up or reorganizing agent memory, creating a memory folder structure, adding always_on.md, building a topic catalog, or preparing memory files so retrieval+compression pipelines work well.

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.
  • memory/always_on.md: tiny policy header + topic catalog (with keywords).
  • Dashboards / registries:
    • memory/now.md
    • memory/open-loops.md
    • memory/automation.md
  • Topics:
    • memory/topics/glossary.md
    • memory/topics/<topic>.md
  • Daily logs:
    • memory/YYYY-MM-DD.md

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/.