Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Memory?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/lnyuyu-memory)
---
name: memory
description: Locate the Memmark CLI and memory indexes, save durable decisions and branch milestones, and repair interrupted saves.
---
Use the `global index`, `project index` and `Branch note` paths from the SessionStart snapshot. Resolve links relative to their containing index.
To run the CLI, resolve `../../dist/cli.mjs` from the directory containing this installed `SKILL.md`. If that path is unavailable, run `agy plugin list --json` and use `dist/cli.mjs` under the enabled `agy-memmark` entry's `path`. Run `node "<absolute-cli>"` with the arguments below. Use the actual project's absolute workspace path.
| Arguments | When to use |
| --- | --- |
| `status "<workspace>"` | A snapshot is missing, the branch changed, or a path is uncertain. Read `globalIndex`, `projectIndex` and `branchNote`. A null field means that scope is unavailable. |
| `save "<workspace>"` | For concurrent writers, missing parent index links, or project binding during a save. Pipe one JSON object on stdin with `scope`, `card`, `title`, `summary`, `content` and `expected` (previous card byte SHA-256 or `"new"`). All concurrent writers must use this command to share its lock. |
| `doctor` | Check the store for broken index links and orphan cards. Takes no workspace argument. |
| `link SLOT "<workspace>"` | Bind an existing project slot after another authorized tool wrote the files. Verify the slot with `resolve "<workspace>"` and reconcile competing slots first. |
A project's decision to keep a previous API response on failure because customers work offline belongs in a project card. A variable-name typo that was fixed in source needs no card. A long-running branch with one remaining multiplayer acceptance check can update its existing branch note. Keep private information and credentials out of all notes.
1. Search the local index and topic first. For a single writer, prefer the host's native `read_file`, `write_file` and `edit_file`. Use user for personal preferences, feedback for recurring corrections, project for decisions and handoffs, or reference for a durable pointer. Put name, description and type in YAML frontmatter. For feedback or project, include the conclusion, why it matters and how to apply it.
2. Once the card write succeeds, add or update one line in the adjacent MEMORY.md using `- [Title](card.md) — actionable summary`. Link child indexes from their parent. Preserve unrelated lines and use old-text-checked edits. CLI writes require permission for the target paths. A denied file operation must not be retried through the CLI.
If the card succeeds and its index fails, say which card exists and which index still needs repair. Read the current files, use doctor to locate orphans and repair only the missing link. Retry a shared save with the same content after checking the current revision. Report a successful save only after both steps complete. With no durable change, finish without a memory status message.
Archive a completed branch only after its outstanding decisions and checks have a home. Correct a stale fact at its source and update its pointer. On an explicit forget request, remove the relevant content and repair links within the session's permissions.