memory-graveyard

memory-graveyard is a skill for Claude Code, Codex from sfrangulov/skill-graveyard. It costs 103 tokens per session (514 once invoked), scanned A, original, MIT.

A command-line audit for Claude Code project memory, where MEMORY.md indexes saved notes and memory files. It checks which notes are used and whether the index points to valid files.

In plain words
What is it for?
Use it to audit, lint, group, and plan removal of memory entries across projects, with optional snapshot backups when changes are applied.
Why use it?
It helps find obsolete notes, broken links, unused files, and content that may be cut off when the agent reads its memory.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit Use it to audit, lint, group, and plan removal of memory entries across projects, with optional snapshot backups when changes are applied.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sfrangulov/skill-graveyard/memory-graveyard
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sfrangulov/skill-graveyard --skill memory-graveyard
Clone the repo
git clone --depth 1 https://github.com/sfrangulov/skill-graveyard

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for memory-graveyard

README.md
[![agentmods](https://agentmods.dev/badge/skills/sfrangulov/skill-graveyard/memory-graveyard.svg)](https://agentmods.dev/skills/sfrangulov/skill-graveyard/memory-graveyard)
Your own site
<a href="https://agentmods.dev/skills/sfrangulov/skill-graveyard/memory-graveyard"><img src="https://agentmods.dev/badge/skills/sfrangulov/skill-graveyard/memory-graveyard.svg" alt="Measured on agentmods" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 514 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00103 $0.00514
Opus 5 $0.00051 $0.00257
Sonnet 5 $0.00021 $0.00103
Haiku 4.5 $0.00010 $0.00051

Measured 7d ago against content hash bfd9f8016c13, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

memory-graveyard scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/memory-graveyard/SKILL.md · 33 lines

What it actually says

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.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 33 lines · 103 tokens per session scan A bfd9f8016c13

Subscribe to this mod's changes

memory-graveyard is a skill published in the GitHub repository sfrangulov/skill-graveyard (10 stars, last pushed 1mo ago), licensed MIT. It adds 103 tokens to every session and 514 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

journey-simulation

Use when caller wants to observe how a stranger encounters a flow, artifact, or sandbox — triggers like "simulate a user journey", "test our onboarding / checkout / signup", "will my ICP convert", "how does a cold reader experience this README", "first-time user test", "cognitive walkthrough", or any request to…

RockyHong/super-bootstrap · 79 tokens

check-docs-consistency

Cross-reference project docs for drift, stale references, and contradictions. Outputs timestamped report. Discovers Markdown wherever it lives in the repo.

RockyHong/super-bootstrap · 34 tokens

maintaining-session-continuity

Judgment for using cc-reload — carrying a session's working thread across a context reset via .reload/session.md: snapshot, arm, rehydrate after /clear, /compact, or auto-compaction. Use when saving state before a reset, handing off mid-task, holding working state as context fills, or working with /snapshot, /reload…

betmoar/cc-reload-plugin · 110 tokens

brain-log

Show brain sync and evolution history.

toroleapinc/claude-brain · 10 tokens

memory

Persistent, token-efficient project memory. When ON, maintains a .shob/memory/ folder of structured .md files so the full context of the project is NEVER lost across responses, sessions, or context compaction. Uses progressive disclosure — routes through a lightweight INDEX and loads only the files a task needs…

shobcoder/shob · 146 tokens

save-learning

Saves user instructions as persistent learnings for future sessions. Use when the user says 'remember this', 'always do X', 'from now on', 'never do Y', or gives any instruction they want persisted across sessions. Proactively suggest when the user states a preference, convention, or rule they clearly want followed in…

caliber-ai-org/ai-setup · 71 tokens