agentleFS
eugenezhangco-speceugenezhangco-spec/athena/.claude/skills/memory-audit/SKILL.md

memory-audit

Skill0 starsChanged 7 months agoMITView on GitHub

Runs a health check on Athena's long-term memory. Finds contradictions, stale facts, duplicates, orphans, and gaps. Fixes what it can, flags what it can't. This is the self-maintenance routine that keeps memory clean over months and years of use. How: For each room, pull recent drawers and look for opposing claims (e.g., "loves running" vs "hates running", "works at Google" vs "works at Anthropic" with overlapping dates). Resolution: - Check timestamps. The newer one is probably more current. - Check…

15 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

19 rules. 0 are common, 13 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 13

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When compiled summaries surface contradictions or gaps

    line 6
  2. Distinctive:

    Search MemPalace for memories in the same room that conflict.

    line 15
  3. Distinctive:

    Check timestamps. The newer one is probably more current.

    line 20
  4. Very specific:

    Check source tags. user_statement beats system_inference.

    line 21
  5. Distinctive:

    If still ambiguous, flag for user confirmation: "I have conflicting info about [topic].

    line 22
  6. Very specific:

    Use kg_invalidate to expire the outdated triple.

    line 23
  7. Distinctive:

    Don't auto-delete. Flag as "stale, may need update."

    line 31
  8. Very specific:

    Keep the one with the user_statement source tag.

    line 40
  9. Very specific:

    If both are user_statement, keep the more recent one.

    line 41
  10. Very specific:

    Delete the duplicate with mempalace_delete_drawer.

    line 42
  11. Distinctive:

    If the orphan contains a meaningful fact, create KG connections for it.

    line 50
  12. Distinctive:

    If it's low-value episodic noise, consider deletion.

    line 51
  13. Distinctive:

    Don't delete aggressively — some orphans are valid standalone memories.

    line 52
  14. Distinctive:

    How: Check each default room (career, health, relationships, goals, finances, identity).

    line 57
  15. Distinctive:

    Don't interrogate the user.

    line 60
  16. Distinctive:

    Add gap topics to the coaching queue for natural follow-up.

    line 61
  17. Very specific:

    Never delete user_statement memories without user confirmation.

    line 77
  18. Distinctive:

    Never delete more than 10 memories in a single audit without asking.

    line 78
  19. Distinctive:

    Run silently during weekly review — only surface issues if they need user input.

    line 80

“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Memory Audit — Self-Cleaning Memory Lint

Trigger

  • Auto-triggered during weekly review
  • "Audit my memories", "clean up memory", "check for contradictions"
  • When compiled summaries surface contradictions or gaps

What This Does

Runs a health check on Athena's long-term memory. Finds contradictions, stale facts, duplicates, orphans, and gaps. Fixes what it can, flags what it can't. This is the self-maintenance routine that keeps memory clean over months and years of use.

The 5 Checks

1. Contradictions

Search MemPalace for memories in the same room that conflict.

How: For each room, pull recent drawers and look for opposing claims (e.g., "loves running" vs "hates running", "works at Google" vs "works at Anthropic" with overlapping dates).

Resolution:

  • Check timestamps. The newer one is probably more current.
  • Check source tags. user_statement beats system_inference.
  • If still ambiguous, flag for user confirmation: "I have conflicting info about [topic]. Which is current?"
  • Use kg_invalidate to expire the outdated triple.

2. Stale Facts

Find KG triples and drawers that are old and unaccessed.

How: Query mempalace_kg_timeline for triples older than 6 months. Check if the drawer was accessed recently. Cross-reference with compiled summaries — is this fact still in the current summary?

Resolution:

  • Don't auto-delete. Flag as "stale, may need update."
  • During the next relevant conversation, gently verify: "Last I remember, you were [stale fact]. Still true?"

3. Duplicates

Find memories that say the same thing in different words.

How: MemPalace's duplicate detection (0.9 similarity threshold) catches exact matches. This check catches semantic duplicates below that threshold — memories that mean the same thing but are worded differently.

Resolution:

  • Keep the one with the user_statement source tag.
  • If both are user_statement, keep the more recent one.
  • Delete the duplicate with mempalace_delete_drawer.

4. Orphans

Find drawers with no KG connections and low access count.

How: List all drawers, check which ones have no related KG entities. Sort by access count.

Resolution:

  • If the orphan contains a meaningful fact, create KG connections for it.
  • If it's low-value episodic noise, consider deletion.
  • Don't delete aggressively — some orphans are valid standalone memories.

5. Gaps

Find important life domains with few or no memories.

How: Check each default room (career, health, relationships, goals, finances, identity). Count drawers per room. Flag rooms with fewer than 5 drawers as "sparse."

Resolution:

  • Don't interrogate the user. Instead, surface gaps naturally during coaching: "I don't know much about your health habits. Want to share anything?"
  • Add gap topics to the coaching queue for natural follow-up.

Output Format

After running, report:

Memory Audit — [date]
- Contradictions found: [N] (resolved: [N], flagged for user: [N])
- Stale facts flagged: [N]
- Duplicates removed: [N]
- Orphans reviewed: [N] (connected: [N], removed: [N])
- Sparse domains: [list]
- Memory health: [HEALTHY / NEEDS ATTENTION / CRITICAL]

Rules

  • Never delete user_statement memories without user confirmation.
  • Never delete more than 10 memories in a single audit without asking.
  • Log every deletion and the reason.
  • Run silently during weekly review — only surface issues if they need user input.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.