agentleFS
julismanjulisman/virtual-worker/skills/ops/memory-keeper/SKILL.md

Memory Keeper

Skill0 starsChanged 29 days agoApache-2.0View on GitHub

Memory hygiene — decide what deserves memory_write (stable facts with absolute dates), dedupe via memory_search before writing, update instead of duplicating, and memory_forget wrong or stale facts after corrections.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep the agent's persistent memory small, current, and correct: write only durable facts, one copy each, and remove what is wrong.

    line 10
  2. Distinctive:

    No other inputs; this skill acts on the current conversation.

    line 15
  3. Distinctive:

    Do not memory_write speculatively about people (inferred opinions, health, personal matters the user didn't ask you to keep).

    line 49
  4. Very specific:

    When memory_search returns near-duplicates you created earlier, consolidate: keep the best-phrased one, forget the rest.

    line 50

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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 Keeper

Keep the agent's persistent memory small, current, and correct: write only durable facts, one copy each, and remove what is wrong.

Inputs

  • Candidate fact(s) — something just learned, or an explicit "remember X" / "forget X" / a user correction.
  • No other inputs; this skill acts on the current conversation.

Steps

  1. Decide if the candidate deserves memory at all. Test: will this still be true and useful in a month, in a conversation with no context from today? If unsure, consult load_skill_resource({"slug": "memory-keeper", "path": "references/what-to-remember.md"}) for the save / don't-save lists and phrasing patterns.
  2. Dedupe before every write. memory_search for the fact's subject (the person, ID, project, or preference name). Three outcomes:
    • Identical fact already stored → write nothing; say it's already remembered.
    • Related but outdated/conflicting fact found → this is an update: memory_forget the old entry, then memory_write the new one. Never leave both.
    • Nothing found → memory_write the new fact.
  3. Phrase the entry self-contained and searchable (patterns in the reference file): subject first, then the fact, then a | <YYYY-MM-DD> date stamp. Convert every relative time to an absolute date — never store "tomorrow", "next week", "recently".
  4. On a user correction ("no, it's actually…", "that's the old one"): treat it as mandatory hygiene — memory_search for what you had, memory_forget the wrong entry, memory_write the corrected fact, and confirm both actions to the user.
  5. On an explicit "forget X": memory_search for it, show the matching entries, and memory_forget the ones the user means (confirm first if more than one matches).
  6. Batch case (end of a task with several new facts): run steps 1–3 per fact; skip the chaff rather than storing a summary blob.

Output format

One short line per action, grouped:

Memory updated:
  + saved:   <entry as written>
  ~ updated: <old> → <new>
  - forgot:  <removed entry>
  · skipped: <candidate> (already stored | not durable)

Say "Nothing worth remembering from this" when that is the honest outcome.

Rules

  • Stable facts only: IDs, emails, names, preferences, corrections, recurring context, decisions. Never store secrets (passwords, tokens, OTPs), transient state ("build is broken"), or whole-conversation summaries — full lists in the reference file.
  • Absolute dates always; "tomorrow" stored today is a lie next week.
  • One fact = one entry. Never append a contradicting fact next to an old one — forget-then-write.
  • Corrections outrank convenience: a wrong stored fact is worse than no fact; when the user corrects you, fixing memory is part of the task, not optional.
  • Do not memory_write speculatively about people (inferred opinions, health, personal matters the user didn't ask you to keep).
  • When memory_search returns near-duplicates you created earlier, consolidate: keep the best-phrased one, forget the rest.

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.