AI Agent Hub
Back to skills
Unified Agent Memory and Knowledge Management System icon

Unified Agent Memory and Knowledge Management System

AI Agent Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please follow https://skillhub.cn/install/skillhub.md and install @user_fa4109f3/agentmemory-v2.

About this skill

Problem to Solve

Agent memory often stops at storing chat history in a vector store, but real agent workloads need to separate current state, durable preferences, past events, procedural rules, and external references. Mixing these lifecycles in one store can cause temporary instructions to become user profiles, outdated facts to contaminate current queries, and cross-session evidence to remain fragmented. This approach treats agent memory as a governed data system: the core question is not what to keep, but what to write, where to store it, when to retrieve it, how to update it, and when to retire it.

How It Works

The skill organizes memory around four responsibilities: R representation and storage, S extraction, Q retrieval and routing, and U maintenance. It also separates working, semantic, episodic, procedural, retrieval, parametric, and prospective memory. A typical flow includes:
- Write gating: decide whether a statement is durable, so temporary instructions do not become stable preferences
- Read gating: filter candidates by scope, validity time, keywords, semantic similarity, and rerank
- Query Planner: choose a path for current-state, history, factual recall, trace, or multi-hop queries
- Maintenance: control cost with versioned facts, supersede, archiving, and local merging

Scope and Caveats

This is useful for long-running agents, shared memory across agents, user preference management, tool debugging, and procedural rule capture. It is not a long-context replacement, and it does not require a knowledge graph or weight training from day one. A lighter build can start with working memory, reliable retrieval, and a clean preference table, then add episodic traces and evaluated procedural rules.

Use Cases

  • Build a user preference store for long-running support agents, separating temporary requests from durable preferences so outdated versions are not returned.
  • Share tool failures and successful workflows across agents via HTTP APIs so later agents can retrieve relevant experience during tasks.
  • Write task logs, tool traces, and correction signals into episodic memory and learning files to review why a deployment error recurs.
  • Record project stack changes as versioned facts, return only current valid facts for state queries, and keep history for audit.

Best For

  • Engineers maintaining multi-turn support agents who need to separate user preferences, historical corrections, and temporary instructions.
  • Developers building multi-agent workflows who need to share tool experience, failures, and successful paths across agents.
  • Technical leads doing agent evaluation and governance who need to inspect write, update, deletion, and scope isolation by memory lifecycle.
  • Architects codifying team SOPs who need to turn stable workflows into evaluated procedural memory rather than letting agents edit rules freely.