agentleFS
sfrangulovsfrangulov/skill-graveyard/skills/memory-graveyard/SKILL.md

memory-graveyard

Skill10 starsChanged 6 months agoMITView on GitHub

Audit which entries in your project's MEMORY.md Claude actually reads. Use when the user wants to find dead memory entries, broken pointers in MEMORY.md, orphan memory files, or surface entries that fall below the system-prompt truncation cutoff. Triggers on "audit MEMORY.md", "dead memory entries", "broken memory pointers", "memory hygiene", "unused memory", "memory truncation". Runs locally; reads ~/.claude/projects session JSONL logs and memory directories. No network calls.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    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
  1. Very specific:

    Run via npx memory-graveyard@latest <subcommand> [flags] — no install needed.

    line 16
  2. Distinctive:

    After running, print output verbatim.

    line 32

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

memory-graveyard

CLI that audits per-project file-based memory (MEMORY.md index + memory/*.md entries). Bucketed audit (ACTIVE / DEAD / MISSING / HALLUCINATED) plus a static linter that flags broken pointers, orphan files, truncation-budget overflow, index size, and stale dated entries.

How to invoke

Run via npx memory-graveyard@latest <subcommand> [flags] — no install needed.

Subcommands

  • audit (default) — 4-bucket per-project table. Flags: --days N, --only <bucket>, --json, --project <path>, --claude-dir <path>.
  • lint — static checks on MEMORY.md and the memory dir. Flags: --truncation-cutoff N (default 200), --stale-days N (default 30), --json. Exit 1 on findings.
  • prune — plan removal of dead entries and hallucinated pointers. --apply to execute (with snapshot backup in .graveyard-backup/<timestamp>/). --include orphans|broken-pointers, --exclude <basename>.
  • projects — cross-project sweep, surfaces cold memory dirs. --cold-days N (default 90).

Decision flow

  • "what entries in my MEMORY.md are dead?" → npx memory-graveyard@latest
  • "is anything in MEMORY.md broken?" → npx memory-graveyard@latest lint
  • "clean up MEMORY.md" → prune, then --apply
  • "which projects have stale memory dirs?" → projects

After running, print output verbatim. Do not summarize unless the user asks.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.