memory-audit
Skill0 starsChanged 4 months agoMITView on GitHub
Audit Claude's persistent auto-memory (MEMORY.md + memory files) against current workspace state; propose stale-entry updates, merges, and deletions for user approval, then apply the approved batch. Use periodically (e.g. when MEMORY.md grows past ~30 entries or quarterly) or when recalled memories keep contradicting the repo.
14 other projects use a version of this.
Adopted by
Most recently taken up by
- nightscout/AndroidAPStheir own version, first seen Nov 1, 2026
- shakhruz/mila-coretheir own version, first seen Nov 1, 2026
- AcKeskin/contexturetheir own version, first seen Nov 1, 2026
- qwwiwi/agentos-skills-publictheir own version, first seen Nov 1, 2026
- adamlinscott/claude-skillstheir own version, first seen Oct 30, 2026
- AdityaRon/claude-code-harnesstheir own version, first seen Oct 29, 2026
Other versions14 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 14
- FastLED/FastLED★ 7.5ksame name
- nightscout/AndroidAPS★ 1.2ksame name
- AdityaRon/claude-code-harness★ 14same name
- mfang0126/openclaw-skills★ 4same name
- qwwiwi/agentos-skills-public★ 4same name
- adamlinscott/claude-skills★ 3same name
- shakhruz/mila-core★ 3same name
- AcKeskin/contexture★ 2same name
- andreijirohdev-labs/gen-ai-labs★ 1same name
- brenbuilds1/skills★ 1same name
4 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository39 other files it gives its agents.
- anecdotesSkill
- backupSkill
- checkSkill
- cite-syncSkill
- dataSkill
- diariosSkill
- distill-styleSkill
- driveSkill
- dropboxSkill
- fetch-annotationsSkill
- findings-auditSkill
- findingsSkill
- gmailSkill
- handoffSkill
- howtoSkill
- hypothesisSkill
- iatSkill
- ideaSkill
- inboxSkill
- institutionsSkill
- literatureSkill
- llmkitSkill
- meetSkill
- new-pipelineSkill
- new-projectSkill
- nextSkill
- otterSkill
- outlookSkill
- questionsSkill
- referee-panelSkill
- siteSkill
- style-checkSkill
- style-reviewSkill
- style-reviseSkill
- tactiqSkill
- theorySkill
- validate-sectionSkill
- whatsappSkill
- zoomSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 31
Read MEMORY.md and every memory file it indexes.
- Distinctive: line 39
Check them against the current repo state — read the referenced files, grep for the flags, check dates.
- Distinctive: line 75
Never apply without approval.
- Distinctive: line 93
Never auto-apply: Every mutation requires explicit approval.
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/memory-audit — Prune and refresh Claude's persistent memory
The memory counterpart of /distill-style. Auto-memory is an
append-mostly store: entries are written when something non-obvious is
learned, but nothing verifies them later. Entries rot in three ways —
the fact changes (a bug gets fixed, a file moves, a decision is
superseded), the fact gets absorbed into durable docs (rules, findings,
decisions logs), or two entries accumulate that cover the same thing.
Rotten memories are worse than none: they are recalled with the
authority of "what I know" and contradict the repo.
Arguments
/memory-audit— audit the current session's memory directory (the one whoseMEMORY.mdloads into context)./memory-audit --all— audit every store under~/.claude/projects/*/memory/./memory-audit --dry— produce the report only; skip the apply step even if the user approves inline.
Workflow
1. Inventory
Read MEMORY.md and every memory file it indexes. Also list memory
files NOT indexed in MEMORY.md (orphans) and index lines whose file
is missing (dead pointers) — both are findings by themselves.
2. Verify each entry against the workspace
For each memory file, extract its checkable claims: file paths, flags, numbers, states ("X is pending", "Y is broken", "use Z workaround"). Check them against the current repo state — read the referenced files, grep for the flags, check dates. Delegate this to cheap subagents in batches when the store is large; each verifier returns entry → {holds | changed | absorbed | unverifiable} with one-line evidence. Classify:
- current — claims hold; keep unchanged.
- stale — a checkable claim no longer holds (file moved, bug fixed, number superseded). Propose an update or deletion.
- absorbed — the content now lives in a durable artifact (a rule file, decisions.md, findings.md, a method note). Propose deletion, citing where it lives now. Memory duplicating docs is recall noise.
- duplicate/overlap — two entries cover one fact. Propose a merge into the better-named file.
- unverifiable — states a preference or event the repo cannot confirm (e.g. user preferences, conversations). Keep unless the user says otherwise; flag only if it contradicts another entry.
Session-scoped trivia that should never have been saved (one-off task state, things fully derivable from the repo) is proposed for deletion regardless of freshness.
3. Write the proposal report
One numbered proposal (M1, M2, …) per action, grouped by action
type (delete / update / merge / index-repair). Each proposal shows the
entry's name, its current one-line description, the evidence (what was
checked, what came back), and — for updates — the exact replacement
text. Put the report in the conversation directly if it is short
(≤ ~15 proposals); otherwise write it to the scratchpad and give the
path.
4. User approval
Same protocol as /distill-style: the user replies "approve all",
"approve M1, M3", "approve all except M2", "reject M4 — <reason>".
Never apply without approval.
5. Apply
For approved proposals: edit or delete the memory files, update
MEMORY.md index lines to match (every file change has a matching
index change), fix [[...]] links that pointed at deleted/renamed
entries. Deletion is real deletion — memory is a working cache, not
history; the git-tracked repos are the archive.
6. Final report
Entries kept / updated / merged / deleted; store size before and after; any recurring rot pattern worth a note (e.g. "session-state entries keep appearing — stop saving those").
Rules and gotchas
- Never auto-apply. Every mutation requires explicit approval.
- Bias toward deletion. The index is read every session; each line must earn its context cost. When in doubt between "update" and "delete because the repo now records it", delete.
- Don't churn
user/feedbackentries on repo evidence alone — preferences aren't falsified by code. Flag contradictions between them instead. - Keep name slugs stable on update so inbound
[[links]]survive. --allmode: audit each store against its own project root, not the workspace root.- Cadence: worth running when
MEMORY.mdpasses ~30 lines, after a big refactor/migration, or when a recalled memory is caught wrong twice in one week.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

