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.
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-memory"3description: "A hybrid memory system that provides persistent, searchable knowledge management for AI agents. Use when working with agent memory."4source: "community_canonical"5risk: "unknown"6license: "not_declared_upstream"7metadata:8 source: https://skillmd.com/skills/revrebel/agent-memory9---1011# agentMemory Skill12## When to Use1314Use this skill when you need a hybrid memory system that provides persistent, searchable knowledge management for AI agents.151617This skill extends your capabilities by providing a persistent, searchable memory bank that automatically syncs with project documentation.1819## Prerequisites2021- Node.js installed22- Check if `agentMemory` is already installed in the project:23 ```bash24 ls -la .agentMemory25 ```2627## Setup28291. **Install Dependencies**:30 ```bash31 npm install32 ```33342. **Build the Project**:35 ```bash36 npm run compile37 ```38393. **Start the Memory Server**:40 You need to run the MCP server to interact with the memory bank.41 ```bash42 npm run start-server <project_id> <absolute_path_to_workspace>43 ```44 *Note: This skill typically runs as a background process or via an mcp-server configuration. ensuring it is running is key.*4546## Capabilities (MCP Tools)4748Once the server is running, you can use these tools:4950### `memory_search`51Search for memories by query, type, or tags.52- **Args**: `query` (string), `type?` (string), `tags?` (string[])53- **Usage**: "Find all authentication patterns" -> `memory_search({ query: "authentication", type: "pattern" })`5455### `memory_write`56Record new knowledge or decisions.57- **Args**: `key` (string), `type` (string), `content` (string), `tags?` (string[])58- **Usage**: "Save this architecture decision" -> `memory_write({ key: "auth-v1", type: "decision", content: "..." })`5960### `memory_read`61Retrieve specific memory content by key.62- **Args**: `key` (string)63- **Usage**: "Get the auth design" -> `memory_read({ key: "auth-v1" })`6465### `memory_stats`66View analytics on memory usage.67- **Usage**: "Show memory statistics" -> `memory_stats({})`6869## Workflow70711. **Initialization**: The first time you run this in a project, it may attempt to import existing markdown memory banks from `.kilocode/`, `.clinerules/`, or `.roo/`.722. **Development Loop**:73 - **Before Task**: Search memory for relevant context.74 - **During Task**: Use read/search to answer questions.75 - **After Task**: Write new findings to memory.763. **Sync**: Your writes are automatically synced to standard markdown files in the project.7778## Limitations7980- Use this skill only when the task clearly matches its upstream source and local project context.81- Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.82- Do not treat examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.