From mnemonic
Audits mnemonic memory system for frontmatter validity, broken wiki-links, orphans, and decay; validates relationships, repairs links, updates strength, relocates files with git mv and reference updates. Use after renames or low health.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mnemonic:custodianThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
<!-- BEGIN MNEMONIC PROTOCOL -->
Search first: /mnemonic:search {relevant_keywords}
Capture after: /mnemonic:capture {namespace} "{title}"
Run /mnemonic:list --namespaces to see available namespaces from loaded ontologies.
Provides custodial services for the mnemonic memory system: auditing, validation, link repair, decay management, relocation, and summarization.
The custodian operates through focused Python modules:
| Module | Responsibility |
|---|---|
memory_file.py | Parse/validate/update MIF frontmatter |
link_checker.py | Build UUID/slug index, validate links, find orphans |
decay.py | Calculate exponential/linear/step decay, update strength |
relocator.py | Move files + update all cross-references |
validators.py | MIF schema validation, ontology relationship checks |
report.py | Structured findings with markdown/JSON output |
custodian.py | CLI orchestrator dispatching to modules |
Runs all checks in a single pass. This is the recommended entry point.
/mnemonic:custodian audit [--fix] [--dry-run]
Checks performed:
Moves memories when project or org names change:
/mnemonic:custodian relocate <old-path> <new-path> [--dry-run]
git mv for history preservation/mnemonic:custodian validate-links [--fix]
With --fix: broken [[wiki-links]] are replaced with plain text.
/mnemonic:custodian decay [--dry-run]
Updates temporal.decay.currentStrength (or strength) in-place.
Formula: strength * 0.5^(days_since_access / half_life_days)
/mnemonic:custodian summarize
Identifies compression candidates (>100 lines, >30d old or strength < 0.3).
Delegate actual compression to mnemonic:compression-worker agent.
/mnemonic:custodian ensure-bidirectional [--fix]
Scans all memory relationships and checks that each has a corresponding inverse
back-reference in the target. For example, if A supersedes B, B should have
SupersededBy (or superseded_by) pointing back to A.
Without --fix: reports missing back-references as warnings.
With --fix: auto-creates the missing inverse relationships.
Read-only validation. Reports errors without modifying files.
lib/paths.py--dry-run support on all mutation operations--commit flag for committing changesnpx claudepluginhub zircote/mnemonicDebug and fix memory system issues: validate memories, rate quality, manage protection, forget bad memories, and restore from checkpoints.
Audits Claude Code memory directory for structural issues (orphans, dangling refs, duplicates, missing sections, oversized entries) and staleness against session transcripts. Reports with evidence, fixes only on confirmation.
Audits and selectively forgets stored Claude Code memories. Use when memory is large/uncurated, project state has shifted, or retrieval quality degraded.