memory-review
Skill0 starsChanged 5 months agoMITView on GitHub
On-demand review of a file-based memory store. Flags stale (time-decayed), low-confidence, and superseded feedback/project memories for human-gated action — confirm, demote, delete, or edit. Never auto-deletes. Runs the one-time backfill on first use. Use when asked to "memory review", "review memory", "prune memory", or "what memories are stale".
7 other projects use a version of this.
Adopted by
Most recently taken up by
- cveralyon/axel-setuptheir own version, first seen Nov 8, 2026
- denormans/claude-code-workflowtheir own version, first seen Nov 8, 2026
- letsloose501/sqs-agent-memorytheir own version, first seen Nov 3, 2026
- lorena-bordonaba-pau/youtube-agenttheir own version, first seen Oct 13, 2026
- Gord1y/countersign-skillstheir own version, first seen Oct 11, 2026
- Hassaan146/claude-skillstheir own version, first seen Jul 25, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- Hassaan146/claude-skills★ 18same name
- cveralyon/axel-setup★ 4same name
- finger88/my-claude-skills★ 3same name
- Gord1y/countersign-skills★ 2same name
- letsloose501/sqs-agent-memory★ 2same name
- lorena-bordonaba-pau/youtube-agent★ 2same name
- denormans/claude-code-workflow★ 1same name
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.
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Read-flag-act loop over a file-based memory store — one fact per .md file with YAML frontmatter (see SCHEMA.md in the repo root).
- Very specific: line 26
If needsBackfill is non-empty, the four confidence fields haven't been added yet:
“Common” is measured: kept by at least 6 in 10 of the 6 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 Review
Read-flag-act loop over a file-based memory store — one fact per .md file with
YAML frontmatter (see SCHEMA.md in the repo root). Set MEMORY_DIR to your
memory directory, or pass the path as the first argument to each script. Scripts
live in scripts/ beside this file. Nothing is auto-deleted — every
destructive action needs an explicit per-entry choice from the user.
Confidence + staleness apply to feedback and project memories only.
user / reference are stable facts and are never flagged or migrated.
Step 0 — Backfill check (first run only)
node scripts/review.mjs --json # MEMORY_DIR set, or: node scripts/review.mjs /path/to/memory --jsonIf needsBackfill is non-empty, the four confidence fields haven't been added yet:
- Dry-run:
node scripts/backfill.mjs - Show the user the count and a sample of "would migrate" lines.
- On approval:
node scripts/backfill.mjs --apply - Show before/after
head -12of one flat and one nested file as proof.
Note: created / last_confirmed seed from each file's git-add date (or today
if the store isn't git-tracked). They start accumulating real meaning from the
first review onward.
Step 1 — Flag
node scripts/review.mjsFour groups:
- decayed — stored confidence was once above the 0.3 floor but its time-decayed
effective confidence (
stored × Weibull-survival(age, type)) has fallen to/below it. A core (0.9) fact resists decay far longer than a moderate (0.5) one at the same age. Row showsage → eff. - lowConfidence — a human deliberately set it ≤ 0.3 to begin with (born-low, not decayed).
- superseded — the entry carries a
superseded_by: <slug>field (Step 2). - needsBackfill — should be empty after Step 0.
Decay never touches the files — effective is computed at review time only. Stored
confidence stays the human-set banded anchor; decay just surfaces the entry for a human
to re-confirm or retire. Params + calibration live in DESIGN.md.
Step 2 — Supersession cross-check
superseded_by is set at memory-write time, not by the script: when a new memory
overtakes an old one on the same subject, add superseded_by: <new-slug> to the loser's
frontmatter instead of silently deleting it. The flagger then surfaces it here for
human-gated cleanup.
For decayed / low-confidence entries with no field yet, still check for an overtaking rule
(e.g. a contradicting commit or a newer note on the same topic). On a match, set
superseded_by on the loser, then propose deletion in Step 4.
Step 3 — Present the flagged list
One grouped table — Decayed · Low-confidence · Superseded — each row: name, type, stored confidence, age, effective confidence (decayed) or the superseding slug (superseded).
Step 4 — Act per entry (user chooses)
| Choice | Edit to make |
| Confirm | last_confirmed = today; reaffirm_count += 1; optionally raise confidence one band. Resets the decay clock — the entry drops out of decayed until age accrues again. |
| Demote | Lower confidence one band (0.9 → 0.7 → 0.5 → 0.3). |
| Delete | Remove the topic file AND its one-line entry in any index file. |
| Edit | Open for manual correction, then Confirm. |
A decayed entry just needs Confirm if it's still true (re-confirming pushes the flag
out), or Delete if time proved it irrelevant. A superseded entry is normally Delete
(the winner already holds the truth) — verify the winning slug exists first.
Apply edits directly on the file's frontmatter, matching its existing style (flat keys,
or indented under metadata:).
Confidence bands
0.3 tentative · 0.5 moderate · 0.7 strong · 0.9 core. Stored confidence
stays on these discrete bands (human-legible); decay does not move it — it only
lowers the ephemeral effective confidence used for flagging. Full movement rules
(new / reaffirmed / contradicted / superseded / decayed) live in SCHEMA.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
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.

