360 Secure SkillHub
360 安全技能中心

dr-memory-foundation

该 Skill 为 OpenClaw 风格代理提供基于文件的记忆布局:通过 apply 流程和 Python 安装脚本创建或补全 MEMORY.md、always_on.md、看板、主题与词汇表模板,将既有内容合并到主题文件并保持索引精简,安装幂等,不覆盖已存在文件。

daniel-refahi-ikara
daniel-refahi-ikara
热度 56.72
最近更新 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/.