Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.
Memory
A-MEM Memory Organization
Try itOrganize project, agent, or user memory using an A-MEM-style workflow with structured notes, semantic tags, contextual summaries, explicit links, and lightwe...
What it does
Use this skill to turn raw observations into structured memory notes that are easier to retrieve, connect, and refine over time.
The skill document
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:
- Capture the new memory as a note with
content,context,keywords,tags,category,timestamp, andlinks. - Search existing memory for semantically related notes before writing the new note.
- Link the new note to the strongest neighbors if the relationship is concrete.
- Prefer updating tags/context only when the new evidence genuinely improves the older note.
- 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:
- Normalize the user input into one atomic note.
- Generate 3-6 precise
keywords. - Generate 2-5 broader
tags. - Write a compact
contextsentence that explains why the memory matters. - Search for related notes using the combined retrieval text:
content: ...
context: ...
keywords: ...
tags: ...
- Link only to genuinely related memories. Avoid link spam.
- 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:
- Expand the query into both a literal form and a semantic form.
- Retrieve using the combined note text, not raw content alone.
- Prefer topically relevant and specific notes over vaguely similar ones.
- Include linked neighbors only when they help answer the task.
- 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.jsonormemory/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.
Related skills
Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.
Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.
Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.
Fetch raw ad creative, app, ranking, and revenue data from AdMapix as structured JSON.
Run Git operations — commits, branches, merges, rebases, conflict resolution, and recovery — with safety rules enforced.
More from xiaocaijic
Browse all skills专业级 AI 短视频配音助手,支持多角色音色映射、自动语速调节及 BGM 建议。
Read meeting minutes or notes from a local file path or URL, or inspect a local meeting-notes directory and report the file count plus file list. Use when th...
Inspect, back up, search, export, and update OpenClaw long-term memory stored with MemoryOS. Use when Codex needs to manage MemoryOS memory files for an Open...
Read meeting minutes, produce a short summary with the current conversation model, save the meeting text and summary into local memory, answer follow-up ques...
Distill successful multi-step OpenClaw sessions into reusable learned skills before compaction. Use when a task involved many tool calls, environment setup,...
电商 AI 语音技能。用于在 OpenClaw 或类似技能宿主中,按不同触发词独立启用两套互不干扰的能力:(1) 售后客服模式,将售后文本咨询按预设退款规则生成客服回复并输出 TTS 音频;(2) 电话推销模式,按产品名称、功能、优势和优惠范围生成推销话术并输出 TTS 音频。适用于需要模式切换、配置确认、音色选...