# Memorb Forgetter

> Memory Archive Executor (Mind Workers Forgetter): Archive outdated or MUSTY-flagged memorbs/Long-Term/ or memorbs/ pages to memorbs/Dump/ after user confirmation, and update vault Wiki Links. Triggered by memorb-lint report or user archive requests.

- Skill: `iamjosuho/memorb-forgetter` (Agent Skill)
- Install (CLI): `npx skillmds@latest add iamjosuho/memorb-forgetter`
- Raw SKILL.md: https://api.skillmd.com/api/skills/iamjosuho/memorb-forgetter/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: iamjosuho (https://skillmd.com/u/iamjosuho)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/iamjosuho/memorb-forgetter

---


# Memorb Forgetter Skill

> **Purpose**: Decoupled archiving executor. Executes physical file relocation of `memorbs/Long-Term/` and `memorbs/` pages flagged by `memorb-lint` under the MUSTY criteria, ensuring link integrity across the vault.

## Execution Sequence

1. **Verify Target & User Confirmation**:
   - Confirm target orb in `memorbs/Long-Term/` (or `memorbs/HQ/Core`／`Belief`) and verify explicit user approval.
2. **Detect Orb Layout**:
   - **Plain orb**: `{base}/{category}/{name}.md` exists as a single file.
   - **Bundle orb**: `{base}/{category}/{name}/` is a folder containing `{name}.md` (and attachment files).
   - Use this two-step check to determine which applies before moving anything.
3. **Move Orb**:
   - *Plain orb*: `mv {base}/{category}/{name}.md memorbs/Dump/{category}/{name}.md`
   - *Bundle orb*: `mv {base}/{category}/{name}/ memorbs/Dump/{category}/{name}/` (move the entire folder)
   - Update the target page's frontmatter (`memorbs/Dump/{category}/{name}.md` or `memorbs/Dump/{category}/{name}/{name}.md`): set `status: archived` and add `archived_at: YYYY-MM-DD`.
4. **Rewrite Vault Wiki Links**:
   - Search the vault for all references to any of these patterns: `[[{name}]]`, `[[memorbs/Long-Term/{category}/{name}]]`, `[[memorbs/Long-Term/{category}/{name}/{name}]]`.
   - Rewrite all matches to `[[memorbs/Dump/{category}/{name}|{name}]]` so historical context is preserved without breaking links.
5. **Attachments need no special handling**: raw material lives inside the orb's own bundle folder, so moving the folder in step 3 already carries it. Nothing is deleted — archiving is always a relocation.
6. **Record the Archive Commit**:
   - Append one concise `archive` entry to `memorbs/log.md`:
     ```markdown
     ## [YYYY-MM-DD HH:MM] archive | {name}
     - 影響頁面：[[memorbs/Dump/{category}/{name}|{name}]]、[[...]]
     - 操作註記：依 MUSTY {M/U/S/T/Y} 封存；已更新連結。
     ```
   - Link the archived page and any source page whose state was affected. Keep original path, layout, and full rationale in the archived source page when needed; do not duplicate them in the journal.

