abilityai/trinity-skills/add-memory
Claude Code and agent skill by abilityai/trinity-skills
- community
Checking that the SKILL.md file is still in the repository.
Add a memory system to an agent — file awareness, knowledge graph, structured state, or multi-session tracking
Install
npx vskill@latest install abilityai/trinity-skills/add-memorySKILL.md
Add Memory
ℹ️ First, set expectations: before anything else, print one short line with this skill's version and its most recent change — the top entry ofmetadata.changelogabove — e.g.add-memory vX.Y — recent: <summary>. Then proceed.
Add a memory system to an existing agent. Memory skills are COPIED into the agent's .claude/skills/ directory — the agent becomes self-contained with no plugin dependency.
Memory Types
| Type | Description | Skills Installed | |
|---|---|---|---|
| file-index | File system awareness — creates and maintains a searchable file index | setup-index, refresh-index, search-files | |
| brain | Zettelkasten-style knowledge graph — atomic notes with connections | setup-brain, create-note, search-brain, find-connections | |
| json-state | Structured JSON state with jq-based updates and action logging | setup-memory, load-memory, update-memory, memory-jq | |
| workspace | Multi-session project tracking — organized folders, sessions, archives | setup-projects, create-project, create-session, archive-project |
Process
Step 1: Determine Agent Directory
Check if we're in an agent directory (has CLAUDE.md) or if user specified a path.
If no CLAUDE.md found, ask:
- Question: "What agent should I add memory to?"
- Hint: "Enter the path to the agent directory (should contain CLAUDE.md)"
Step 2: Check Argument or Ask Memory Type
If user provided an argument (e.g., /agent-dev:add-memory brain), use that.
Otherwise, use AskUserQuestion:
- Question: "What kind of memory does this agent need?"
- Header: "Add Memory"
- Options:
- File awareness (file-index) — "I need the agent aware of workspace files"
- Creates a searchable index of files in the workspace
- Good for: agents that need to find and reference files
- Knowledge graph (brain) — "I need connected notes, evolving knowledge"
- Zettelkasten-style atomic notes with connections
- Good for: research agents, knowledge management, idea linking
- Structured state (json-state) — "I need counters, config, structured data"
- JSON-based state with efficient jq updates
- Good for: tracking metrics, configuration, action logs
- Multi-session workspace (workspace) — "I need organized projects and sessions"
- Project folders with session tracking and archiving
- Good for: long-running work, multiple parallel projects
Step 3: Copy Memory Skills
Memory templates are stored in this plugin at:
Copy the selected memory type's skills into the agent:
Step 4: Update Agent CLAUDE.md
Add a section documenting the new memory capabilities:
Step 5: Confirm and Guide
Output:
Notes
- Skills are COPIED, not linked — agent becomes self-contained
- Multiple memory types can be installed in the same agent
- If skills already exist (duplicate names), warn and ask before overwriting
- The setup skill initializes the memory system (creates directories, indexes, etc.)
- Portability: all data directories are created inside the agent repo — never in
~/. If using the native Claude Codememory:frontmatter field on custom subagent definitions, usememory: project(stores in.claude/agent-memory/, stays in repo) — nevermemory: user(stores in~/.claude/, breaks portability)
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/add-memory/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/abilityai/trinity-skills/add-memory)