/odin-knowledge:memory-cleanfrom ODIN Knowledge
Audits Claude Code's durable memory store for stale, duplicate, or orphaned memories. Creates a snapshot before any changes and requires human confirmation per repair group.
Ships in ODIN Knowledge. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
| Field | Bound contract |
|---|---|
| Trigger | A human explicitly asks to audit memory or find stale or duplicate memories. |
| Authority | Human-gated: previews each target and consequence and obtains explicit confirmation for each repair group before changing data at rest in $MEMORY_DIR, which is outside version control by default; an override git would track is refused; the only other write is the snapshot copy taken first, and rollback restores the store from that snapshot. |
| Side effect | Create one snapshot copy, then make only confirmed edits, merges, archives, or deletions inside $MEMORY_DIR. |
| Done | A fresh deterministic audit reports zero critical findings, and every residual warning or informational finding is reported. |
MEMORY_DIR override.SESSION_HISTORY_GLOB for session-based staleness evidence. MEMORY_CLEAN_SKILL_SCRIPTS relocates the bundled audit-memory.py only; it never selects the resolver.../memory-update/scripts/resolve-paths.sh memory_dir and ../memory-update/scripts/resolve-paths.sh session_history_glob. If MEMORY_UPDATE_SKILL_SCRIPTS is set, run $MEMORY_UPDATE_SKILL_SCRIPTS/resolve-paths.sh instead; that variable is memory-update's relocate hook, not a clean-skill hook. Reject resolver errors, control characters, forbidden shell metacharacters, and unsafe whitespace rather than interpreting them. The resolver refuses a memory directory git would track. Done when: both paths resolve without error or the run stops with a blocked diagnostic.$MEMORY_DIR; do not create new memories, edit another store, redact suspected credentials, or widen the requested scope. Done when: the scope boundary is stated and no out-of-scope target is queued.$MEMORY_DIR in /tmp and record its path. Done when: the snapshot directory exists and its path is recorded, or the run stops without changing the store.audit-memory.py "$MEMORY_DIR" "$SESSION_HISTORY_GLOB" and preserve its JSON output. The deterministic audit checks index orphans and dangling links, schema and required sections, index size limits, credential patterns, fix-recipe and path-pinned content, relative dates, body-line Jaccard similarity above 0.70, missing reference targets, past project dates without historical-anchor phrases, and feedback rules contradicted by session evidence. Done when: the JSON report is captured and preserved regardless of exit status.MEMORY.md; remove a dangling index line; merge a near-duplicate pair while naming the superseded file and index update; make a targeted structural edit; or update, archive, or delete a stale memory. Show a file's content before proposing its deletion. For a suspected credential, report the critical finding and make no redaction. Done when: every repair group has an exact preview and no unpreviewed repair is queued.$MEMORY_DIR. Preserve unrelated content. If an applied repair fails partway, stop further mutation and restore every file touched by that group from the snapshot before reporting the failure. Done when: every confirmed repair is applied or the failed group is restored and the run stops.blocked with the resolver diagnostic.blocked: MEMORY_DIR is inside version control.blocked with the failed snapshot target.blocked with the diagnostic; never infer omitted findings.blocked rather than treating absence of evidence as freshness.blocked and identify every potentially changed file.non-converged with the remaining critical findings and residual warnings or information; do not widen scope or invent a fix.Return the snapshot path, resolved audit scope, severity-grouped JSON findings, per-group previews and confirmation decisions, applied and restored file lists, fresh re-audit result, residual warnings and information, and exactly one terminal classification: complete, blocked, or non-converged. complete is valid only when the fresh audit contains zero critical findings.
What SKILL.md sets; muted values are Claude Code's defaults
41 skills in this plugin
/autolearnUse when a verified non-trivial fix lands or existing solution docs need refresh. Not for unverified fixes./catchupUse when the human returns after a gap, cannot follow the project, asks what happened, or wants a visual HTML recap page. Not for onboarding: use onboard. Not for handoff: use handoff./compoundUse when the user explicitly asks to save, curate, or consolidate what was learned, or closes a meaningful knowledge-work session. Not for remote, publish, deploy, or irreversible changes.npx claudepluginhub outlinedriven/odin-claude-plugin --plugin odin-knowledgeOther plugins' skills for the same job