/agent-toolkit:memory-doctorfrom Agent Toolkit
Scans Claude Code's project memory (MEMORY.md) block by block, presenting each entry for the user to relocate, merge, archive, or keep.
Ships in Agent Toolkit. 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.
None: SKILL.md is the whole skill.
Agent-memory is an unseen side-channel into every session's context window: facts accumulate there, often by accident, that the user never reviews and cannot govern. This skill drains it. Technically nothing should live in project memory — durable guidance belongs in homes the user controls (project docs, project skills/rules, user-level skills/rules), and the rest is garbage. Block by block, move each entry to its proper home or archive it, until memory trends toward empty and the user — not the memory store — decides what reaches the context window.
The skill guesses and recommends; the user decides. Every verdict, scope, form, and target is a proposal the user confirms or flips. When unsure, ask. Nothing is moved, deleted, or written without explicit per-item approval. For every block the user gets the whole fixed menu — relocate/merge, archive (recoverable), keep, or a custom action they type — never just the recommended verdict, never a pruned subset.
Find the memory store for the current project. Its location is agent-specific — other agents store
it elsewhere, or not at all. Claude Code example: the store sits under
${CLAUDE_CONFIG_DIR:-~/.claude}/projects/, the <root> below. First check the settings for a
relocated memory dir (autoMemoryDirectory in any scope), then the CLAUDE_CODE_PROJECT_DIR_NAME
env var, which names the <slug> directory outright but is honored only with CLAUDE_CONFIG_DIR
set. Otherwise slugify the main worktree root — the parent of
git rev-parse --path-format=absolute --git-common-dir (not --show-toplevel, which in a linked
worktree returns the worktree's own path), else the cwd — by replacing every non-alphanumeric
character with - (e.g. /Users/me/my.app → -Users-me-my-app), then look for
<root>/<slug>/memory/MEMORY.md; no exact match → list <root> and pick the entry matching the
repo root. If that fails too, or the user runs a different agent, ask the user for the memory
path. Only discovery is agent-specific; everything below is agent-agnostic.
Block = the smallest self-contained memory unit — typically one memory file plus its MEMORY.md
index line, generally one fact each, though a store may group differently. If the memory is a single
flat file with no index, treat each section as a block.
# | block | content (≤1 line) | verdict | why + target. Every cell is a summary:
the content cell one line, the why + target cell folding justification, duplicate/garbage
evidence, and relocate scope/form/path. Full detail for a block waits for its question (step 3).
The table numbers each block (1…N); refer to a block by that number, in order, and never re-list
block numbers out of sequence in surrounding prose. The table ends the turn; step 3 begins the
next — a same-turn question buries the table behind the prompt.explain-in-simple-language when available.Both axes are proposals the user confirms or flips.
Target path. Each relocate or merge proposal names the concrete file: an existing doc, skill or
rule to merge into, or a new file in the home the repo's governing docs name (the docs index,
onboarding or doc-placement doc); without one, a skill or rule falls back to the agent's project
config dirs (e.g. .claude/skills, .claude/rules), a doc to a path the user names. User-level
skills and rules go to the agent's own config dirs (e.g. ~/.claude/skills, ~/.claude/rules), a
new user-level doc to a path the user names: the block's question asks whether they keep a
version-controlled home (once per run; never search for one) and, if so, recommends it over an
untracked location.
Do each relocate or merge through self-improve in its driven mode: hand it the block's content plus the confirmed scope, form and path; it drafts and applies the edit (routing the write through the matching compaction skill), and locates the home itself only for a target the user left open. This skill owns discovery, enumeration, classification and the archive path; self-improve owns the write.
Memory files live outside the project repo and are not in git, so a delete is irreversible.
rm. Worthless blocks are moved to memory/.archive/, not deleted — an
archive folder costs nothing in context and stays recoverable.MEMORY.md index line in the same step as any block
removal or relocation: never orphan a file, never dangle a pointer to a moved or archived one.Print an ephemeral chat summary — no report file (that would just be new uncontrolled state). Include counts plus each block's disposition (relocated → where, merged, archived, kept, skipped), and list kept blocks with each one's "no home because…" reason. The real deliverables are the cleaned memory and the archive folder.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub eai-org/agent-toolkit --plugin agent-toolkit31 skills in this plugin
/agentify-projectMake a project agent-ready by converging it toward a canonical agent-neutral structure. Re-runnable, and doubles as an audit./attach-to-ticketAttach pasted images, files or URLs to a fetched ticket, saved beside its ticket file and referenced from it, or fill an attachment the fetch could not download. Local only — never queries or edits the tracker./check-ticket-implementationCheck how much of a ticket is already implemented and save a per-requirement status report.Other plugins' skills for the same job