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:
memory_search
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.
Example
User request:
Use @agent-memory for this task: A hybrid memory system that provides persistent, searchable knowledge management for AI agents.
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.
1---2name: agent-memory3description: A hybrid memory system that provides persistent, searchable knowledge management for AI agents.4risk: critical5source: https://github.com/webzler/agentMemory/tree/main/6source_repo: webzler/agentMemory7source_type: community8date_added: 2026-07-019license: MIT10license_source: https://github.com/webzler/agentMemory/blob/main/LICENSE11metadata:12 source: https://skillmd.com/skills/lingxling/agent-memory13---1415# agentMemory Skill16## When to Use1718Use this skill when you need a hybrid memory system that provides persistent, searchable knowledge management for AI agents.192021This skill extends your capabilities by providing a persistent, searchable memory bank that automatically syncs with project documentation.2223## Prerequisites2425- Node.js installed26- Check if `agentMemory` is already installed in the project:27 ```bash28 ls -la .agentMemory29 ```3031## Setup32331. **Install Dependencies**:34 ```bash35 npm install36 ```37382. **Build the Project**:39 ```bash40 npm run compile41 ```42433. **Start the Memory Server**:44 You need to run the MCP server to interact with the memory bank.45 ```bash46 npm run start-server <project_id> <absolute_path_to_workspace>47 ```48 *Note: This skill typically runs as a background process or via an mcp-server configuration. ensuring it is running is key.*4950## Capabilities (MCP Tools)5152Once the server is running, you can use these tools:5354### `memory_search`55Search for memories by query, type, or tags.56- **Args**: `query` (string), `type?` (string), `tags?` (string[])57- **Usage**: "Find all authentication patterns" -> `memory_search({ query: "authentication", type: "pattern" })`5859### `memory_write`60Record new knowledge or decisions.61- **Args**: `key` (string), `type` (string), `content` (string), `tags?` (string[])62- **Usage**: "Save this architecture decision" -> `memory_write({ key: "auth-v1", type: "decision", content: "..." })`6364### `memory_read`65Retrieve specific memory content by key.66- **Args**: `key` (string)67- **Usage**: "Get the auth design" -> `memory_read({ key: "auth-v1" })`6869### `memory_stats`70View analytics on memory usage.71- **Usage**: "Show memory statistics" -> `memory_stats({})`7273## Workflow74751. **Initialization**: The first time you run this in a project, it may attempt to import existing markdown memory banks from `.kilocode/`, `.clinerules/`, or `.roo/`.762. **Development Loop**:77 - **Before Task**: Search memory for relevant context.78 - **During Task**: Use read/search to answer questions.79 - **After Task**: Write new findings to memory.803. **Sync**: Your writes are automatically synced to standard markdown files in the project.8182## Example8384**User request:**8586> Use @agent-memory for this task: A hybrid memory system that provides persistent, searchable knowledge management for AI agents.8788## Limitations8990- Use this skill only when the task clearly matches its upstream source and local project context.91- Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.92- Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.