Token导航 LogoToken导航

Agent Skill · 研究检索

agent-memory-protocol(Agent 内存协议)

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

agent-memory-protocol 是研究检索类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为只读;许可证为 MIT-0,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 31,551。

总安装 2,681周安装 114GitHub Stars 公开资料未说明下载 939核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.1

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install agent-memory-protocol

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

代理内存管理协议。激活任何内存读取、写入或更新操作。定义六类写入规范、L0 同步规则和重复数据删除策略。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install agent-memory-protocol;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

agent-memory-protocol 怎么安装?

在终端执行 openclaw skills install agent-memory-protocol。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

agent-memory-protocol 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

agent-memory-protocol 需要什么权限?

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

agent-memory-protocol 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

agent-memory-protocol 用的人多吗?

公开数据是累计安装 2,681 次,近一周安装 114 次,下载 939 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

agent-memory-protocol 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
agent-memory-protocol

Agent 内存协议 · 本页

2,681—只读MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
memory-manager
description
Agent memory management protocol. Activate for any memory read, write, or update operation. Defines six-category write spec, L0 sync rules, and dedup strategy.
triggers

Memory Manager Skill

⚠️ All-Agent Protocol: This protocol applies to all agents in the system. Any agent completing a subtask that produces persistable information must write it according to this spec. Do not create memory files outside this structure.

When to Trigger

  • Before a conversation ends and new information needs storing
  • When the user says "remember", "update memory", or similar
  • When existing memory needs correction
  • After completing a new type of task (new case)
  • Real-time trigger during conversation:

- Project deadline changes → immediately update blackboard/projects/<id>.md + blackboard/REGISTRY.md (SSOT) - Progress milestone completed → immediately update the corresponding Blackboard project card - Habit / preference changes → immediately update preferences/ - Person / tool info changes → immediately update entities/ - No need to wait for end of conversation or explicit instruction


Three-Layer Density Structure

LayerFilePurposeUpdate Frequency
L0MEMORY.mdMinimal index, 1-3 sentences per category + path pointersOnly on structural changes
L1memory/INDEX.mdCategory overview navigation, ~500-1000 wordsWhen L2 file structure changes
L2memory/user/ memory/agent/Full details, read on demandDay-to-day maintenance

Retrieval order: Read L0 (MEMORY.md) to locate category → memory_get the relevant L2 → use memory_search for full-text search when uncertain.


Directory Structure (L2)

memory/
├── INDEX.md                    ← L1 navigation
├── user/
│   ├── profile.md              # Basic info (appendable)
│   ├── preferences/            # Preferences (appendable)
│   │   ├── learning.md
│   │   ├── lifestyle.md
│   │   ├── tech.md
│   │   └── communication.md
│   ├── entities/               # Entities (updatable)
│   │   ├── tools.md
│   │   └── people.md
│   └── events/                 # Events (append-only)
│       └── YYYY-MM-event-name.md
└── agent/
    ├── cases/                  # Cases (append-only)
    │   └── case-name.md
    └── patterns/               # Patterns (appendable)
        ├── task-delegation.md
        ├── config-backup.md
        └── memory-write.md

Classification Decision Flow

New information → determine type
  ├── User identity/background/data change → user/profile.md
  ├── User preferences/habits/style → user/preferences/[topic].md
  ├── Project/tool/person info → user/entities/[type].md
  ├── Key decisions/milestones/irreversible events → user/events/YYYY-MM-[name].md (new file)
  ├── First time handling a new task type → agent/cases/[name].md (new file)
  └── Reusable processing pattern discovered → agent/patterns/[name].md

Write Specification

Format Standards

  • Each file has # Title + structured content
  • Appended content is date-stamped: _Updated: YYYY-MM-DD_
  • No stream-of-consciousness; write conclusions only

Integration Pattern for New Knowledge / Rules / Skills

When receiving new knowledge, rules, or a skill, do not just stack it on top — follow this flow:

1. Search for existing similar content (memory_search / read relevant skill or pattern files)
2. Compare differences, derive the better conclusion (dedup, absorb, correct)
3. Update the complete content in the authoritative source file
4. Other files referencing that content become pointer-style, not independently maintained
Store details in one place only. Other files use "see X" pointers to avoid future drift.

See memory/agent/patterns/memory-write.md → "Integration pattern for new knowledge/rules"


Cascade Update Rules (Mandatory)

Any change involving the following must check and sync all referencing L1/L2 source files after writing today's memory:

  • Agent config / model assignment
  • Toolchain / channel changes
  • Project status / deadlines
  • Protocol rule changes

How: When unsure which files are affected, use memory_search on keywords and verify each one. Today's event log (memory/YYYY-MM-DD.md) cannot replace source file updates — it is a log, not the source of truth.


Dedup Strategy

SituationAction
Exact duplicate of existingSkip, do not write
Update to existing infoAppend to end of file with date stamp
Conflicts with existingAdd "updated" note after existing entry, append new version
Entirely new infoCreate new file or append to appropriate category
events / casesAlways create new file, never modify existing

Prohibited Actions

  • ⚠️ The memory/ root dir may hold current-week session logs (≤7 days); crontab auto-archives to memory/archive/YYYY-MM/ on the 1st of each month. Non-log files (profile/preferences/entities/events/cases/patterns) must go in their L2 category directories
  • ❌ Do not write stream-of-consciousness directly to MEMORY.md
  • ❌ Do not modify existing files under events/ or cases/

L0 Sync Rules (MEMORY.md)

MEMORY.md is the L0 index; keep it under 30 lines.

When to update MEMORY.md:

  1. New events or cases file added → add a one-line pointer in the relevant block
  2. Key patterns have major changes → update the summary sentence
  3. User basic info has major changes → update the user block

When MEMORY.md does not need updating:

  • Small amount of info appended to an existing file
  • Routine entities data updates (project progress, etc.)

L0 summary format:

- **[keyword]**: [one-sentence summary] → `memory/path`

L1 Sync Rules (memory/INDEX.md)

When to update INDEX.md:

  1. New L2 file added (new case / event / pattern) → add a row in the corresponding table
  2. A file's topic has major changes → update the corresponding summary column
  3. Old-format file officially migrated → remove from "to-migrate" list

Topic Archive & Compression Protocol

When to Trigger Archival

TriggerAction
User says "done / finished / next"Immediately generate topic summary, write to appropriate category
Conversation > 30 turns / tool calls > 40Compress closed topics, free context
New session starts (/new triggered)Archive previous session's open items to corresponding Blackboard project card

Compression Summary Format (3-line principle)

Write completed topics in the following format — do not retain raw conversation:

## [YYYY-MM-DD] Topic Title
Status: ✅ Done / 🔄 In Progress / ⏸️ Pending
Key points: [1-2 sentences of core content or decision]
Decision: [key decision, omit if none]
Follow-up: [only incomplete items; omit if done]
→ Details: [path to detail file if any, otherwise omit]

Tiered Storage Rules

  • Completed topics → write summary (3-5 lines) + status: done, do not retain details
  • In-progress tasks → update blackboard/projects/<id>.md + one-line progress in blackboard/REGISTRY.md
  • Key decisions / irreversible events → write to memory/user/events/ (permanent)
  • Reusable patterns → write to memory/agent/patterns/ (permanent)

Session Reflection

At session end (/new, idle reset, or user actively switches), if the session contained any of the following, extract one pattern:

TriggerReflection contentWrite to
User corrected a behavior"Next time X occurs, do Y"memory/agent/patterns/ or .learnings/
A plan failed and was replaced"Plan X failed because A; switched to Y"memory/agent/patterns/
Discovered a hidden tool/config gotcha"When using X, watch out for Y"memory/agent/patterns/ or TOOLS.md
Found a better approach than what docs say"Better approach for X is Y"memory/agent/patterns/

Format:

## [YYYY-MM-DD] Title
- **Trigger**: what situation was encountered
- **Lesson**: one-sentence conclusion
- **Next time**: specific action guidance

When reflection is NOT needed: pure execution tasks, no corrections, no surprises, routine CRUD.

Relationship to Instinct: Reflection written to patterns/ is low-barrier recording. When the same entry is triggered ≥3 times, promote to a YAML instinct in .learnings/instincts/ (see AGENTS.md §4).


Context Pressure Management (Memory Flush Protocol)

Run session_status to monitor context usage; proactively write to memory at these thresholds:

Context %Action
< 50%Normal operation, write on decision
50–70%Alert state, write key points after each important exchange
70–85%Active flush, immediately write important content to memory
> 85%Emergency flush, stop and write a full context summary before continuing

Must-flush content: decisions made and rationale, pending items and owners, unresolved problem threads.

Flush Checklist (check each item to prevent omissions)

At session end, before compaction, or when user says "done / next" — scan each item:

#CheckWrite targetTrigger words
1User preference changed? (taste/habit/tool choice)memory/user/preferences/"I prefer…" "stop doing…" "switch to…"
2Project progress advanced?blackboard/projects/<id>.md + REGISTRYdone/blocked/delayed/milestone
3New decision made?Project card "conclusions" or memory/user/events/"decided…" "confirmed…" "not doing"
4Person/entity info updated?memory/user/entities/new contact / tool change / account info
5Reusable pattern discovered?memory/agent/patterns/gotcha / detour / better solution
6User corrected something?.learnings/LEARNINGS.mdexplicit correction / dissatisfied / redo

How: Don't need all to fire. Scan the conversation quickly, write what hit, skip what didn't. Takes 3 seconds — don't skip it.


Sub-Agent Write Rules

When any sub-agent completes a task with persistable information:

  1. Blackboard project state: update project card + corresponding REGISTRY row directly (spec → blackboard/_schema.md). No need for grep-level cascade checks; the orchestrating agent handles that.
  2. Memory-type info: write to the appropriate L2 file per this protocol, note _Written by: [agent name] YYYY-MM-DD_ at the end
  3. Notify the orchestrating agent after writing; it syncs L0/L1 indexes as needed

平台分布

OpenClaw

91.26%
按下载量换算857

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

只读

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills