/superbeads:memory-curatorfrom superbeads
Use when several memories need deduplication, consolidation, or cleanup.
Ships in superbeads. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Turn a session's raw bd remember notes into deduplicated, consolidated, well-structured
memories — and prune the pile — using bd over text already in context. No runtime, no embeddings.
Announce at start: "I'm using the memory-curator skill to consolidate and structure the memory store."
bd remember calls. Offered, never automatic.Skill(memory-curator).Two classes; procedural memory (how-to / workflow) lives in the skills, never the memory store.
design, lesson, pattern, decision,
root-cause, research, correction. The durable core of the store.done, continuation, cleanup,
review. Consolidate and retire as they age; a cluster often distills into one semantic fact.Map a non-canonical prefix to the nearest canonical subtype — e.g. stress-test/plan-stress-test→design,
bug→root-cause, sdd→lesson, upstream→research, docs→pattern. If none fits, ask — don't
invent. If an extracted "memory" is really procedural, flag it for a skill — don't store it.
Every memory keeps its existing key and carries one greppable header line:
@type=semantic:lesson @created=2026-06-28 @salience=4 @refs=<bead-id>,<memory-key> @tags=memory,curation
<self-contained fact body>
@type — <class>:<subtype> from the taxonomy. @created — ISO date. @salience — 1–5, best-effort.
@refs — related bead IDs / memory keys. @tags — lexical filter.One line. The class makes the prune signal greppable (bd memories | grep '@type=episodic:');
@salience/@tags filter recall.
One pass. Input: the session (in context) + bd memories --json. Output: a reviewed list of
bd remember / bd forget commands. Propose least-destructive changes first (enrich + exact-duplicate
dedup); cross-cluster consolidation and pruning come after, and only where clearly safe.
bd memories --json for the full store; bd dolt status records the pre-sweep
state for rollback.@type to class:subtype (correcting any malformed @type it encounters). Store a
fact ONLY if it carries checkable evidence (cited file:line,
passing test, command output, closed bead) — the same bar as Agent-Filed Bead Discipline in
verification-before-completion. No evidence → do not store. Procedural how-to
→ flag for a skill, don't store. Never persist secrets, credentials, tokens, keys, or PII — the session hook
injects curated memories into every future session (the full store via bd prime) and Dolt history outlives bd forget.bd remember --key <existing>,
merging so the result keeps the MOST information (never silently shrink); skip what's already present.@refs to its sources, then retire the cluster. The only step that shrinks the pile.
Extract a record's durable content into a semantic memory BEFORE retiring it — never drop an episodic
record that still holds an un-consolidated fact.[superseded YYYY-MM-DD by <key>]) rather than
delete — Dolt keeps history either way, and a tombstone is reversible if the supersede was wrong.
Episodic records are the prune-first candidates, but never retire the most-recent continuation /
active handoff. Reserve hard bd forget for exact duplicates or true noise, with a cited reason.This mutates the store injected into every future session (curated by the session hook, in full via
bd prime) — a bad run corrupts the context layer invisibly. So:
bd forget without an exact-duplicate match or a cited supersede reason.| Thought | Reality |
|---|---|
| "I'll just apply the merges" | Never mutate silently. Propose the list; the user approves first. |
| "This memory is probably fine to store" | No cited evidence → it doesn't meet the bar. Drop or low-salience. |
| "I'll keep the shorter version on UPDATE" | UPDATE keeps the MOST information. Never silently shrink. |
| "Consolidate hard to shrink fast" | Lose no distinct fact; extract durable content to semantic first, then retire. |
| "Episodic, so safe to drop" | Never retire the latest continuation/handoff; soft-tombstone, never hard-delete. |
| "There might be a token in here, but it's internal" | Never persist secrets/PII. Redact or skip. |
bd create "Memory curation: <session/sweep>" -t chore
# after the user approved + you applied:
bd close <id> --reason "Curated: <N added, M updated, K consolidated, J forgotten>; pre-sweep Dolt <ref>"
Run this as the session/ledger-owning agent; a dispatched single-task subagent does not.
Invoked at: session-close (offered when a session produced ~3+ new memories —
see finishing-a-development-branch Step 7) and on-demand by the user.
Pairs with: verification-before-completion (supplies the evidence bar) and getting-up-to-speed
(its session-start bd forget is lightweight cleanup; this skill owns curation).
Memories arrive header-less from other skills; the curator assigns @type on contact. Do not add
@type emission to other skills — header-less-until-curated is the intended state.
The Capture Gate rejects approval/completion episodes, procedural recipes, raw failure output, current branch/HEAD/next-task state, and artifact pointers before storage. Curation does not weaken that bar. Preserve only the latest relevant continuation when it has an explicit @expires=YYYY-MM-DD; expired continuations are retirement candidates after user approval.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub the-inconvenience-store/superbeads --plugin superbeads23 skills in this plugin
/brainstormingUse when shaping a feature, component, or behavior change into an approved solution design./dispatching-parallel-agentsUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies/document-releaseUse when committed code is awaiting merge and its project documentation may be stale./executing-plansUse when a validated implementation graph must run without isolated subagents./finishing-a-development-branchUse when implementation work has reached a terminal branch state and the user must choose merge, PR, keep, or discard/getting-up-to-speedUse when an unfamiliar, stale, compacted, or unclear project session needs orientation.