← 返回 Skills 市场
xiaocaijic

a-mem-memory-organization

作者 曹广雨 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
192
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install a-mem-memory-organization
功能描述
Organize project, agent, or user memory using an A-MEM-style workflow with structured notes, semantic tags, contextual summaries, explicit links, and lightwe...
使用说明 (SKILL.md)

A-MEM Memory Organization

Use this skill to turn raw observations into structured memory notes that are easier to retrieve, connect, and refine over time.

Quick Start

When the user asks to "remember", "keep context", "build memory", "organize knowledge", "create long-term memory", or "make the agent learn from history", do the following:

  1. Capture the new memory as a note with content, context, keywords, tags, category, timestamp, and links.
  2. Search existing memory for semantically related notes before writing the new note.
  3. Link the new note to the strongest neighbors if the relationship is concrete.
  4. Prefer updating tags/context only when the new evidence genuinely improves the older note.
  5. Keep memory atomic. Split unrelated facts into separate notes.

Note Format

Represent each memory note with this schema:

{
  "id": "uuid-or-stable-id",
  "content": "Atomic fact, preference, event, or lesson learned.",
  "context": "One sentence explaining the situation, domain, or why the note matters.",
  "keywords": ["specific terms", "entities", "concepts"],
  "tags": ["broader-category", "retrieval-label"],
  "category": "Preference | Project | Decision | Fact | Workflow | Bug | Research",
  "timestamp": "YYYYMMDDHHmm",
  "links": ["related-note-id"],
  "source": "optional source or conversation anchor"
}

If the surrounding system has no formal database yet, store notes in a Markdown or JSON memory file using the same fields.

Write Workflow

Use this write workflow whenever adding memory:

  1. Normalize the user input into one atomic note.
  2. Generate 3-6 precise keywords.
  3. Generate 2-5 broader tags.
  4. Write a compact context sentence that explains why the memory matters.
  5. Search for related notes using the combined retrieval text:
content: ...
context: ...
keywords: ...
tags: ...
  1. Link only to genuinely related memories. Avoid link spam.
  2. If the new note sharpens an older note, update the older note conservatively.

Retrieval Workflow

When answering from memory or selecting context for future work:

  1. Expand the query into both a literal form and a semantic form.
  2. Retrieve using the combined note text, not raw content alone.
  3. Prefer topically relevant and specific notes over vaguely similar ones.
  4. Include linked neighbors only when they help answer the task.
  5. If there is noise, rerank manually by: exact entity overlap, stronger contextual match, recency when the information is time-sensitive, explicit links from already-relevant notes.

Evolution Rules

Apply memory evolution carefully. The goal is refinement, not constant rewriting.

Safe evolution operations:

  • Add a missing tag that improves retrieval.
  • Clarify context when a later note disambiguates the old one.
  • Add a link between notes with a clear relationship.
  • Mark a note obsolete if later evidence supersedes it.

Avoid:

  • rewriting old notes based on weak similarity,
  • merging unrelated memories,
  • broadening tags until everything looks related,
  • losing the original fact while summarizing.

If uncertain, store a new note and link it instead of mutating old notes.

What To Build In Practice

If the user wants this skill "made real" inside a project, choose the lightest form that matches the repo:

  • For a documentation-first repo: create memory/notes.json or memory/notes.md.
  • For an app repo: add a memory module plus persistence layer.
  • For an agent repo: add note construction, retrieval, linking, and evolution hooks around the agent loop.
  • For a coding assistant: maintain durable notes for project decisions, preferences, recurring bugs, and environment facts.

Output Conventions

When you use this skill during a task:

  • Tell the user what memory structure you are creating or updating.
  • Show the proposed note fields if the user is designing the system.
  • If implementing code, keep the data model explicit and testable.
  • If no storage exists yet, propose a minimal file-based memory store first.

References

Read references/memory-patterns.md when you need:

  • examples of good and bad note construction,
  • category and tag heuristics,
  • guidance on conservative memory evolution,
  • suggestions for integrating this pattern into an agent loop.
安全使用建议
This skill is a pattern/style guide for organizing long-term memory and appears self-consistent. Before enabling it, decide where you want durable notes stored (e.g., a repo file or a database) and whether those storage locations may contain sensitive data. If you plan to persist PII, credentials, or secrets, add appropriate access controls (encryption, access restrictions, retention policies) because the skill recommends writing notes to local files. Also review how your agent chooses which notes to persist or update to avoid inadvertently recording sensitive conversational content.
功能分析
Type: OpenClaw Skill Name: a-mem-memory-organization Version: 1.0.0 The skill bundle provides a structured framework for an AI agent to manage long-term memory and project context using the A-MEM (Atomic Memory) pattern. It defines a clear JSON schema for memory notes and outlines workflows for storage, retrieval, and conservative evolution of information within local files like 'memory/notes.json'. No malicious code, data exfiltration, or harmful prompt-injection instructions were found; the logic is entirely focused on improving agent context management.
能力评估
Purpose & Capability
The name and description (A-MEM-style memory organization) match the SKILL.md: it defines note schemas, write/retrieval/evolution workflows, and suggested local storage paths. There are no unrelated environment variables, binaries, or external services requested.
Instruction Scope
Runtime instructions stay within the stated purpose: normalize observations into notes, search existing memory, link or conservatively update notes, and optionally persist to local files (e.g., memory/notes.json or memory/notes.md). The skill does not instruct reading unrelated system files, environment variables, or contacting external endpoints.
Install Mechanism
No install spec or code is included (instruction-only), so nothing will be downloaded or written by an installer. This minimizes risk and is appropriate for a pattern/guide skill.
Credentials
The skill declares no required environment variables, credentials, or config paths. The instructions reference only local memory files and in-repo storage, which are proportionate to the described functionality.
Persistence & Privilege
The skill's agent metadata (agents/openai.yaml) sets allow_implicit_invocation: true, which permits implicit invocation by the agent loop — this is normal for user-invocable skills. The skill is not marked always:true and does not request system-wide config changes or other skills' credentials.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install a-mem-memory-organization
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /a-mem-memory-organization 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of A-MEM Memory Organization skill. - Organizes project, agent, or user memory using structured notes, semantic tags, and contextual summaries. - Supports linking related notes, semantic retrieval, and controlled memory evolution. - Includes recommended workflows for adding, retrieving, and refining memory notes. - Provides a clear schema for memory notes and guidance for integrating into different project types.
元数据
Slug a-mem-memory-organization
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

a-mem-memory-organization 是什么?

Organize project, agent, or user memory using an A-MEM-style workflow with structured notes, semantic tags, contextual summaries, explicit links, and lightwe... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 192 次。

如何安装 a-mem-memory-organization?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install a-mem-memory-organization」即可一键安装,无需额外配置。

a-mem-memory-organization 是免费的吗?

是的,a-mem-memory-organization 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

a-mem-memory-organization 支持哪些平台?

a-mem-memory-organization 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 a-mem-memory-organization?

由 曹广雨(@xiaocaijic)开发并维护,当前版本 v1.0.0。

💬 留言讨论