agentleFS
chanjalmechanjalme/claude-skills/skills/memory-hygiene/SKILL.md

memory-hygiene

Skill0 starsChanged 5 months agoMITView on GitHub

Use when deciding what to remember and where to store it, to keep Christian's two memory systems clean and non-overlapping. Triggers on 'remember this', 'save this for later', end-of-session handoffs, or when a durable fact emerges. Decides Obsidian vault vs ~/.claude auto-memory vs ~/.remember buffer, dedups against existing memories, and writes in the correct format.

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

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

  • 0

    Common

    Most of the 10 edited versions we read keep these.

  • 3

    Distinctive

    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:

    Dedup: search the target store for an existing memory on this topic.

    line 23
  2. Distinctive:

    Don't write the same fact into two stores.

    line 28
  3. Distinctive:

    Don't put session-only detail into auto-memory.

    line 29
  4. Very specific:

    Don't bloat MEMORY.md with content — one pointer line only.

    line 30

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

Christian has three memory stores that drift and overlap. This routes each fact to exactly one home.

The three stores

  1. Obsidian vault Memory.md — the human-facing source of truth and activity log. Personal/business narrative, project state, decisions.
  2. ~/.claude/projects/-Users-chanjalme/memory/ (auto-memory) — facts that should load into EVERY Claude session: preferences, identity, references, recurring feedback. One fact per file + a one-line pointer in MEMORY.md.
  3. ~/.remember/ buffer — short-term session history (now/today/recent). Ephemeral, rolls up automatically. Do not hand-curate.

Routing rules

  • Cross-session preference / how-I-should-work / identity / reference URL → auto-memory file (type: user/feedback/project/reference).
  • Project/business narrative, decisions, plans → vault (via vault-librarian).
  • "What we did this session" → leave it to .remember, don't duplicate into auto-memory.

Before saving (always)

  1. Dedup: search the target store for an existing memory on this topic. Update it instead of creating a duplicate. Delete memories that turn out wrong.
  2. Worth it? Skip anything derivable from the repo, code, or git history. If asked to remember something obvious, save the non-obvious why instead.
  3. Format: auto-memory needs frontmatter (name, description, metadata.type) + a one-line MEMORY.md pointer. Convert relative dates to absolute (UTC+8).

Anti-patterns

  • Don't write the same fact into two stores.
  • Don't put session-only detail into auto-memory.
  • Don't bloat MEMORY.md with content — one pointer line only.

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.