memory-review
БесплатноЗапускает вложенные скриптыНе проверенReview Claude Code auto-memory for staleness against the session index and the repos each memory names, then propose per-file fixes, retirements, or…
от bendrucker★ 18 звёзд на GitHubОб этом скилле
Memory Review
Auto-memory drifts. A memory records what was true when it was written. Later work renames the file it cites, merges the PR it waits on, or settles the open question it tracks. Loaded as background context, a stale memory steers later sessions wrong. This pass checks every memory against current evidence and lets Ben decide what changes.
Arguments
<memory-dir>: review that directory, a~/.claude/projects/<project>/memory/path.--all: review every~/.claude/projects/*/memory/directory, one directory at a time, each run to completion before the next.- Default: the current project's memory directory.
Current project's memory directory: !sh "${CLAUDE_SKILL_DIR}/scripts/memory-dir.sh"
Today: !date +%F
Memory Format
A memory directory holds MEMORY.md, an index loaded into every session with one - [Title](file.md) — hook line per memory, plus one file per fact. Each file opens with frontmatter: name (kebab-case slug), description (one line, used for recall), and metadata.type (user, feedback, project, or reference). metadata may also include originSessionId, modified, and verified. Bodies link each other with name. feedback and project bodies follow the fact with Why: and How to apply: lines.
Writes
Bash writes under ~/.claude/projects are sandbox-denied. Make every memory edit with Write or Edit. Those tools cannot delete a file, so retirements end with one ! rm <paths> line for Ben to run, listed in the final report.
Edit only what Ben accepts. Re-read a file immediately before editing it, since another session may have changed it during the review.
Gather Evidence
Load the observability:session skill for every session-index step. Refresh the index once through it, then run ${CLAUDE_SKILL_DIR}/scripts/memory-activity.sql with its querying conventions and SET VARIABLE dir = '<memory-dir without trailing slash>'.
Each row gives a file's writes, last write, reads, and recalls (relevant_memories injections). A file with no row was written before the index's retention floor or outside any indexed session.
Read MEMORY.md and list the memory files. Compare the index with the directory yourself. A pointer to a missing file, a file with no pointer, and a hook that contradicts its file's description are each a finding.
Split the memory files into shards of about 12 and dispatch one analyst agent per shard, all in one message. Give each agent the brief in references/checks.md verbatim, followed by its file paths, the memory directory, today's date, its files' rows from the activity query, and the session skill's read-only query command and search command with every path resolved. Each agent returns one verdict block per file. With 12 or fewer files, run the checks inline instead.
Verdicts
Give each file one verdict:
- Current: every claim checked holds. Propose
metadata.verified: <today>. - Fix: the fact still applies but a detail is wrong, such as a renamed path, a merged PR still called open, a superseded number, or malformed frontmatter. Propose the exact replacement text.
- Retire: the fact is no longer true, the work it tracks finished with nothing left to apply, the repo now records it (a
CLAUDE.mdline, a rule, a skill, code), or another memory duplicates it. Propose deleting the file and itsMEMORY.mdline, and identify the replacement memory when it is a duplicate. - Unverifiable: the evidence needed is unavailable, such as a repo absent from this machine or a claim about Ben's preference with no later sessions bearing on it. Propose nothing and report the reason.
Spot-check agent verdicts before proposing them. Re-run one cited check yourself for each Retire, and for each Fix that changes a fact. Drop a verdict whose evidence does not reproduce.
Propose
Ask with AskUserQuestion, one question per file and up to four files per call. Order Retire first, then Fix, then Current. The consequential decisions then come first.
Each question names the file and the verdict, states the evidence in one sentence with the command or query result behind it, and shows the proposed change. Offer these options:
Accept: apply the change as proposed.Verify instead: for a Fix or Retire, stampmetadata.verified: <today>and leave the content.Skip: leave the file untouched.
A custom answer replaces the proposal. Apply what it says.
Apply
Apply each accepted change as soon as its answer arrives:
- Verified-on: add or replace
verified: <YYYY-MM-DD>undermetadatain the frontmatter. - Fix:
Editthe stated text. When the edit changes what the file is about, update itsdescriptionand the hook on itsMEMORY.mdline in the same pass. - Retire:
Editthe file's line out ofMEMORY.md, add the path to the retirement list, and fix anynamelink in other memories that pointed at it.
Report
End with:
- Counts by ver
Установить memory-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(sh "${CLAUDE_SKILL_DIR}/scripts/memory-dir.sh")Bash(date +%F)Вложенные файлы
FAQ
Что делает скилл memory-review?
Review Claude Code auto-memory for staleness against the session index and the repos each memory names, then propose per-file fixes, retirements, or verified-on dates for Ben to accept one at a time.
Как установить скилл memory-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл memory-review запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic