memory-audit
Skill0 starsChanged 15 days agoMITView on GitHub
Check stored memories against external truth (GitHub PRs, Jira issues) and propose corrections where the world moved on. Use when memory-verify.sh reports STALE or TRIAGE, when a memory's claim about a PR or ticket looks out of date, or before trusting an old memory that says something is still in flight. Not for tidying or index size.
18 other projects use a version of this.
Adopted by
Most recently taken up by
- Magnifico4625/locustheir own version, first seen Nov 29, 2026
- kaiitunnz/claude-skillstheir own version, first seen Nov 26, 2026
- samuelkarp/skillstheir own version, first seen Nov 22, 2026
- adamlinscott/claude-skillstheir own version, first seen Nov 18, 2026
- chuckplayer/claude-agent-packtheir own version, first seen Nov 16, 2026
- dvy1987/agent-loomtheir own version, first seen Nov 15, 2026
Other versions18 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 18
- FastLED/FastLED★ 7.5ksame name
- nightscout/AndroidAPS★ 1.2ksame name
- Magnifico4625/locus★ 15same name
- chuckplayer/claude-agent-pack★ 8same name
- shakhruz/mila-core★ 5same name
- adamlinscott/claude-skills★ 4same name
- dvy1987/agent-loom★ 4same name
- mfang0126/openclaw-skills★ 4same name
- qwwiwi/agentos-skills-public★ 4same name
- AcKeskin/contexture★ 2same name
8 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 repository6 other files it gives its agents.
- comms-hubSkill
- harness-checkupSkill
- memory-archiveSkill
- pr-reviewSkill
- skill-forgeSkill
- slack-draftSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 3 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 15 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
Leave everything else to the CLI and memory-archive: merging duplicates, rewriting relative dates, shortening and reordering the index.
- Very specific: line 45
If that path does not exist, use bin/memory-verify.sh in a harness checkout.
- Very specific: line 69
Every run looks GitHub claims up in one GraphQL call per repo per 100 claims, so what is slow now is the pass over the memory files, not …
- Distinctive: line 75
Read the whole file. Then:
- Distinctive: line 80
Resolve the reference to a repo: Use repo names in the file's own text first.
- Very specific: line 88
If the title has nothing to do with the memory's subject, you resolved to the wrong repo.
- Distinctive: line 91
If you cannot resolve it, stop and ask: Do not guess a repo from the number's magnitude alone.
- Very specific: line 127
When no lookup can settle the wording (a recurring rota, a quoted example), put verify: none <reason> in the frontmatter instead.
- Very specific: line 131
5. Keep the index honest: If you rename or delete a memory, update the matching - Title — hook line in that store's MEMORY.md.
- Very specific: line 144
Do not touch
CLAUDE.md: If a memory contradicts it, annotate the memory with contradicts CLAUDE.md, verify which is current and raise it.
“Common” is measured: kept by at least 6 in 10 of the 15 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
Auditing memories against external truth
Claude Code's own memory hygiene (the limit checks on every write, and auto-dream where it runs) reasons over memory content and session logs, and never leaves the machine. So a memory saying "PR #4821 is a held draft" survives consolidation intact: the contradiction lives on GitHub. Working out which external lookup settles it needs judgment, and that is this skill's job.
Leave everything else to the CLI and memory-archive: merging duplicates,
rewriting relative dates, shortening and reordering the index. The measured
history of why is in docs/history/memory-hygiene-problems.md.
The hard part, and why a script cannot do it alone
memory-verify.sh (installed at ~/.claude/memory-verify.sh) resolves any
memory carrying a verify: block. Most memories do not carry one, and their
references are genuinely ambiguous:
- References are usually bare:
#4821, notacme/api#4821. The same number exists in every repo. - A single memory often cites many references; only one or two are the claim under test, the rest are supporting detail.
- Memories name several repositories, or none, so the file may not say which repo a number belongs to.
So your value is picking the operative claim and resolving the reference. Then
write a verify: block back into the file, and that memory is mechanically
checkable from then on. Leave a block on every file you touch, even one you
conclude is still accurate.
Procedure
1. Collect findings.
bash ~/.claude/memory-verify.sh --json # every store
bash ~/.claude/memory-verify.sh --json --store <slug> # one storeIf that path does not exist, use bin/memory-verify.sh in a harness checkout.
Each line is {status, store, file, detail}, and each status means one thing:
STALE: already proven wrong. Go straight to step 3.TRIAGE: asserts open state with noverify:block, so nothing can check it. Needs steps 2 and 3. Not age-gated: an unverifiable claim about something still open is a defect the moment it is written.NEEDS_MCP: a Jira claim only this skill can resolve. Batch them:memory-verify.sh --jira-keysprintskey in (...)lines of 50 keys; run each line as one JQL search over MCP, never one lookup per key.SKIP: a malformed claim, or aghref that isnot-found: fix the memory.lookup-failedorgh-unavailableis gh's failure, not the memory's: checkgh auth statusand rerun before editing anything.ORPHAN: no index line, archive line or hub[[link]]reaches the file, so nothing recalls it. Read it, then propose its line; never delete it for this.VERIFIED,WAIVED: nothing to do. Both are counted;--alllists them.HOOK: advisory. An index hook trails off mid-claim while the memory's owndescription:still carries the payload. Rewrite the one line inMEMORY.mdfrom the description; nothing else changes.OVERSIZE: the index is past a load limit. Claude Code already reports this on the write that caused it; hand it tomemory-archive, not this skill.SETTLED,CANDIDATE: advisory,--curateonly.
Every run looks GitHub claims up in one GraphQL call per repo per 100 claims,
so what is slow now is the pass over the memory files, not the claims, and
--curate adds a second pass over every file.
2. Work out what the memory actually claims.
Read the whole file. Then:
- Find the operative claim: the sentence asserting current state ("held", "PENDING", "awaiting review", "not yet deployed"). Supporting references that merely explain history are not claims to verify.
- Resolve the reference to a repo. Use repo names in the file's own text first. If the file names several, match each reference to the repo discussed in its own paragraph.
- Confirm the match before trusting it. Fetch the title and compare it to
what the memory describes:
If the title has nothing to do with the memory's subject, you resolved to the wrong repo. A confidently wronggh pr view <num> --repo <owner/repo> --json state,title,mergedAtverify:block is worse than none, because every later run trusts it. - If you cannot resolve it, stop and ask. Do not guess a repo from the number's magnitude alone.
3. Report, and propose an edit. Never delete on your own initiative.
Touch a memory only after an external check confirms its claim is false. Deleting on a heuristic destroys knowledge silently, worse than staleness.
For each affected memory, show what it claims (quoted), what the lookup
returned with the date (merged 2026-06-15), and the proposed edit. Prefer the
smallest correct one:
- Claim overtaken: rewrite the claim to what is now true and keep the
history.
PENDING: merge, deploy, live-verifybecomesMerged 2026-06-15 and verified in prod. - Self-contradiction: an appended update left the file asserting both open and closed state. Delete the superseded sentence, keep the current one.
- Whole memory now worthless: say so and recommend deletion, but let the user confirm. If the memory records a lesson rather than a status, the lesson usually outlives the ticket: keep it, fix the status line.
4. Leave a verify: block behind, near the top of the body:
verify:
- gh acme/api#4821 merged
- jira PROJ-123 DoneOne <kind> <ref> <expected-state> claim per line: gh takes owner/repo#number
and merged, open or closed (issues too); jira takes the issue key and
the status name, and this skill resolves it over MCP, not the script.
Record what you expect to stay true. merged is stable; open will go stale
by design, which is the point: that is the claim worth re-checking.
When no lookup can settle the wording (a recurring rota, a quoted example), put
verify: none <reason> in the frontmatter instead. The memory is then counted
as waived, not triaged; with no reason it is a SKIP and waives nothing.
5. Keep the index honest. If you rename or delete a memory, update the
matching - [Title](file.md) — hook line in that store's MEMORY.md. A finding
on MEMORY.md:<line> is aged by the memory it links to: resolve the claim, then
rewrite the one-liner, which loads every session. The index gets no verify:
block; put it on the memory the line links to and keep the hook consistent.
Rules
- Never delete a memory without an external check confirming it is false, and never without the user agreeing.
- Never edit a memory you have not read in full. The operative claim is often not the one the scanner flagged.
- Absolute dates only. Rewrite "last week" to the actual date.
- Do not touch
CLAUDE.md. If a memory contradicts it, annotate the memory withcontradicts CLAUDE.md, verify which is currentand raise it. - Batch your questions. Audit the set, then bring one set of proposals, not one per file.
- One store by default, the current project's. Audit every store only when asked: memory is siloed per launch directory, so one repo can have two stores.
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.

