一键导入
memento-defrag
Archive stale memento notes. Moves low-certainty, unaccessed notes to archive/. No merging, no deletion. Run periodically to keep the vault tight.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Archive stale memento notes. Moves low-certainty, unaccessed notes to archive/. No merging, no deletion. Run periodically to keep the vault tight.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | memento-defrag |
| description | Archive stale memento notes. Moves low-certainty, unaccessed notes to archive/. No merging, no deletion. Run periodically to keep the vault tight. |
Move stale notes to the vault's archive/ directory to keep the active vault focused. No merging, no deletion. Git history preserves everything.
The vault location is configured in memento.yml (default: ~/memento). Check ~/.config/memento-vault/memento.yml or ~/memento/memento.yml for the active config.
/memento-defragRead all notes in the vault's notes/ directory. Parse frontmatter for each file: certainty, date, type, tags, validity-context, supersedes.
Identify archive candidates. A note is a candidate if ANY of these are true:
certainty is 1 or 2 AND the note is older than 60 dayssupersedes field references this note AND the superseding note is older than 14 days (grace period in case the new note is wrong)validity-context references a dependency or version that has since changed (check package.json or similar if accessible)type: bugfix AND older than 90 days (bugfix context decays fast)A note is NEVER a candidate if:
certainty 4 or 5 (tested/shipped or established pattern)For notes missing certainty (pre-metadata notes), infer from context:
source: manual -> treat as certainty 3type: decision -> treat as certainty 3type: discovery with source: session -> treat as certainty 2Show the candidate list to the user before moving anything. Format:
Archive candidates (X notes):
- note-name.md — certainty 2, 75 days old, type: discovery
- other-note.md — superseded by [[newer-note]]
...
Notes staying active: Y
Wait for user confirmation. The user can exclude specific notes.
Move confirmed candidates to the vault's archive/ directory. Create the directory if it doesn't exist.
Update wikilinks. In any remaining active note that links to an archived note, keep the link but add (archived) suffix: [[note-name]] (archived).
Update project indexes. In the vault's projects/ directory, move archived note links from ## Notes to a new ## Archived section (create if needed).
Commit to vault repo:
~/.claude/hooks/vault-commit.sh "defrag: archived N notes"
Reindex QMD (if installed):
qmd update -c memento && qmd embed
Report what was archived and what stayed.
fleeting/ or projects/ content (only update links in projects).archive/ are still searchable via grep and git history, just not in the active QMD index.Search Memento Vault for day-to-day recall, past decisions, discoveries, implementation history, and prior session context. Use when the user asks "do you remember", "have we seen", "what did we decide", "what did we learn", "where was this implemented", "find prior context", "check memory", "search the vault", or any question that depends on prior work rather than current files alone.
Archive artifact bundles in Memento Vault. Use when the user says preserve, archive, or save generated artifacts, or wants evidence bundles kept intact instead of turned into atomic notes.
Initialize orra in the current repo. Runs orra_setup, installs all stock directives, and adds vault-bridge when memento-vault is available. Use when Vic says "init orra", "orra setup", "set up orra here", or invokes /orra-init.
Recover recent working context from local state and Memento Vault. Use when the user asks to continue, resume, pick up where they left off, or find prior work.
Run or preview Memento Vault consolidation. Use when the user asks to consolidate, find patterns, run inception, preview clusters, or synthesize cross-session themes.
Review Memento Vault for stale low-value notes and archive confirmed candidates. Use for periodic vault maintenance.