mcpbeat

Agent Memory

lingxling/agent-memory

A hybrid memory system that provides persistent, searchable knowledge management for AI agents.

741 tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
223
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/lingxling/awesome-skills-cn --skill agent-memory

The instruction itself

11 sections, as written by the author

agentMemory Skill

When to Use

Use this skill when you need a hybrid memory system that provides persistent, searchable knowledge management for AI agents.

This skill extends your capabilities by providing a persistent, searchable memory bank that automatically syncs with project documentation.

Prerequisites

  • Node.js installed
  • Check if agentMemory is already installed in the project:
  ls -la .agentMemory

Setup

  • Install Dependencies:
   npm install
  • Build the Project:
   npm run compile
  • Start the Memory Server:

You need to run the MCP server to interact with the memory bank.

   npm run start-server <project_id> <absolute_path_to_workspace>

*Note: This skill typically runs as a background process or via an mcp-server configuration. ensuring it is running is key.*

Capabilities (MCP Tools)

Once the server is running, you can use these tools:

Search for memories by query, type, or tags.

  • Args: query (string), type? (string), tags? (string[])
  • Usage: "Find all authentication patterns" -> memory_search({ query: "authentication", type: "pattern" })

memory_write

Record new knowledge or decisions.

  • Args: key (string), type (string), content (string), tags? (string[])
  • Usage: "Save this architecture decision" -> memory_write({ key: "auth-v1", type: "decision", content: "..." })

memory_read

Retrieve specific memory content by key.

  • Args: key (string)
  • Usage: "Get the auth design" -> memory_read({ key: "auth-v1" })

memory_stats

View analytics on memory usage.

  • Usage: "Show memory statistics" -> memory_stats({})

Workflow

  • Initialization: The first time you run this in a project, it may attempt to import existing markdown memory banks from .kilocode/, .clinerules/, or .roo/.
  • Development Loop:
  • Before Task: Search memory for relevant context.
  • During Task: Use read/search to answer questions.
  • After Task: Write new findings to memory.
  • Sync: Your writes are automatically synced to standard markdown files in the project.

Limitations

  • Use this skill only when the task clearly matches its upstream source and local project context.
  • Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.
  • Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.

How to use it

Copy the folder

Take lingxling/agent-memory from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.

Install what it needs

The instructions reference npm. Without those the skill loads but fails at the first command.