consolidate-memory

Merge duplicate memory notes and prune stale facts from MEMORY.md.

2|1|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/Sacred-G/oh-my-claw --skill consolidate-memory-sacred-g
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: consolidate-memory
Source: https://github.com/Sacred-G/oh-my-claw/tree/main/secure-openclaw/skills-main/skills/other-skills/consolidate-memory
Command: npx skills add https://github.com/Sacred-G/oh-my-claw --skill consolidate-memory-sacred-g

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reflective pass over memory files to merge duplicates, fix stale facts, and prune the memory index for quicker, more reliable recall.

Core Features & Use Cases

  • Inventory memory: list the memory directory and read the MEMORY.md index to surface overlaps and stale entries.
  • Consolidation: separate durable context (preferences, relationships, recurring workflows) from dated items, merge overlaps, and retire outdated notes.
  • Tidy index: update MEMORY.md to stay under 200 lines (~25KB), keep one line per entry in the form "- Title — hook" and preserve durable information for future sessions.

Quick Start

Instruct the AI to run a memory consolidation pass over MEMORY.md and all topic files to produce a cleaned, durable index.

Frequently Asked Questions about consolidate-memory

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I clean up my memory index and merge duplicate memory notes?

Memory consolidation works by taking stock of your memory directory, consolidating overlaps and stale facts, and tidying the index. It separates durable context like preferences and relationships from dated items, retiring outdated notes to ensure quicker, more reliable recall.

What is the best way to keep my memory index under 200 lines for reliable recall?

The best way to keep a memory index under 200 lines is to run a consolidation pass that enforces one entry per line in the format "- [Title](file.md) — hook". This prunes outdated notes while preserving durable information for future sessions.

Can I use memory consolidation to separate durable preferences from outdated workflows?

Yes, memory consolidation separates durable context such as preferences, relationships, and recurring workflows from dated items. It merges overlaps and retires outdated notes to keep your knowledge base current and reliable.

How do I tidy a MEMORY.md file that has become cluttered with stale facts?

To tidy a cluttered MEMORY.md file, instruct a reflective consolidation pass over the file and all topic files. This updates the index to stay under 200 lines, keeping one line per entry while preserving durable information and retiring dated items.

When should I run a memory consolidation pass over my topic files?

You should run a memory consolidation pass when your memory directory has overlapping entries or stale facts that hinder reliable recall. It inventories topic files, fixes outdated notes, and updates the index to maintain a clean, durable knowledge base.