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 |
|---|
| INLINECODE0 | Main memory file: preferences, patterns, rules (HOT tier) |
| INLINECODE1 |
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:
CODEBLOCK0
2. Initialize Memory Structure
Create memory directory in target workspace:
CODEBLOCK1
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)
技能:记忆结构
名称
记忆结构
功能
将现有记忆结构复制到新环境中,使其他智能体能够使用相同的记忆系统。
使用场景
- - 快速为新智能体建立自我改进框架
- 统一多个智能体之间的记忆组织方式
- 建立标准化的自我反思流程
技能内容
本技能包含:
| 文件 | 描述 |
|---|
| memory.md | 主记忆文件:偏好、模式、规则(热层级) |
| corrections.md |
错误修正日志:我犯过的错误及正确答案 |
| index.md | 记忆索引:追踪所有记忆文件的更新 |
| heartbeat-state.md | 心跳状态:记录自我反思检查的时间戳和结果 |
| heartbeat-rules.md | 心跳规则:定义自我反思的触发条件和执行逻辑 |
| setup.md | 设置指南:安装和配置说明 |
使用方法
1. 安装技能
使用ClawHub:
bash
clawhub install memory-structure
2. 初始化记忆结构
在目标工作空间中创建记忆目录:
bash
mkdir -p ~/self-improving/{domains,projects,archive}
然后手动创建以下文件(复制下方模板内容):
3. 定期自我反思
完成重要任务后,智能体应更新heartbeat-state.md并记录反思结果。
核心概念
- - 热层级:记忆文件属于热层级,高频访问
- 修正日志:错误是改进的源泉,必须记录
- 心跳:定期自我反思,检查记忆结构是否需要更新
依赖项
- - 无外部依赖
- 需要文件系统写入权限
- 心跳间隔在OpenClaw配置中设置(默认:30分钟)