Token导航 LogoToken导航TokenDH.com
研究检索只读clawhub未标认证来源可访问clear审计通过

layered-memory-architecture分层内存架构

Agent Skill

layered-memory-architecture 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

5,494

周安装

236

GitHub Stars

公开资料未说明

下载量

1,926
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:layered-memory-architecture(分层内存架构)
来源仓库:https://github.com/uselesslibraries/layered-memory-architecture
安装命令:
openclaw skills install layered-memory-architecture
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install layered-memory-architecture

简介

layered-memory-architecture 使用分层架构为代理构建低成本长期记忆系统。

  • 适用于设计、解释或优化代理记忆管理机制的复杂任务。
  • 替代传统内存块方案以提升信息组织与检索效率。
  • 需评估其对现有系统架构的兼容性与性能影响。
  • 建议在沙箱环境中测试后再部署至生产流程。layered-memory-architecture 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
layered-memory-architecture
description
Build cheap, truthful long-term memory for agents with a layered architecture instead of a memory blob. Design, explain, audit, or improve a system that separates hot canon, durable topic doctrine, project-scoped working memory, episodic logs, and generated live summaries. Use when creating token-efficient agent memory, reducing memory bloat and context cost, comparing layered memory against generic persistent-memory systems, defining memory boundaries, improving retrieval trust, or migrating from blob memory to a layered model.

Memory Architecture

Design memory as a system, not a bucket.

Core stance

Optimize for:

  1. truthful retrieval
  2. low token cost
  3. clear boundaries
  4. maintainable long-horizon continuity
  5. project isolation where needed

Do not default to "store more and search later." First decide what kind of memory something is.

The five-layer model

Use these layers consistently:

  1. Hot canon

- Small, frequently loaded, cross-session truths. - Identity, preferences, standing doctrine, current priorities, compact cross-project lessons. - Keep it aggressively bounded.

  1. Durable topic doctrine

- Stable architecture notes, decisions, playbooks, operating rules, and domain context. - More detailed than hot canon, but still curated.

  1. Project-scoped working memory

- Raw or evolving material tied to one initiative. - Research notes, migration plans, transcripts, experiment outputs, snapshots. - Promote only distilled lessons upward.

  1. Episodic logs

- What happened today or in a specific work session. - Events, observations, intermediate findings, next steps. - Default landing zone for fresh information.

  1. Generated live summaries

- Rebuildable operator read models for current state. - Queue views, alerts, health snapshots, status summaries, compact log digests. - Treat as derived state, not durable canon.

Memory classification rule

Before writing memory, classify the item:

  • Cross-cutting durable truth → hot canon
  • Durable but detailed rule / doctrine / architecture → topic doc
  • Project-bound raw or changing context → project memory
  • Fresh event or observation → episodic log
  • Current operational snapshot → generated summary only

If uncertain, bias downward:

  • daily/project first
  • promote later
  • avoid prematurely canonizing noise

Promotion / demotion flow

Use this ladder:

  • fresh event → episodic log or project artifact
  • repeated / stable lesson → topic doc
  • hottest compact cross-cutting truth → hot canon
  • volatile state → generated summary
  • stale bulky detail → keep in project/archive, not hot canon

Truthfulness rules

Never let memory blur these categories:

  • durable truth
  • project-specific context
  • current live status
  • historical event log
  • derived summary

Do not promote temporary red/yellow/green conditions, queue counts, disk snapshots, or stale alerts into canon unless they reveal a durable rule.

Retrieval policy

Retrieve in this order:

  1. hot canon
  2. compact index/selector
  3. relevant topic docs
  4. project memory only if the task is project-specific
  5. generated summaries before raw logs for live-state questions
  6. raw logs only when summary is insufficient or needs verification
  7. episodic logs only when recent event history matters

The goal is not maximum recall. The goal is the right recall.

Comparison frame

When comparing layered memory against generic persistent-memory tools, use this lens:

Generic persistent-memory systems usually optimize for:

  • saving more facts
  • retrieving facts later
  • one-store convenience
  • simple demo value

Layered memory systems optimize for:

  • memory boundaries
  • retrieval trust
  • token hygiene
  • long-term maintainability
  • project isolation
  • separation of canon vs live state

Use this summary line:

  • "Persistent memory is a feature. Memory architecture is a system."

If needed, read references/scorecard.md for a compact comparison rubric.

Anti-patterns

Flag these quickly:

  • one giant memory blob with weak boundaries
  • logs and durable truths mixed together
  • live status stored as long-term canon
  • duplicated facts across layers without summary/detail distinction
  • always-append workflows with no dedupe or demotion
  • semantic search over stale and current facts without authority separation
  • project details contaminating global memory

Output patterns

For comparisons or teaching material, prefer one of these structures:

  • scorecard: category-by-category ratings and winners
  • analogy: bucket/backpack vs compartments/ship
  • thesis: "remember more" vs "remember the right things in the right places"
  • migration plan: how to move from blob memory to layered memory

Use bundled references only when needed

  • Read references/scorecard.md when preparing a digestible comparison, talk track, or publishable rubric.
  • Read references/migration-pattern.md when helping someone convert an existing persistent-memory setup into a layered one.
  • Read references/layout-template.md when the user wants a concrete starter structure for implementing layered memory in a workspace.
  • Read references/audit-checklist.md when the user wants a repeatable audit of an existing memory setup instead of a high-level philosophy discussion.
  • Read references/classifier-pattern.md when the user wants a lightweight routing rule for deciding where fresh information belongs.
  • Read references/promotion-trigger-pattern.md when the user wants a safe promotion model for moving notes upward over time.
  • Read references/summary-generator-pattern.md when the user wants live-state summaries that remain derived and rebuildable rather than polluting canon.

Reliability rules

  • Prefer the smallest useful memory change over a total rewrite.
  • Do not invent hidden automation or magical persistence claims.
  • Keep implementation recommendations explicit about which layer is authoritative.
  • If offering migration advice, separate immediate low-risk fixes from optional later refinements.
  • If the user wants operational memory, keep generated summaries distinct from canon.
  • Treat lightweight automations as helpers that nominate or summarize, not as silent canon-writing authorities.

Keep the explanation compact unless the user explicitly wants a deep comparison.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

81.95%
按下载量换算1,578

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills