ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

Layered Memory Sys

Skill by 141553

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/141553/layered-memory-sys
Or

layered-memory-sys

分层记忆系统 — 6层架构的智能记忆管理。

6层记忆架构

  • 核心层 (永久) → MEMORY.md
  • 沉淀层 (90天) → 重要决策/项目经验
  • 关注层 (30天) → 反复讨论的话题
  • 活跃层 (7天) → 正在进行的任务
  • 闪存层 (3天) → 临时查询/一次性问答
  • Session (实时) → 当前对话上下文

功能

  • 📊 分层 TTL 管理 — 自动升级/归档/遗忘
  • 💤 梦境模式 — 巩固、归档、遗忘、合并
  • 🔍 TF-IDF 搜索 — 中文关键词搜索
  • 📈 统计面板 — HTML 可视化健康报告
  • ⚙️ 路径配置化 — 支持环境变量和配置文件
  • 🤖 自动写入检测 — 从对话中识别值得记住的内容

快速开始

测试

cd skills/layered-memory-sys
node scripts/test-v2.mjs

梦境模式

node scripts/dream-cycle.mjs

统计面板

node scripts/stats-panel.mjs

使用方式

该技能通过记忆索引 (memory/index.json) 管理记忆数据。

记忆层级

层级TTL说明
flash3天临时查询、一次性问答
active7天正在进行的任务
attention30天反复讨论的话题
settled90天重要经验、决策记录

升级规则

  • 同一话题被召回 ≥3 次 → flash → active
  • 多天连续被召回 → active → attention
  • 召回 ≥10 次 → attention → settled
  • 用户说"记住这个" → 直接进沉淀层

配置

支持环境变量 + 配置文件 (memory/config.json) + 默认值三级覆盖:

环境变量说明
MEMORY_DIR记忆数据目录
SESSION_DIRSession 日志目录

依赖

依赖用途必需
sql.jsSQLite WASM 存储
nodejieba中文分词推荐
wsWebSocket可选

版本历史

  • v1.1.2 — bug fix: 合并跳过提醒记忆 / 过滤系统消息
  • v1.1 — 向量搜索/路径配置化/统计面板/自动写入检测
  • v1.0 — 6层架构 + 梦境模式

Metadata

Author@141553
Stars4473
Views0
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-141553-layered-memory-sys": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.