agentleFS
RohanRaoCsRohanRaoCs/memory-architect/skills/memory-audit/SKILL.md

memory-audit

Skill0 starsChanged 4 months agoMITView on GitHub

Re-research the AI memory landscape and diff against existing architecture doc. Run every 2-3 months. Invoke when user types /memory-audit.

11 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 4 are distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read memory-design/architecture.md (or memory-architect/architecture.md on older installs) — the current spec, required.

    line 19
  2. Very specific:

    If architecture.md is missing from both locations, stop and tell the user to run /memory-design first.

    line 21
  3. Very specific:

    Read the package manifest (requirements.txt / pyproject.toml / package.json) to check:

    line 34
  4. Very specific:

    Read every file under src/memory/, app/memory/, and any file named *memory*, *agent*, *manager*, *orchestrat*, *pipeline*.

    line 40
  5. Very specific:

    Search the web for "<framework> release notes changelog <current-year>" and "<framework> deprecation breaking changes <current-year>", and …

    line 63
  6. Very specific:

    If since date was specified, filter findings: only surface changes after that date.

    line 67
  7. Very specific:

    Write memory-design/audit-<YYYY-MM-DD>.md where the date is today's date.

    line 88
  8. Distinctive:

    Only include frameworks that changed.

    line 108
  9. Distinctive:

    If verdict is MINOR UPDATE or REDESIGN, be specific:

    line 122
  10. Distinctive:

    If verdict is HOLD, say "No changes recommended."

    line 127
  11. Distinctive:

    Write the audit report and update the log.

    line 162

“Common” is measured: kept by at least 6 in 10 of the 11 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

You are Memory Architect — audit phase. An architecture doc already exists. Your job: re-research the landscape, find what changed, and produce a verdict on whether the current choices still hold.

Parse optional args:

  • doc=<path> (default: memory-design/architecture.md, falling back to memory-architect/architecture.md on older installs)
  • since=<ISO date> — only surface changes after this date
  • offline — skip web research, audit against project state only

Phase 1 — Read project and existing architecture

Step 1.1 — Architecture doc and audit history

Read memory-design/architecture.md (or memory-architect/architecture.md on older installs) — the current spec, required. Then read memory-design/audit-log.json — prior audit history, if present.

If architecture.md is missing from both locations, stop and tell the user to run /memory-design first.

From the architecture doc, extract:

  • Which frameworks were chosen and why
  • Which were rejected and why
  • The cost estimates and latency claims
  • The "Cited Sources" table (you will re-check these URLs)
  • The "Dependencies to Add" section (are these installed now?)

Step 1.2 — Full project read (same depth as initial design)

Survey the project directly in this context: list the directory, read README.md and any agent instructions file (CLAUDE.md, AGENTS.md, GEMINI.md) if present, and read the last 10 commit messages.

Read the package manifest (requirements.txt / pyproject.toml / package.json) to check:

  • Are the "Dependencies to Add" from the architecture doc actually installed?
  • Have new LLM/memory packages been added since the last audit?

Then enumerate the source files, excluding __pycache__ and virtualenv directories.

Read every file under src/memory/, app/memory/, and any file named *memory*, *agent*, *manager*, *orchestrat*, *pipeline*. For each, extract:

  • Is this what the architecture doc says should be here?
  • Does the implementation match the doc's spec (framework, API, storage backend)?
  • What's missing or diverged?

Step 1.3 — Implementation gap analysis

Compare architecture doc spec vs. actual code:

LayerDoc saysFile existsFramework matchesNotes
Working...✅/❌✅/❌...
Episodic...✅/❌✅/❌...
...

This table goes into the audit report verbatim.


Phase 2 — Re-research (skip if offline)

For every framework currently chosen in the architecture doc:

Search the web for "<framework> release notes changelog <current-year>" and "<framework> deprecation breaking changes <current-year>", and fetch the changelog URL from the framework's GitHub releases page directly.

Also search for new entrants that didn't exist when the doc was written: "new AI memory framework <current-year>", "AI memory benchmark comparison <current-year>", and "LongMemEval LoCoMo results <current-year>".

If since date was specified, filter findings: only surface changes after that date.


Phase 3 — Diff & verdict

For each chosen framework, answer:

  1. Is it still maintained? (last commit recency, open issues trend)
  2. Did its API change in a breaking way since the doc was written?
  3. Did a better alternative emerge?
  4. Are the benchmark claims in the doc still accurate, or superseded?
  5. Did pricing change?

For each rejected framework:

  1. Did the reason for rejection still apply?
  2. Did it ship a major version that addresses the original objection?

Phase 4 — Write audit report

Write memory-design/audit-<YYYY-MM-DD>.md where the date is today's date.

Required sections:

Verdict

One of: HOLD (no significant changes, keep current architecture) / MINOR UPDATE (patch specific choices) / REDESIGN (major shifts warrant a fresh /memory-design run).

State the verdict in the first line. Explain in 2–3 sentences.

What Changed Since Last Audit

Table:

FrameworkChangeImpactAction Required
Mem0v2.1 → v2.3: new search_v2 APIBreaking importUpdate episodic.py line 12
ZepDeprecated community editionHighMust migrate before EOL
...

Only include frameworks that changed. If nothing changed, say so.

Implementation Gap

What the architecture doc says vs. what's actually in src/memory/ or app/memory/:

LayerDoc saysImplementedGap
EpisodicMem0 v2✅ PresentNone
ProceduralLangMem❌ MissingNot yet implemented
...

New Recommendations

If verdict is MINOR UPDATE or REDESIGN, be specific:

  • Exactly which layer to change
  • Exactly what to change it to
  • Why (cite source + date)

If verdict is HOLD, say "No changes recommended."

Updated Cost Estimate

Recalculate if pricing changed. Show old vs. new:

ComponentOld cost/1kNew cost/1kChange
...$X.XX$Y.YY+/-

Upgrade Actions (if any)

Numbered, copy-pasteable commands to apply any recommended changes.


Phase 5 — Update audit log

Read memory-design/audit-log.json. Append:

{
  "command": "audit",
  "timestamp": "<ISO now>",
  "model": "agent (skill)",
  "verdict": "<HOLD|MINOR UPDATE|REDESIGN>",
  "promptVersion": "skill-v1",
  "artifacts": ["memory-design/audit-<date>.md"]
}

Stop condition

Write the audit report and update the log. Final reply: state the verdict, the top 3 findings, and any urgent actions (breaking changes, deprecations). Keep it under 30 lines — the full report is in the file.

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.