Agent Memory Skill
This skill provides a persistent, searchable memory bank that automatically syncs with project documentation. It runs as an MCP server to allow reading/writing/searching of long-term memories.
Prerequisites
Setup
Review the Repository:
Ask the user to approve network access to the named repository, then clone the
pinned revision into a temporary directory, not an active skills path:
review_dir="$(mktemp -d)"
git clone --filter=blob:none https://github.com/webzler/agentMemory.git "$review_dir/agent-memory"
git -C "$review_dir/agent-memory" checkout --detach 0409b7b7bb6fe443d0d4b6a6b1ee0d4df214f3cd
git -C "$review_dir/agent-memory" ls-files
Read all bundled files and inspect package.json, lockfiles, lifecycle
scripts, network behavior, credential access, and filesystem scope. Show the
findings and exact commit, then wait for explicit user approval.
Install the Reviewed Revision:
Copy the reviewed tree to a user-selected location after approval. Install
locked dependencies only after the package scripts have been reviewed:
cd <approved-agent-memory-directory>
npm ci
npm run compile
Start the MCP Server:
Use the helper script to activate the memory bank for your current project:
npm run start-server <project_id> <absolute_path_to_target_workspace>
Example for current directory:
npm run start-server my-project $(pwd)
Capabilities (MCP 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({})
Dashboard
This skill includes a standalone dashboard to visualize memory usage.
npm run start-dashboard <absolute_path_to_target_workspace>
Access at: http://localhost:3333
When to Use
This skill is applicable to execute the workflow or actions described in the overview.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
- Re-review upstream before changing the pinned revision; a commit pin improves reproducibility but is not a trust guarantee.
1---2name: agent-memory-mcp3description: A hybrid memory system that provides persistent, searchable knowledge management for AI agents (Architecture, Patterns, Decisions).4---567# Agent Memory Skill89This skill provides a persistent, searchable memory bank that automatically syncs with project documentation. It runs as an MCP server to allow reading/writing/searching of long-term memories.1011## Prerequisites1213- Node.js (v18+)1415## Setup16171. **Review the Repository**:18 Ask the user to approve network access to the named repository, then clone the19 pinned revision into a temporary directory, not an active skills path:2021 ```bash22 review_dir="$(mktemp -d)"23 git clone --filter=blob:none https://github.com/webzler/agentMemory.git "$review_dir/agent-memory"24 git -C "$review_dir/agent-memory" checkout --detach 0409b7b7bb6fe443d0d4b6a6b1ee0d4df214f3cd25 git -C "$review_dir/agent-memory" ls-files26 ```2728 Read all bundled files and inspect `package.json`, lockfiles, lifecycle29 scripts, network behavior, credential access, and filesystem scope. Show the30 findings and exact commit, then wait for explicit user approval.31322. **Install the Reviewed Revision**:3334 Copy the reviewed tree to a user-selected location after approval. Install35 locked dependencies only after the package scripts have been reviewed:3637 ```bash38 cd <approved-agent-memory-directory>39 npm ci40 npm run compile41 ```42433. **Start the MCP Server**:44 Use the helper script to activate the memory bank for your current project:4546 ```bash47 npm run start-server <project_id> <absolute_path_to_target_workspace>48 ```4950 _Example for current directory:_5152 ```bash53 npm run start-server my-project $(pwd)54 ```5556## Capabilities (MCP Tools)5758### `memory_search`5960Search for memories by query, type, or tags.6162- **Args**: `query` (string), `type?` (string), `tags?` (string[])63- **Usage**: "Find all authentication patterns" -> `memory_search({ query: "authentication", type: "pattern" })`6465### `memory_write`6667Record new knowledge or decisions.6869- **Args**: `key` (string), `type` (string), `content` (string), `tags?` (string[])70- **Usage**: "Save this architecture decision" -> `memory_write({ key: "auth-v1", type: "decision", content: "..." })`7172### `memory_read`7374Retrieve specific memory content by key.7576- **Args**: `key` (string)77- **Usage**: "Get the auth design" -> `memory_read({ key: "auth-v1" })`7879### `memory_stats`8081View analytics on memory usage.8283- **Usage**: "Show memory statistics" -> `memory_stats({})`8485## Dashboard8687This skill includes a standalone dashboard to visualize memory usage.8889```bash90npm run start-dashboard <absolute_path_to_target_workspace>91```9293Access at: `http://localhost:3333`9495## When to Use96This skill is applicable to execute the workflow or actions described in the overview.9798## Limitations99- Use this skill only when the task clearly matches the scope described above.100- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.101- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.102- Re-review upstream before changing the pinned revision; a commit pin improves reproducibility but is not a trust guarantee.