Help us improve
Share bugs, ideas, or general feedback.
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.
npx claudepluginhub zircote/mnemonicHow 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 -->
Audits, classifies, and selectively prunes Claude Code agent memories by type, age, access frequency, staleness, and fidelity using decision trees and audit trails. Use when memory grows large, project state shifts, or retrieval degrades.
Audits Pensyve memories for staleness (>30 days unaccessed or low retrievability), contradictions, low confidence (<0.5), and consolidation candidates, then offers confirmed cleanup actions. Use periodically.
Guides memory curation: updating outdated content, marking memories obsolete, linking related knowledge, and deduplicating to maintain accurate knowledge bases and graphs.
Share bugs, ideas, or general feedback.
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 changes