
Memory audit
Audits a MEMORY.md cache against memory rules and proposes a move plan before editing
Memory audit is an open-source agent skill for knowledge and memory. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 33
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Memory audit
Memory audit is a one-file cleanup pass for a project's hot memory cache. When the cache grows past its line or byte limits, or when session-dated blocks pile up, it reviews each section and assigns an action such as moving a settled pattern into a concept article, dropping a session chronicle, removing a restated rule, or replacing a copied number with a pointer to its source.
The skill works in stages. It first reads MEMORY.md along with the existing concept files, handoffs, project rules and any deferred list from a previous audit. It then presents the proposed changes as a table with line savings and projected sizes against the caps, and waits for approval. Only after approval does it apply the moves, leaving pointer lines where content is relocated, and then saves any declined candidates to a dated file under context/audits.
It relies on the Read, Grep and Glob tools and on edit permissions limited to the memory and knowledge directories. No scripts are included. The workflow assumes a project layout with .claude/memory, knowledge/concepts and context/handoffs, and it is shipped as part of the memory-kit Claude Code plugin.
When your agent uses it
Audit MEMORY.md against the memory discipline — oversized sections, settled multi-session patterns that belong in knowledge/concepts/, session-headed chronicle blocks, restated rules, copied numbers, stale entries. Produces a move plan as a table for approval, then executes the approved moves atomically. Use when the SessionStart hook reports a tripped cap or session-headed blocks, when PreCompact blocks on an oversized cache, or when the user says "/memory-kit:memory-audit", "audit memory", "проверь память", "почисти память". Refuses only when no cap is tripped, no session block is flagged AND no settled-pattern candidate exists.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Instructions only, no scripts(see the files on GitHub)
- Asks for: Read, Grep, Glob, Edit(.claude/memory/**), Edit(knowledge/**)(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 1 file (7 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the memory-kit plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add awrshift/agent-memory-kit
/plugin install memory-kit@memory-kitOr copy only this skill to ~/.claude/skills/memory-audit:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awrshift/agent-memory-kit.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/memory-audit &&
cp -R "$tmp/plugins/memory-kit/skills/memory-audit" ~/.claude/skills/memory-audit &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/memory-audit inside it instead.
Copy the skill folder to ~/.agents/skills/memory-audit to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awrshift/agent-memory-kit.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/memory-audit &&
cp -R "$tmp/plugins/memory-kit/skills/memory-audit" ~/.agents/skills/memory-audit &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/memory-audit inside it instead.
Copy the skill folder to ~/.cursor/skills/memory-audit to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awrshift/agent-memory-kit.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/memory-audit &&
cp -R "$tmp/plugins/memory-kit/skills/memory-audit" ~/.cursor/skills/memory-audit &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/memory-audit inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/awrshift/agent-memory-kit.git --path plugins/memory-kit/skills/memory-auditOr copy the folder to ~/.gemini/skills/memory-audit yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/memory-audit:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awrshift/agent-memory-kit.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/memory-audit &&
cp -R "$tmp/plugins/memory-kit/skills/memory-audit" ~/.copilot/skills/memory-audit &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/memory-audit inside it instead.
Get the folder:
git clone --depth 1 https://github.com/awrshift/agent-memory-kit.gitThen copy agent-memory-kit/plugins/memory-kit/skills/memory-audit into your agent's skills folder as memory-audit. Agents that support SKILL.md read one folder per skill.
What it does
- Section classification
- Every heading in the cache is assigned exactly one action, such as move, drop, keep or simplify.
- Approval-first move plan
- Proposed changes appear as a table with line counts and projected sizes before any file is written.
- Concept article creation
- Settled multi-session patterns are moved into knowledge concept files and added to the index.
- Session chronicle cleanup
- Session-dated blocks are dissolved into topic lines or dropped, since handoffs already hold the narrative.
- Duplicate rule detection
- Entries that repeat project rules or reference files are removed or reduced to a pointer.
- Deferred candidate tracking
- Declined candidates are saved to a dated audit file so the next pass can pick them up.
Good for
- Trim a MEMORY.md file that has hit its line or byte cap
- Move a recurring lesson from memory notes into a knowledge concept article
- Remove session-dated entries from the memory cache
- Replace copied prices or version numbers in memory with pointers to their source
- Remove memory entries that repeat what CLAUDE.md already says
Memory audit FAQ
When does the skill trigger?
It is meant for when the SessionStart hook reports a tripped cap or session-headed blocks, when PreCompact blocks on an oversized cache, or when the user asks to audit memory.
Does Memory audit change files without asking?
No. It must present a move plan and wait for explicit approval before any writes.
When does Memory audit refuse to run?
It refuses only when no cap is tripped, no session block is flagged and no settled-pattern candidate exists.
Which files can Memory audit edit?
Its allowed edit scope is limited to the .claude/memory directory and the knowledge directory.
How do I install Memory audit in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/memory-audit to use it in all your projects, or to .claude/skills/memory-audit in one project. Or install the memory-kit plugin, which includes it: /plugin marketplace add awrshift/agent-memory-kit, then /plugin install memory-kit@memory-kit.
Does Memory audit run scripts?
No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Memory audit?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Memory audit?
The closest alternatives to Memory audit are Memory review, Recap, Memory sync, Claude mem and Close session.
Where this comes from
- Description: from the skill's own SKILL.md.
More from awrshift/agent-memory-kit

Runs an end-of-session audit that promotes repeated patterns and writes a handoff
- Open source
- 33 GitHub stars
- Knowledge and memory

Reconciles project specs and docs against the current code after merges
- Open source
- 33 GitHub stars
- Developer tools

Drafts PR bodies, changelog entries, release notes and postmortems from git diffs
- Open source
- 33 GitHub stars
- Developer tools

Runs a multi-lens QA sweep of a live product and turns verified findings into tickets
- Open source
- 33 GitHub stars
- Developer tools

Cross-checks your agent's answer with independent reviewers before it reaches you
- Open source
- 33 GitHub stars
- Developer tools

Runs an end-of-session adversarial review of your coding or design work
- Open source
- 33 GitHub stars
- Developer tools






