three-tier-memory

三级记忆管理系统 (Three-Tier Memory)。短期记忆滑动窗口 + 中期记忆自动摘要(LLM) + 长期记忆向量检索(RAG)。当需要管理对话历史、自动摘要、语义检索、构建个人知识库时使用此 Skill。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "three-tier-memory" with this command: npx skills add forvendettaw/three-tier-memory

Three-Tier Memory Manager

AI 代理的三级记忆管理系统:短期、中期、长期记忆自动管理。

架构

层级存储触发容量
短期sliding-window.json实时/FIFO10条
中期summaries/Token阈值/摘要无限
长期vector-store/语义检索无限

快速开始

# 初始化
python3 scripts/memory_manager.py init

# 添加记忆
python3 scripts/memory_manager.py add --type short --content "用户喜欢黑色"
python3 scripts/memory_manager.py add --type long --content "用户的邮箱是 lei@example.com"

# 搜索
python3 scripts/memory_manager.py search "用户的偏好"

# 手动摘要
python3 scripts/memory_manager.py summary

# 查看状态
python3 scripts/memory_manager.py status

Hook 集成 (Auto)

已集成 OpenClaw Hook,会话结束自动保存记忆:

# Hook 已启用
openclaw hooks enable memory-manager-hook

事件:

  • session:end → 自动保存对话
  • 窗口满 → 自动触发摘要

依赖

# 向量检索 (可选)
pip install chromadb

配置

memory/config.json:

{
  "memory": {
    "short_term": {"window_size": 10},
    "medium_term": {"summary_threshold": 4000},
    "long_term": {"top_k": 3}
  }
}

完整命令

See references.md

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

openclaw-android

通过openclaw控制android手机,所有命令在手机内部执行,先su切换到root权限后执行后续命令,支持获取安装软件列表、打开和关闭app、操作app(点击、滑动、输入文本)以及截图app。当用户需要控制android设备或执行app操作时调用。

Registry SourceRecently Updated
General

soushen

高性能 Bing 搜索引擎 Skill - "搜神猎手" 使用 Playwright 底层 API 进行深度网页搜索和元素提取 功能: 1. Bing 搜索执行 - 返回结构化搜索结果(标题、链接、摘要、来源) 2. 深度页面分析 - 提取页面的所有关键元素(链接、表单、按钮、脚本、元数据) 触发条件: - 用户...

Registry SourceRecently Updated
General

Ponddepth Levels

Leveling overlay for OpenClaw Control UI (badge + XP + daily tip + level list + icons).

Registry SourceRecently Updated
General

Feishu Cache Guardian

飞书缓存配置守护工具。用于检查和修复 OpenClaw 飞书插件的 probe.ts 缓存配置。当飞书 API 健康检查的缓存时间被重置为默认值时,自动修复为60分钟缓存,避免API配额被快速耗尽。使用场景:OpenClaw升级后、飞书插件被覆盖后、定期检查缓存配置是否正常。

Registry SourceRecently Updated