Memory Audit — Security skill for Claude Code
Audit auto-memory and CLAUDE.md for staleness, duplicates, dead links, and overlap.
How to install Memory Audit
Installs to ~/.claude/skills/mattbro-dotfiles-ai-memory-audit/SKILL.md
mkdir -p ~/.claude/skills/mattbro-dotfiles-ai-memory-audit && curl -fsSL https://raw.githubusercontent.com/MattBro/dotfiles-ai/HEAD/commands/memory-audit.md -o ~/.claude/skills/mattbro-dotfiles-ai-memory-audit/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Memory Audit does
description: Audit auto-memory and CLAUDE.md for staleness, duplicates, dead links, and overlap. Reports findings and pauses for approval before any deletion. allowed-tools: Bash, Read, Edit, Grep, Glob
Memory Audit
Review the user's memory system and `CLAUDE.md` files for hygiene issues. **Never auto-delete anything** — surface findings, wait for approval.
The memory directory is per-project under `~/.claude/projects//memory/`. The global `CLAUDE.md` is at `~/.claude/
Alternatives in Security
- Skill Coverage Audit — Trace codepaths in diffs, map against tests, auto-generate missing coverage — use before shipping PRs 2.8k ★
- Review Artifact — Creates one polished, self-contained HTML artifact from review findings, audit notes, PR feedback, code review 652 ★
- Memory Self Review — Mine recent agent history (claude-mem + usage stats) for recurring failures and repeated patterns, audit MEMOR 297 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Audit Docs
Scan documentation for staleness — broken links, outdated counts, stale version references, and inconsistencie
Dev Companion
Reusable Claude Code skills: project memory, knowledge graph, code reuse, clean readable code, test-before-edi
Audit Assist
Flow B — AI-assisted iterative audit with a human in the loop. Same lifecycle as audit-cycle, but pauses at ch
Find Wasted Code
Run the find-wasted-code audit — the code-per-friction sibling of /token-waste-audit and /find-wasted-effort.
Memory Compress
Audit and compress this project's persistent memory (MEMORY.md + memory/.md) — merge duplicates, prune stale o
Ledger Check
Audit the Idea-Ledger for inconsistencies (duplicate IDs, dangling links, drift). Reports; fixes only on reque
Related Agents
Bughunter
Proactive codebase scanner that hunts for bugs, dead code, vulnerabilities, and smells. Auto-detects stack. Re
Cleanup Executor
Safely removes confirmed dead code with git backup, build verification, and dependency-order deletion. Use aft
Qp Dead Code Reviewer
Read-only reviewer for the quality-pass dead-code dimension — zero-importer files/exports/packages, superseded