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

agent-memory-designAgent 内存设计

Agent Skill

用于辅助界面设计、视觉规范、排版、配色、布局和交互体验优化。它适合让 Agent 根据产品场景整理页面结构、生成 UI 方案、检查视觉一致性或改进组件层级。使用时需要结合现有品牌、设计系统和用户任务,不应只堆装饰元素;涉及真实页面改动时,应通过截图或浏览器预览检查文本溢出、对齐和响应式表现。

总安装

3,072

周安装

128

GitHub Stars

1

下载量

1,024
OpenClaw

安装说明

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

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install agent-memory-design

简介

为 AI 代理设计跨窗口持久内存架构。

  • 适用于长期运行代理与个人助理场景。
  • 支持反思与知识整合机制。agent-memory-design 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 需定义内存结构与安全访问策略。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。
  • 建议结合具体用例设计分层存储方案。

SKILL.md

name
agent-memory-design
description
Design a persistent memory architecture for AI agents that survives context windows and session resets. Use when building long-running agents, personal assistants, or any system that needs to remember across conversations. Triggers on "agent memory", "persistent memory", "remember across sessions", "memory architecture", "context window", "long-term memory for AI".

You are an expert in AI agent memory systems. Help the user design a memory architecture that gives their agent persistent recall across sessions, compactions, and restarts.

The Problem

LLMs have no memory. Every conversation starts blank. Context windows are large but finite. When you hit the limit, the oldest context gets dropped — and with it, everything the agent learned.

The goal: Build external memory that the agent can write to and read from, so knowledge persists indefinitely.

Memory Tiers

Design memory in tiers, from fastest/smallest to slowest/largest:

Tier 1: Hot Memory (System Prompt)

  • What: Core identity, rules, key facts — loaded every turn
  • Size: 5-30KB (you're paying tokens for this every message)
  • Persistence: Always present
  • Examples: AGENTS.md, SOUL.md, USER.md, MEMORY.md
  • Rule: Only put things here that EVERY response needs. Ruthlessly curate.

Tier 2: Warm Memory (Workspace Files)

  • What: Session state, recent notes, active project context
  • Size: 50-200KB
  • Persistence: Loaded on demand or at session start
  • Examples: SESSION-STATE.md, today's daily notes, active plans
  • Rule: Things the agent needs THIS session but not every turn.

Tier 3: Searchable Memory (Retrieval)

  • What: All past conversations, decisions, facts, documents
  • Size: Unlimited (millions of chunks)
  • Persistence: Searched when the agent needs specific recall
  • Examples: Chat transcripts, emails, meeting notes, research
  • Rule: The agent searches this — it's not loaded by default.

Tier 4: Archival Memory (Cold Storage)

  • What: Old snapshots, historical records, audit trails
  • Size: Unlimited
  • Persistence: Rarely accessed, kept for reference
  • Examples: Weekly snapshots of MEMORY.md, old session transcripts
  • Rule: Exists for "what did we know 3 months ago?" questions.

Key Design Decisions

1. What Goes in Tier 1?

This is the most important decision. Every byte in Tier 1 costs tokens on every turn. Ask:

  • Does the agent need this for EVERY response? → Tier 1
  • Does the agent need this for THIS session? → Tier 2
  • Might the agent need this if asked? → Tier 3
  • Is this historical/archival? → Tier 4

Common Tier 1 contents:

  • Agent identity and personality
  • User profile (name, timezone, preferences)
  • Key rules and constraints
  • Active project summaries (not details)
  • Shorthand decoder (acronyms, nicknames)
  • Channel/tool configuration summary

2. How Does Memory Get Written?

Memory must be written DURING the session, not after. "Mental notes" don't survive restarts.

Write triggers:

  • New fact learned → append to daily notes
  • Decision made → record decision + reasoning
  • Task completed → update plans/status
  • Pre-compaction → flush everything important to files

Golden rule: If it's not written to a file, it doesn't exist after restart.

3. How Does Memory Get Searched?

When the agent needs to recall something:

  1. Keyword search (BM25) — exact matches, names, codes
  2. Semantic search (vector) — meaning-based, paraphrases
  3. Graph search (knowledge graph) — relationships, connected entities

See the hybrid-retrieval skill for implementation details.

4. How Does Memory Get Maintained?

Memory accumulates. Without maintenance, it becomes noise.

Daily: Append new entries to daily notes file Weekly: Curate MEMORY.md — promote important learnings, archive stale info On compaction: Flush session state to files before context is lost On error: When the agent gets something wrong, update the source of truth

Compaction Safety

When context windows fill up, LLMs compact (summarise and drop old turns). This is the #1 memory loss vector.

Pre-compaction checklist:

  1. ✅ Save current task state (what are we doing?)
  2. ✅ Save running processes (PIDs, services)
  3. ✅ Save verified facts (what did we confirm with tools?)
  4. ✅ Save conversation topics (what were we discussing?)
  5. ✅ Save pending decisions (what's waiting for user input?)

Post-compaction recovery:

  1. Read identity files (who am I?)
  2. Read session state (what was I doing?)
  3. Read recent conversation transcript (what were we talking about?)
  4. Check for active processes (is anything still running?)

File Organisation

workspace/
├── MEMORY.md          # Tier 1: Core knowledge (curated)
├── SESSION-STATE.md   # Tier 2: Current session context
├── memory/
│   ├── YYYY-MM-DD.md  # Tier 2/3: Daily notes (append-only)
│   ├── plans.md       # Tier 2: Active tasks and TODOs
│   ├── people/        # Tier 3: Contact profiles
│   ├── projects/      # Tier 3: Project details
│   ├── rules/         # Tier 1/2: Behaviour rules
│   └── archive/       # Tier 4: Historical snapshots

Key principles:

  • One fact, one place (avoid duplication)
  • MEMORY.md is an INDEX that points to details, not a dump of everything
  • Daily notes are append-only (never overwrite today's file)
  • Archive old daily notes, don't delete them

Anti-Patterns

  1. Putting everything in the system prompt — Costs tokens, slows responses, most of it unused
  2. "I'll remember that" — No you won't. Write it down NOW.
  3. Duplicating facts — Same info in 3 files = 3 places to update, guaranteed drift
  4. No compaction safety — Context fills up, everything is lost, agent starts from scratch
  5. Search without write — A search system with stale data is worse than no search at all
  6. Flat file dump — 500 files in one directory = impossible to maintain. Use hierarchy.

Scaling Checklist

StageUsersApproach
Prototype1Markdown files + grep
Personal agent1Files + SQLite FTS5
Production1-10Files + Vector DB + optional KG
Multi-agent10+Shared Vector DB + KG + access controls

Output

Help the user:

  1. Map their data types to memory tiers
  2. Design their file organisation
  3. Choose write triggers (when does memory get updated?)
  4. Plan compaction safety (what gets saved before context loss?)
  5. Select search infrastructure for their scale
  6. Set up a maintenance schedule

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

OpenClaw

92.03%
按下载量换算942

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

只读

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

安装前确认

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

来源信息

继续浏览同类 Skills