robinbril/infinite-agent-memory/memory
Claude Code and agent skill by robinbril/infinite-agent-memory
- community
Checking that the SKILL.md file is still in the repository.
Persistent agent memory at $AGENT_MEMORY_DIR (default ~/agent-memory). Use when the user wants to (1) add a document/email/note/transcript to long-term memory, (2) ask a question that memory may already answer, (3) check memory health. Triggers include "add to memory", "save this", "remember this", "what do we know about X", "lint the memory", and any time you would otherwise re-derive knowledge that could compound.
Install
npx vskill@latest install robinbril/infinite-agent-memory/memorySKILL.md
The same SKILL.md was published earlier as robinbril/infinite-agent-memory/memory.
Memory - Persistent Agent Knowledge Base
Karpathy-style knowledge compounding. Three layers: raw sources, memory pages, this skill. Authoritative spec lives at <memory-dir>/SCHEMA.md, read it before doing anything.
Locate the memory
In skill context: read $AGENT_MEMORY_DIR if set, otherwise ~/agent-memory. All paths below are relative to this directory.
First step always
Read SCHEMA.md and index.md in the memory directory. The schema defines conventions; the index tells you what already exists. Skip neither.
Dispatch by user intent
| User says | Operation | |
|---|---|---|
| "add this to memory", "save this", "remember this document/email/PDF" | Ingest | |
| "what do we know about X", "search memory for Y", or any question that might be answered by existing pages | Query | |
| "lint memory", "check memory health", "find orphans/contradictions" | Lint |
If unclear, ask which operation. Do not guess for ingest, getting the source slug wrong fragments the memory.
Ingest
- Save the raw input verbatim to
sources/<kebab-slug>.mdwith frontmatter:
```yaml
name: <slug> ingested: <YYYY-MM-DD> origin: <where it came from>
```
- Write
summaries/<slug>.md: 5-15 bullets, each with(source: <slug>)tag. - Identify entities (people, companies, products, projects) and concepts (recurring ideas, frameworks). For each:
- Glob for existing page:
entities/<name>.mdorconcepts/<name>.md - If exists: Edit, add new facts to
## Key facts, append source to frontmattersources:, bumpupdated:. - If new: Write with full frontmatter and section structure from SCHEMA.md.
- Cross-link liberally:
[[other-slug]]for any related page (existing or planned). - Update
index.md: add one line per new page under the right section. - Report to the user: list of pages created/updated.
Query
- Read
index.mdto scope. - Grep titles and frontmatter for keywords from the user's question.
- Read matched pages. Follow
[[links]]one hop if the answer is incomplete. - Synthesize the answer. Cite pages:
(see [[slug]]). - Compound the memory: if your reasoning produced new understanding the memory did not already contain, a synthesis across pages, a new fact looked up, a corrected misconception, file it back. Either:
- Append to a relevant page's
## Key facts, or - Create a new
concepts/<topic>.mdif it is a new recurring idea.
- Briefly note to the user what you filed back, so they can correct if you over-saved.
Lint
Run these checks against the memory directory:
- Contradictions: same entity, different stated facts. Grep entity names across pages, compare.
- Orphans: pages not in
index.mdAND not linked from any other page. - Dead links:
[[slug]]references that do not resolve to a real file. - Stale:
updated:> 6 months ago on fast-moving topics. - Source-less facts: bullets in
## Key factswithout a(source: ...)tag. - Schema drift: pages missing required frontmatter fields per SCHEMA.md.
Output as a checklist grouped by category. Do not auto-fix, present findings and ask which to address.
Hard rules
- Never edit anything under
sources/after ingest. Sources are immutable. If the source was wrong, create a new source and supersede. - Never invent facts. If the memory does not say it, say so.
- Always include the
(source: <slug>)tag when adding a fact. - If a memory page disagrees with what the user just said, surface the disagreement before overwriting. The memory could be stale, or the user could be misremembering, let them choose.
- Never store secrets (API keys, tokens, passwords). Reference their location instead.
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/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/robinbril/infinite-agent-memory/memory)