360 Secure SkillHub
360 安全技能中心

Memory Structure

把既有记忆结构复制到新环境:提供 memory.md、corrections.md、index.md、heartbeat-state.md、heartbeat-rules.md 与 setup.md 的清单与用途,用于记录偏好、纠错与自我反思;需文件系统写权限,心跳间隔在宿主配置中设定。

wangssi1998-cell
wangssi1998-cell
热度 48.53
最近更新 2026-05-11 17:34:40
分类:知识依赖:读写文件应用场景:笔记整理 / 工作流 / 模板

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add memory-structure
Metadata
name
memory-structure
version
1.0.2
description
Enable AI to learn from mistakes and never repeat them. Error tracking, layered memory, regular self-reflection, continuous improvement.

Skill: memory-structure

Name

memory-structure

Function

Copy existing memory structure to new environments, enabling other Agents to use the same memory system.

Use Cases

  • Quickly set up self-improvement framework for new Agents
  • Unify memory organization across multiple Agents
  • Establish standardized self-reflection process

Skill Contents

This skill includes:

File Description
memory.md Main memory file: preferences, patterns, rules (HOT tier)
corrections.md Error correction log: "what I got wrong" and correct answers
index.md Memory index: tracks all memory file updates
heartbeat-state.md Heartbeat state: records self-reflection check timestamps and results
heartbeat-rules.md Heartbeat rules: defines triggers and execution logic for self-reflection
setup.md Setup guide: installation and configuration instructions

Usage

1. Install Skill

Using ClawHub:

clawhub install memory-structure

2. Initialize Memory Structure

Create memory directory in target workspace:

mkdir -p ~/self-improving/{domains,projects,archive}

Then manually create the following files (copy template contents below):

3. Regular Self-Reflection

After completing important tasks, Agent should update heartbeat-state.md with reflection results.

Core Concepts

  • HOT Tier: Memory files are hot-tier, high-frequency access
  • Corrections Log: Errors are the source of improvement, must be recorded
  • Heartbeat: Regular self-reflection to check if memory structure needs updates

Dependencies

  • No external dependencies
  • Requires file system write permission
  • Heartbeat interval configured in OpenClaw config (default: 30 minutes)