memory-audit

memory-audit is a skill for Claude Code from adamlinscott/claude-skills. It costs 58 tokens per session (1,758 once invoked), scanned A, original, MIT.

A report-only check of Claude’s per-user memory for a project, covering the stored memory files and their internal health. It asks whether the report should be written for a general reader or as a detailed technical audit.

In plain words
What is it for?
Use it to review project memory and receive recommendations about its contents and organization.
Why use it?
It helps reveal stale, missing, orphaned, or structurally problematic memory entries without changing the memory files.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Part of the claude-skills plugin — 20 skills shipped together

Good fit Use it to review project memory and receive recommendations about its contents and organization.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/adamlinscott/claude-skills/memory-audit
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 adamlinscott/claude-skills --skill memory-audit
Clone the repo
git clone --depth 1 https://github.com/adamlinscott/claude-skills

Made for: Claude Code.

Or install claude-skills, the plugin that ships this one along with the rest of its 20 skills.

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-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/adamlinscott/claude-skills/memory-audit/github.svg)](https://agentmods.dev/skills/adamlinscott/claude-skills/memory-audit)
Your own site
<a href="https://agentmods.dev/skills/adamlinscott/claude-skills/memory-audit"><img src="https://agentmods.dev/badge/skills/adamlinscott/claude-skills/memory-audit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for memory-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/adamlinscott/claude-skills/memory-audit"><img src="https://agentmods.dev/badge/skills/adamlinscott/claude-skills/memory-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,758 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00058 $0.01758
Opus 5.5 $0.00023 $0.00703
Sonnet 5.5 $0.00012 $0.00352
Haiku 4.5 $0.00006 $0.00176

Measured 19d ago against content hash 04dcb3a81f95, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

memory-audit scanned grade A with 1 finding 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 19d 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.

Reads agent configuration directorieslowAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

Reliable way to find it: list `~/.claude/projects/` and pick the directory whose decoded name corresponds to the current

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

skills/memory-audit/SKILL.md · 146 lines

How it starts

The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are running a memory audit for the user's per-user Claude memory in this project.

Hard rule: this skill produces a report only. Do not edit, rename, move, or delete any memory file. If the user wants to act on findings, that is a separate follow-up turn after they review the report.

This skill focuses on the internal health of the memory directory itself. For how memory interacts with the wider repo — conflicts with CLAUDE.md, rules that never reach subagent prompts, broken doc links — see /context-audit.

Step 1 — Ask the user which report style they want

Before reading anything, call AskUserQuestion with:

  • question: "What kind of memory audit would you like?"
  • header: "Report style"
  • multiSelect: false
  • options:
    • label: "Non-technical summary" description: "Plain-English overview for project management or non-engineering review. Each remembered item is described in everyday language with a clear recommendation."
    • label: "Technical audit" description: "Full engineering audit: classification, stale-reference checks, orphaned files, and structural smells. For engineers maintaining the memory."

Wait for the answer before continuing. The user's choice determines the report format in Step 5.

Step 2 — Resolve the memory directory

The memory directory lives at ~/.claude/projects/<encoded-cwd>/memory/, where the encoded form replaces drive colons and path separators with -.

Reliable way to find it: list ~/.claude/projects/ and pick the directory whose decoded name corresponds to the current working directory. On Windows the path will look like C:\Users\<user>\.claude\projects\C--Users-<user>-...\memory\.

If the directory does not exist, stop and tell the user: "No memory has been recorded for this project yet — there is nothing to audit."

Step 3 — Read everything

  • Read MEMORY.md.
  • Read every .md file in the directory — both those the index points to and any that are not indexed. Do not assess a memory you have not read.
  • For each memory, note its declared type from frontmatter (one of: user / feedback / project / reference).
  • List the directory contents and identify:
    • Files in the directory not indexed in MEMORY.md
    • Index entries pointing to files that don't exist

Read the full file on GitHub · 146 lines

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. 19d ago Changed · +5 lines 04dcb3a81f95
  2. 1mo ago Changed bc27797ed171
  3. 1mo ago Changed · +1 tokens per session a8d0d9a93065
  4. 1mo ago Changed · +11 lines · +57 tokens per session 621c90f0d6d4
  5. 1mo ago First seen · 130 lines · 0 tokens per session scan A 87bc1db2fa1d

Subscribe to this mod's changes

memory-audit is a skill published in the GitHub repository adamlinscott/claude-skills (3 stars, last pushed 2d ago), licensed MIT. It adds 58 tokens to every session and 1,758 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.