← ClaudeAtlas

memory-auditlisted

Runs a memory hygiene pass on the project memory/ directory. Reviews all active memory files against the current codebase and archives or supersedes stale entries. Use before major feature work or when memory files feel out of date. Trigger this when someone says: clean up memory, audit memory files, memory is out of date, stale decisions, memory hygiene, are our memory files current, check if decisions are still valid. Do NOT use when searching for a specific memory entry — use /memory-query instead.
chuckplayer/claude-agent-pack · ★ 6 · AI & Automation · score 76
Install: claude install-skill chuckplayer/claude-agent-pack
# Memory Audit Run a memory hygiene pass on the project's `memory/` directory. If `memory/` does not exist in the current project, report that and stop. ## 1. Review active files for staleness 1. Use `Glob("memory/**/*.md")` to discover all memory files. 2. Skip files with `status: superseded` or `status: archived` — these are history only. 3. For each **active** file, check whether it still accurately describes the codebase as it exists today: - Does it reference a service, module, or dependency that no longer exists? - Has the technology it covers been removed or replaced? - Does a more recent decision supersede it? 4. For stale files: - Context no longer applies → update `**Status:** archived` - Superseded by a newer decision → update `**Status:** superseded` and populate `**Superseded-by:**` 5. Do not delete files — history is preserved by archiving, not deletion. ## 1a. Check the repo map for drift If `memory/architecture/repo-map.md` exists, read its `Verified-at-commit` stamp and run `git diff --name-only <that-sha>..HEAD`. If mapped directories have changed, added, or been removed since the stamp, do **not** archive the map — it is meant to be refreshed, not retired. Instead, flag it in the report and recommend running `/repo-map refresh`. Only archive the map if the project structure it describes has been entirely replaced. ## 2. Check for gaps in decision coverage After reviewing active files, look for unrecorded decisions. Ask the user: > "A