From claude-memory
Deduplicates accumulative records, consolidates near-duplicate episodics, removes junk procedurals, and splits large multi-topic memories into focused units.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-memory:memory-maintain [optional: 'dedup only', 'episodic only', 'split only', 'full'][optional: 'dedup only', 'episodic only', 'split only', 'full']The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Clean up noise, deduplicate records, and reorganize large memories. Run this after upgrading the plugin, when search quality degrades, or when memories have grown large and unfocused.
Clean up noise, deduplicate records, and reorganize large memories. Run this after upgrading the plugin, when search quality degrades, or when memories have grown large and unfocused.
Run memory_health to get current counts, types, and staleness stats.
These records should exist at most once each. Search for duplicates and merge them.
Tech-stack:
memory_search("Technology stack used", type="semantic")tech-stack tag AND content starts with Technology stack used::
memory_update the most comprehensive record with the union of all items (sorted alphabetically)memory_delete all other duplicatestech-stack tag but does NOT start with Technology stack used: (e.g., a detailed dependencies description from memory-init), rename its tag from tech-stack to tech-stack-detail via memory_update to prevent merge conflicts.Active modules:
memory_search("Active modules directories", type="semantic")active-modules tag AND content starts with Active modules/directories::
active-modules-detail.memory_list(type="episodic", limit=50) — scan through all episodic records[Request interrupted by user for tool use] with no tools AND no files AND no memory opssession-end records: If multiple have the same or near-identical task text (e.g., all say [Request interrupted by user for tool use] with similar tool lists), keep only the one with the highest importance. Delete the rest.session-files records: If multiple have the same or near-identical file list (>80% overlap), keep only the most recent. Delete the rest.session-errors records: Same approach — deduplicate near-identical error records.memory_list(type="procedural", limit=50) — scan through all procedural recordsmktemp, sqlite3, manual test setup, or multi-line heredocs — these are test/debug artifacts, not reusable workflows/var/folders/, /tmp/tmp.)build, test, lint, install, deploy). If multiple records share the same category:
memory_list(type="pattern", limit=50) — scan through all pattern records**Tools:** TaskCreate, TaskUpdate, Edit, Bash)"X Y Z pattern: Tools" and content provides no real patternFor each type (semantic, procedural, pattern), run memory_list with a reasonable limit (20-50). Identify memories that are:
For each candidate:
memory_getmemory_store using the same type, tags, context, and source"{original title}: {section topic}" (or just the section topic if no original title)relates_to relations between sibling sections using memory_relatememory_deleteEdge cases:
semantic and procedural separately).Summarize what was done:
memory_healthrelates_to between sibling sections.memory_search to avoid creating duplicates of existing memories.'episodic only'), only run that step.$ARGUMENTS
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub d2a8k3u/claude-code-memory