agentleFS
bersimaobersimao/ai-memory-system/skills/memory-write/SKILL.md

memory-write

Skill2 starsChanged 3 months agoMITView on GitHub

Save, correct, or retrieve durable shared memory across Claude Code and Codex. Use for remembered preferences, prior decisions, project history, explicit save requests, and implicit references to earlier work.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. opensite-ai/opensite-skills★ 15same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repositoryOne other file it gives its agents.

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. Very specific:

    Use ~/.claude/scripts/mem.

    line 8
  2. Distinctive:

    Read the existing target and check duplicates.

    line 20
  3. Distinctive:

    Put additions in a temporary file, then:

    line 22
  4. Distinctive:

    Keep index caps by relocating complete originals into topics, not compressing facts.

    line 34

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

Shared memory

Use ~/.claude/scripts/mem. Markdown is authoritative; both harnesses use the same journaled writer. Do not create a parallel harness-specific memory database.

For recall, run mem search "query" --scope all, inspect project labels, and expand relevant REQUEST_ID:RESULT_ID results before relying on them. Try domain identifiers, English/Portuguese alternatives, and --semantic if needed. A lexical miss does not establish absence. Verify that a result from another project applies to this task.

For saves, preserve existing KB/domain-skill routing when a skill owns the fact. Preferences belong in context/USER.md; shared workflow facts in context/MEMORY.md; project facts in that project's context/topics/ with an index pointer. Resolve the project using node ~/.claude/hooks/project-store.js --json --resolve "$PWD". Read the existing target and check duplicates. Do not store credentials or secrets.

Put additions in a temporary file, then:

~/.claude/scripts/mem prepare RELATIVE_PATH --text-file /tmp/addition.md --operation append --reason "why" > /tmp/memory-proposal.json
~/.claude/scripts/mem apply /tmp/memory-proposal.json

Inspect proposals before applying. A correction uses replace with the complete new text and requires apply --reviewed; archive also requires review. Honor existing user authorization and confirm removals when not already authorized. Never force a stale revision or rewrite memory with direct file tools.

Keep index caps by relocating complete originals into topics, not compressing facts. Distilled candidates and raw checkpoints are unverified source material. Confirm the saved location; accepted writes are immediately searchable through lexical retrieval.

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.