agentleFS
vasilievyakovvasilievyakov/miracle-infrastructure/skills/memory-health/SKILL.md

memory-health

Skill17 starsChanged 9 months agoMITView on GitHub

Validates memory system integrity: file consistency, observation counts, format correctness. Use when: (1) Suspecting data desync, (2) After bulk edits, (3) Periodic health check. Triggers: "/memory-health", "check memory", "memory health check".

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If all tests pass, report "All green" with the test count.

    line 21
  2. Distinctive:

    If the fix is simple, do it immediately

    line 30
  3. Distinctive:

    Missing in table: add project to the MEMORY.md table

    line 34
  4. Distinctive:

    Invalid type: check for typos in observations

    line 35
  5. Distinctive:

    No details for index: add the missing Details section

    line 36
  6. Distinctive:

    Stale problem: check if the problem has been resolved, update accordingly

    line 37

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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 Health Check

Runs validation across all memory files and produces a health report.


Step 1: Run integrity tests

python3 ~/.claude/memory/tests/test_memory_integrity.py 2>&1

If all tests pass, report "All green" with the test count.


Step 2: On failures, show and offer fixes

For each failed test:

  1. Explain what is wrong (plain language)
  2. Suggest a specific fix
  3. If the fix is simple, do it immediately

Common errors:

  • Counts mismatch: recount observations and update MEMORY.md
  • Missing in table: add project to the MEMORY.md table
  • Invalid type: check for typos in observations
  • No details for index: add the missing Details section
  • Stale problem: check if the problem has been resolved, update accordingly

Step 3: Additional checks (beyond automated tests)

Manually check:

  1. Freshness: Any projects with "Last session" more than 30 days ago? Warn.
  2. Size: MEMORY.md over 40 lines? Observations over 20 entries? Suggest cleanup.
  3. Duplicates: Any repeating observations by summary?

Step 4: Report

Memory Health Check: {OK / N issues found}

Tests: {passed}/{total}
Dossiers: {count} ({list})
Observations: {total across all projects}
Open problems: {count}
{warnings if any}

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.