# memory-doctor

The memory-doctor Claude Code skill checks local Basic Memory projects and explains its findings. It runs when search misses or repeats notes, or a save seems to have gone missing.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 249 installs · ★ 4660 repo stars
- Author: basicmachines-co
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/basicmachines-co/basic-memory/tree/HEAD/skills/memory-doctor/SKILL.md
- Updated: 2026-10-24
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/memory-doctor

## What it does

The skill runs `bm doctor`, interprets its project reports, and explains the issues it finds. The check reads data only. It shows suggested repair commands and runs them only after the user approves.

A shell with the `bm` or `basic-memory` command is required. The default check skips the self-test; run that test if the report is clean but the issue persists. It writes a note in a temporary sandbox, then indexes and searches for it. Cloud projects appear separately because local commands cannot repair them.

After approved repairs, the skill runs the check again. A full search reindex reads every project file and may take a while on a large project.

## Install

### Claude Code (native platform)

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

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add basicmachines-co/basic-memory --skill memory-doctor -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add basicmachines-co/basic-memory --skill memory-doctor -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install basicmachines-co/basic-memory skills/memory-doctor
```

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

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add basicmachines-co/basic-memory --skill memory-doctor -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/basicmachines-co/basic-memory --path skills/memory-doctor
```

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add basicmachines-co/basic-memory --skill memory-doctor -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/basicmachines-co/basic-memory/tree/HEAD/skills/memory-doctor/SKILL.md

## When to use it
- find why search misses an existing note
- investigate duplicate search results
- check whether a saved note changed its file
- diagnose Basic Memory after a crash or interrupted import
- apply a suggested repair after approval

## Example prompts
- Check Basic Memory: search misses a note that should be there.
- Check the `work` project and explain why search returns duplicates.
- Run a check after an interrupted import and show the repair commands.

## Similar
- [memory-ingest](https://affpapa.org/en/nevibecode/skills/basicmachines-co-memory-ingest.md) — skill · 555 installs
- [memory-literary-analysis](https://affpapa.org/en/nevibecode/skills/basicmachines-co-memory-literary-analysis.md) — skill · 536 installs
- [groove-utilities-memory-doctor](https://affpapa.org/en/nevibecode/skills/groove-utilities-memory-doctor.md) — skill · 555 installs
- [deskstack-doctor](https://affpapa.org/en/nevibecode/skills/deskstack-doctor.md) — skill · ★ 86 repo stars
- [memory](https://affpapa.org/en/nevibecode/skills/johnlindquist-memory.md) — skill · 363 installs
- [ctx-doctor](https://affpapa.org/en/nevibecode/skills/ctx-doctor.md) — skill · 1800 installs

From the same set: [basicmachines-co/basic-memory](https://affpapa.org/en/nevibecode/by/basicmachines-co/basic-memory.md) — 23 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
