/memory:doctorfrom memory
Inspects the memory graph for stale nodes (long-unaccessed, never recalled) and prunes them after explicit confirmation. Use for memory health checks and cleanup.
Ships in memory. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The maintenance + inspection surface over the graph (graph mode only). Flags
stale nodes — last accessed more than the threshold (90 days by default)
and never recalled (access_count == 0) — and prunes them, but only after
explicit confirmation. Pinned nodes (importance >= 0.8) are never stale.
Recall maintains the access overlay, so a node that keeps getting recalled stays
fresh; one that nobody reads goes cold and surfaces here.
Run a read-only stale-node scan first, show the list to the user, and prune only after they explicitly confirm — never pass --prune --yes on their behalf.
doctor needs graph mode — see Memory preconditions. If memory is not initialized or is markdown-only, say so and stop — there is no graph to inspect.
Always list before deleting:
node "${CLAUDE_PLUGIN_ROOT}/scripts/bootstrap.mjs" doctor
Add --stale-days N to change the threshold. This only lists — nothing is
deleted.
If the user wants the stale nodes gone, re-run with --prune. It re-lists the
candidates and asks for a typed yes before deleting:
node "${CLAUDE_PLUGIN_ROOT}/scripts/bootstrap.mjs" doctor --prune
In a non-interactive shell, --prune refuses unless --yes is also passed. Pass
--yes only when the user has already confirmed.
importance >= 0.8) nodes as keepers; they never appear stale.--prune --yes on the user's behalf without their explicit go-ahead — pruning is destructive.--stale-days to force-flag nodes the user didn't ask to clean.The MCP server exposes the read-only half as memory_doctor (stale_days
arg). Pruning stays a confirmed CLI operation — it is not exposed over MCP.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
memory-graph, stale-nodes, memory-maintenance, graph-cleanup
npx claudepluginhub reddb-io/red-skills --plugin memory14 skills in this plugin
/context-statusReport the project context stack posture without mutating anything. Use when checking whether agent rules, domain docs, ADRs, Memory graph/telemetry, and LLM Wiki are ready before a large task or self-improvement loop./exportExport the memory graph to a self-contained, navigable bundle — graph.json (data), graph.html (an interactive node-link view that opens straight from disk), and audit.md (a health summary). Use when the user says "export memory", "visualize the memory graph", "show me the graph", "dump the memory graph", or wants to browse what's stored. Graph mode only./extractExtract durable facts from a transcript into the Memory graph through the configured AI provider. Use when the user wants to preserve decisions, gotchas, root causes, or reasoning traces from a conversation or log. Graph mode only; requires `provider` in the `plugins.memory` block of `.red/config.yaml`./healthReport Memory plugin operational health. Use before memory self-improvement, CI checks, or large agent runs to verify initialization, graph mode, freshness, Skill telemetry, ranked proposal candidates, and pending proposal files without mutating anything./improve-skillsGenerate approval-gated Skill improvement proposals from Memory Skill telemetry. Use when repeated failures suggest a skill should be patched, but direct self-modification would be unsafe./ingestWalk a repo (or a subtree) and populate the memory graph from its code and markdown — symbols, files, headings, concepts, and the edges between them. Use when the user says "index this repo", "ingest the codebase into memory", "/memory:ingest …", or when you want recall to know about the project's structure before working in it. Requires `memory init --mode graph` to have run.Other plugins' skills for the same job