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
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.
Wiki Audit
Check wiki health — find broken links, stale content, contradictions, and auto-fix what it can
Aiclean
Audit and clean up a Claude Code setup against Anthropic's current prompt-engineering guidance. Finds stale sc
Memory Checkup
Audit and repair an AI agent's memory corpus for consistency: stale numbers, dangling references, dead daily f
Related Agents
Bughunter
Proactive codebase scanner that hunts for bugs, dead code, vulnerabilities, and smells. Auto-detects stack. Re
Qp Dead Code Reviewer
Read-only reviewer for the quality-pass dead-code dimension — zero-importer files/exports/packages, superseded
Wiki Auditor
Wiki health audit — finds and fixes broken links, missing frontmatter, orphans, near-duplicates. Fixes inline,