# memory

Connects your coding agent to the basic-memory CLI to store notes, run semantic searches, and keep project context across sessions.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 362 installs · ★ 26
- Author: johnlindquist
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/johnlindquist/claude/tree/HEAD/skills/memory/SKILL.md
- Updated: 2025-12-19
- HTML: https://affpapa.org/en/nevibecode/skills/johnlindquist-memory

## What it does

This skill equips agents with persistent storage driven by the `basic-memory` CLI. It records findings into Markdown notes and categorizes them using tags. Notes remain accessible across restarts.

Searching relies on semantic queries, titles, or date filters. You can also build context trees for paths like `memory://topic/...` before tackling complex tasks. Without `basic-memory` installed via `pip`, the skill cannot run any commands.

The local database updates through `basic-memory sync`. Each note stays organized with standard frontmatter metadata.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add johnlindquist/claude --skill memory -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/memory/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/memory/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add johnlindquist/claude --skill memory -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/memory/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add johnlindquist/claude --skill memory -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/memory/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install johnlindquist/claude memory
```

2. **Manually: put the files in place**
- File: `.github/skills/memory/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add johnlindquist/claude --skill memory -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/johnlindquist/claude --path skills/memory
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/memory/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add johnlindquist/claude --skill memory -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/johnlindquist/claude/tree/HEAD/skills/memory/SKILL.md

## When to use it
- store architectural choices and patterns across coding sessions
- search saved notes semantically by topic or tag
- load historical context before refactoring or building features
- track recent updates in the local knowledge base

## Example prompts
- Search memory for notes related to JWT authentication
- Save our database schema decision to the decisions folder with tag backend
- Build context for memory://topic/api before we start refactoring

## Similar
- [memory-onboarding](https://affpapa.org/en/nevibecode/skills/memory-onboarding.md) — skill · 960 installs
- [memory-notes](https://affpapa.org/en/nevibecode/skills/memory-notes.md) — skill · 1300 installs
- [wiki-context-pack](https://affpapa.org/en/nevibecode/skills/wiki-context-pack.md) — skill · 1600 installs
- [wiki-narrate](https://affpapa.org/en/nevibecode/skills/wiki-narrate.md) — skill · 366 installs
- [obsidian-cli](https://affpapa.org/en/nevibecode/skills/obsidian-cli.md) — skill · 81000 installs
- [obsidian](https://affpapa.org/en/nevibecode/skills/obsidian.md) — skill · 6400 installs

## Other versions with the same name
- [memory · yonatangross](https://affpapa.org/en/nevibecode/skills/orchestkit-memory.md) — 749 installs
- [memory · plasma-ai](https://affpapa.org/en/nevibecode/skills/memory.md) — ★ 788
- [memory · harperreed](https://affpapa.org/en/nevibecode/skills/harperreed-memory.md) — ★ 336

From the same set: [johnlindquist/claude](https://affpapa.org/en/nevibecode/by/johnlindquist/claude.md) — 3 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
