$npx -y skills add SamarthaKV29/antigravity-god-mode --skill agent-memory-mcpA hybrid memory system that provides persistent, searchable knowledge management for AI agents (Architecture, Patterns, Decisions).
| 1 | # Agent Memory Skill |
| 2 | |
| 3 | 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. |
| 4 | |
| 5 | ## Prerequisites |
| 6 | |
| 7 | - Node.js (v18+) |
| 8 | |
| 9 | ## Setup |
| 10 | |
| 11 | 1. **Clone the Repository**: |
| 12 | Clone the `agentMemory` project into your agent's workspace or a parallel directory: |
| 13 | |
| 14 | ```bash |
| 15 | git clone https://github.com/webzler/agentMemory.git .agent/skills/agent-memory |
| 16 | ``` |
| 17 | |
| 18 | 2. **Install Dependencies**: |
| 19 | |
| 20 | ```bash |
| 21 | cd .agent/skills/agent-memory |
| 22 | npm install |
| 23 | npm run compile |
| 24 | ``` |
| 25 | |
| 26 | 3. **Start the MCP Server**: |
| 27 | Use the helper script to activate the memory bank for your current project: |
| 28 | |
| 29 | ```bash |
| 30 | npm run start-server <project_id> <absolute_path_to_target_workspace> |
| 31 | ``` |
| 32 | |
| 33 | _Example for current directory:_ |
| 34 | |
| 35 | ```bash |
| 36 | npm run start-server my-project $(pwd) |
| 37 | ``` |
| 38 | |
| 39 | ## Capabilities (MCP Tools) |
| 40 | |
| 41 | ### `memory_search` |
| 42 | |
| 43 | Search for memories by query, type, or tags. |
| 44 | |
| 45 | - **Args**: `query` (string), `type?` (string), `tags?` (string[]) |
| 46 | - **Usage**: "Find all authentication patterns" -> `memory_search({ query: "authentication", type: "pattern" })` |
| 47 | |
| 48 | ### `memory_write` |
| 49 | |
| 50 | Record new knowledge or decisions. |
| 51 | |
| 52 | - **Args**: `key` (string), `type` (string), `content` (string), `tags?` (string[]) |
| 53 | - **Usage**: "Save this architecture decision" -> `memory_write({ key: "auth-v1", type: "decision", content: "..." })` |
| 54 | |
| 55 | ### `memory_read` |
| 56 | |
| 57 | Retrieve specific memory content by key. |
| 58 | |
| 59 | - **Args**: `key` (string) |
| 60 | - **Usage**: "Get the auth design" -> `memory_read({ key: "auth-v1" })` |
| 61 | |
| 62 | ### `memory_stats` |
| 63 | |
| 64 | View analytics on memory usage. |
| 65 | |
| 66 | - **Usage**: "Show memory statistics" -> `memory_stats({})` |
| 67 | |
| 68 | ## Dashboard |
| 69 | |
| 70 | This skill includes a standalone dashboard to visualize memory usage. |
| 71 | |
| 72 | ```bash |
| 73 | npm run start-dashboard <absolute_path_to_target_workspace> |
| 74 | ``` |
| 75 | |
| 76 | Access at: `http://localhost:3333` |