Skip to content
Agent Memory
Skill

/memory-curate

Curate the Basic Memory graph: link orphan notes, propose typed relations, merge duplicates, audit tags and folders, build hub notes. Use to organize and connect a knowledge base as notes accumulate.

From plugin
basic-memory
4.6k32 skills5 commands1 MCP

Claude Code

$ npx -y skills add basicmachines-co/basic-memory --skill memory-curate --agent claude-code

SKILL.md

memory-curate.SKILL.md
name: memory-curate
description: "Curate the Basic Memory graph: link orphan notes, propose typed relations, merge duplicates, audit tags and folders, build hub notes. Use to organize and connect a knowledge base as notes accumulate."

Memory Curate

Maintain a healthy, well-connected knowledge graph. As notes accumulate, it pays to periodically organize, link, and curate the knowledge base so isolated notes become a connected graph.

This skill curates the **knowledge graph** — the notes, relations, and tags that make up the knowledge base. (For the notes' content — splitting bloated notes, consolidating scattered facts, retiring stale entries — see **memory-defrag**.)

Project scope

If the project is unknown, discover it with `bm_project_list()`. Pass a nonempty `project` on every note, folder, context and schema call, even with one project or a qualified `memory://` URL. Use the chosen project's name, `workspace/project`, or external ID; `<project>` below is a placeholder for it. Recent activity also requires `project`. Search accepts `project` for one project, `projects` for selected projects, or `all_projects=True` explicitly. Discovery and bundled manuals need no project. Keep the same scope when following returned paths, paginating, or recovering from a refusal.

When to Use

  • Asked to organize, clean up, or improve the knowledge base
  • Asked to find connections between notes, or what isn't linked yet
  • Orphan or unlinked notes are mentioned
  • Asked about duplicate or similar notes
  • Asked for help with folder organization or tag consistency
  • Phrases like "help me organize", "find related notes", "what's not linked", "clean up my notes"

Curation Capabilities

1. Find Orphan Notes

Orphans have no relations to other notes — they're islands in the graph.

# List notes, then read each to inspect its Relations section
bm_search(query="*", mode="text", page_size=50, project="<project>")
bm_read(identifier="note-to-check", project="<project>")
# Orphans have an empty (or missing) Relations section

`query="*"` lists everything only with `mode="text"`. A note whose body links to other notes, with wikilinks or ordinary Markdown links, is not an orphan even without a Relations section.

If the `bm` CLI is available, `bm orphans` lists notes with no relations in one call.

**What to do with orphans:**

  • Suggest relations based on content similarity
  • Ask whether they should connect to existing topics
  • Propose hub notes to gather related orphans (see capability 6)

2. Suggest Typed Relations

Analyze a note's content and propose meaningful connections.

bm_read(identifier="note-to-analyze", project="<project>")
# Pull out key terms, then search for related notes
bm_search(query="key terms from the note", project="<project>")

Suggest relations based on shared topics, complementary content (problem/solution, question/answer), sequence (part 1 → part 2), or hierarchy (parent concept → detail).

**Relation-type vocabulary:**

  • `relates_to` — general topical connection
  • `extends` — builds upon or elaborates
  • `implements` — realizes a concept or spec
  • `depends_on` — requires understanding of
  • `part_of` — hierarchy or composition
  • `contrasts_with` — presents an alternative view
  • `inspired_by` — source of insight
  • `enables` — makes something possible

Custom relation types are fine — use whatever verb is descriptive.

Add a confirmed relation with `bm_edit`:

bm_edit(
    identifier="API Design Decisions",
    command="insert_after_section",
    section="Relations",
    content="- depends_on [[Rate Limiter]]",
    project="<project>",
)

`insert_after_section` needs the heading to exist, and orphans often have no `## Relations`. Then append the section instead:

bm_edit(
    identifier="API Design Decisions",
    command="append",
    content="\n## Relations\n- depends_on [[Rate Limiter]]",
    project="<project>",
)

3. Identify Similar / Duplicate Notes

Find notes that may cover the same ground.

bm_search(query="topic keywords", project="<project>")
# Compare results for: similar titles, overlapping observations,
# shared tags, close-together timestamps

**Actions for duplicates:**

  • **Merge** into a single comprehensive note, then redirect the loser with a relation. If you delete the loser instead, links to it from other

notes stay as unresolved links; repoint them first

  • Link with `supersedes` / `updates` when one revises the other
  • **Differentiate** by adding context that clarifies each note's distinct focus
# Point an older note at the one that replaces it
bm_edit(
    identifier="DB Schema v1",
    command="insert_after_section",
    section="Relations",
    content="- updates [[DB Schema v2]]",
    project="<project>",
)

4. Folder Organization Review

bm_find(path="/", depth=3, project="<project>")

Look for overcrowded folders, single-note folders, inconsistent naming, and notes that belong elsewhere. Suggest grouping related notes into topic folders, adding subfolders for large categories, and a consistent naming convention. Move misplaced notes with `bm_move`. By default the permalink stays the same after a move, so links keep resolving. Projects with `update_permalinks_on_move` enabled rewrite it from the new path.

bm_move(
    identifier="API Design Decisions",
    destination="architecture/api-design-decisions.md",
    project="<project>",
)

5. Tag Consistency

bm_search(query="*", mode="text", page_size=100, project="<project>")
# Inspect tag patterns across results

Look for:

  • **Variant tags** — `architecture` vs `arch`; pick one and standardize
  • **Unused tags** — present on a single note, no longer carrying weight
  • **Over-used generic tags** — so broad they don't aid discovery
  • **Missing tags** — relevant notes lacking an obvious tag

6. Create Index / Hub Notes

After finding a cluster of

Read more
@basicmachines-co
Ships withbasic-memory

AI conversations that actually remember. Never re-explain your project to your AI again. Join our Discord: https://discord.gg/tyvKNccgqN

4.6k32 skills1 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
4.6k
Star history of basicmachines-co/basic-memory on GitHub, a chart by star-history.com

Other skills on basic-memory.

bm-decide

bm-decide

Capture a durable engineering decision in Basic Memory with rationale, alternatives, consequences, and affected work. Use when…

More skills from other plugins.

agent-cost-report

agent-cost-report

Believable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude…

claude-mem13d116k
@thedotmack@thedotmackInstall Skill
bot-handoff

bot-handoff

Keep a durable record of work passed between Bots in the shared Hindsight memory bank. Use when handing work to another Bot, when…

@vectorize-io@vectorize-ioInstall Skill
mempalace

mempalace

Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…

@mempalace@mempalaceInstall Skill
mempalace

mempalace

Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…

@milla-jovovich@milla-jovovichInstall Skill

Questions about memory-curate.

Which coding agents can use memory-curate?
memory-curate installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.