Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

memory-system

Skill by bojieli

Guides the design, build or evaluation of a user memory system for AI agents. It covers a three-level evaluation framework, storage format choices, Mem0 and Memobase trade-offs, memory compression, privacy redaction, and when to use memory instead of RAG.

  • Score 88
  • 61k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install memory-system

Built from the published package, never by AI.

git clone --depth 1 https://github.com/bojieli/ai-agent-book /tmp/ai-agent-book && mkdir -p ~/.claude/skills && cp -r /tmp/ai-agent-book/skills/memory-system ~/.claude/skills/memory-system

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install memory-system in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill is a Chinese-language guide for designing, implementing or evaluating user memory for AI agents. It separates three decisions: where memory lives (trajectory, long-term user memory, or business state), how it is stored, and what kind it is (episodic, semantic or procedural). It describes four storage formats, from Simple Notes to Advanced JSON Cards, and a way to turn memory into executable code for aggregation and rule checks.

It also covers a three-level evaluation framework (basic recall, multi-session retrieval and proactive service), memory compression and periodic consolidation, privacy redaction with local models, and the boundary between user memory and RAG. It names Mem0 and Memobase as frameworks to compare. It is aimed at developers building or testing memory features for agents. The source also points to code folders for each pattern.

Written from the project's SKILL.md and checked against it.

What it can do

  • Memory evaluation frameworkScores agent memory on three levels: basic recall, multi-session retrieval and proactive service.
  • Storage format selectionCompares Simple Notes, Enhanced Notes, JSON Cards and Advanced JSON Cards with their trade-offs.
  • Framework comparisonExplains design trade-offs between Mem0 and Memobase for user memory.
  • Memory compressionDescribes importance scoring, clustering into summaries and abstraction into semantic or procedural memory.
  • Privacy redactionDescribes redacting sensitive data with a local small model and a JSON Schema output.
  • Memory versus RAG decisionExplains when personal information belongs in user memory and when shared knowledge belongs in RAG.
  • Executable memory designDescribes turning memory into typed state and plain functions for checks such as passport validity.
  • Evaluation methodDescribes multi-session test cases scored with LLM-as-a-judge against reference answers.

Try asking

  • Help me choose a storage format for my agent's user memory
  • Compare Mem0 and Memobase for a customer support agent
  • Show me how to redact sensitive data from agent memory logs

Good to know

  • The skill text is written in Chinese.
  • The source does not include install steps; code examples are referenced by folder name only.
  • The multimodal memory section is described as a frontier note, not a settled method.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/memory-system/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md12 KB

Alternatives to memory-system

All alternatives →

Compare with agentmemory-config, understand-knowledge or reports

memory-system: common questions

When should I use user memory instead of RAG?

Personal information about a single user, such as preferences, identity and history, belongs in user memory. Collective knowledge shared by all users, such as regulations or company processes, belongs in a RAG knowledge base.

Which memory storage format should I pick?

The source suggests Advanced JSON Cards for a small number of key items and Simple Notes for many non-critical facts. Production systems often mix formats by category.

How does the skill suggest evaluating a memory system?

It uses three levels, from basic recall to proactive service, with about 20 cases per level. The agent builds memory from sessions and is judged with an LLM-as-a-judge against reference answers.

How do I install memory-system?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is memory-system free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is memory-system safe to use?

It scores 88 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to memory-system?

Similar skills: agentmemory-config, understand-knowledge, reports, forget.

memory-system Install

Add to stack

Loading.