agentleFS
ztnkvztnkv/personal-operating-system/.claude/skills/memory-write/SKILL.md

memory-write

Skill0 starsChanged 6 months agoMITView on GitHub

Service skill that writes and modifies files in memory/. Invoked ONLY from memory-retro after the user confirmed the proposed diff. Never runs by itself and is not invoked by the user directly. Supports four operations — add (new entry), update (edit existing), supersede (soft delete via status), delete (hard delete, only by an explicit user command). When tags need to be created or updated, cascades into tag-pick.

3 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. opensite-ai/opensite-skills★ 15same name
    2. bersimao/ai-memory-system★ 2same name
    3. yktsnet/dotfiles-public★ 1same 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 repository9 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 2 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    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:

    Call tag-pick with the title + body + context → receive an array of tags (2–5).

    line 21
  2. Distinctive:

    Create the file with frontmatter:

    line 22
  3. Distinctive:

    Read the existing file.

    line 48
  4. Very specific:

    If the tags changed — re-run them through tag-pick (do not hand-edit).

    line 51
  5. Very specific:

    If the title or the hook changed — update the corresponding line in memory/index.md.

    line 54
  6. Very specific:

    Block: if type: event — refuse, explain that events never deprecate.

    line 65
  7. Very specific:

    Remove its line from memory/index.md.

    line 82
  8. Very specific:

    If any other entry's superseded_by pointed at this file — drop that reference (and append to that entry's change log: successor deleted …

    line 83
  9. Very specific:

    If any input is ambiguous — do not invent.

    line 90

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

Service skill — writes and modifies memory files. Invoked only from memory-retro, after the user has explicitly confirmed.

Operations

add — create a new entry

Input: title, body, type, confidence, dialog context (for tags).

Steps:

  1. Get the current unix timestamp.
  2. Generate a slug from the title: transliterate → lowercase → spaces → dashes, ASCII-only, no special characters. Example: "Relationship with my mother" → relationship-with-my-mother.
  3. Filename: <unix_timestamp>-<slug>.md.
  4. Call tag-pick with the title + body + context → receive an array of tags (2–5).
  5. Create the file with frontmatter:
    ---
    title: <title>
    tags: [<...>]
    type: <type>
    confidence: <high|medium|low>
    status: active
    created: <YYYY-MM-DD>
    updated: <YYYY-MM-DD>
    ---
    
    <body>
    
    ## Change log
    - <YYYY-MM-DD> — created during conversation about <short description of the initiative>
  6. Append a line to memory/index.md in the ## Entries section: - [<title>](<filename>) — <type>, <tags comma-separated>, <one-line hook>

update — update an existing entry

Input: filename, new body (or new frontmatter fields), reason for the change.

Steps:

  1. Read the existing file.
  2. Apply the edit (body and/or frontmatter).
  3. Set updated: to today's date.
  4. If the tags changed — re-run them through tag-pick (do not hand-edit).
  5. Append a line to ## Change log: - <YYYY-MM-DD> — <short description of the edit>: <reason>
  6. If the title or the hook changed — update the corresponding line in memory/index.md.

Critical changes (change of type, confidence, resolution of a contradiction) get an explicit entry in the change log. Minor wording edits — one line.

supersede — mark as deprecated

Input: filename, reason for deprecation, optional — name of the successor file.

Steps:

  1. Read the file.
  2. Block: if type: event — refuse, explain that events never deprecate.
  3. Edit frontmatter:
    • status: deprecated
    • superseded_at: <YYYY-MM-DD>
    • superseded_by: <filename> (if a successor exists)
    • updated: <YYYY-MM-DD>
  4. Append to ## Change log: - <YYYY-MM-DD> — marked deprecated: <reason> (+ link to successor, if any).
  5. In memory/index.md, mark the entry as deprecated (add a [deprecated] tag to the line, or move it into a ### Deprecated subsection).

delete — hard delete

Only on an explicit user command targeting a specific file ("delete this entry", "this should never have been saved").

Steps:

  1. Delete the file.
  2. Remove its line from memory/index.md.
  3. If any other entry's superseded_by pointed at this file — drop that reference (and append to that entry's change log: successor deleted <date>).

General rules

  • All dates — YYYY-MM-DD.
  • Entry body is written in the user's language (the language used in the dialog).
  • Frontmatter keys stay in English; their values for type and status use the controlled vocabulary in English (fact, belief, preference, event, goal, constraint; active, deprecated).
  • If any input is ambiguous — do not invent; return an error to memory-retro describing the problem and let the orchestrator re-ask the user.
  • New type values are not introduced without explicit user confirmation — that must have been settled in memory-retro before memory-write was called.

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.