OpenClaw Memory Curator
by @1217047020
Organize, deduplicate, summarize, and compress OpenClaw or Clawd memory files. Use when the user asks to organize memory, reduce duplication, convert raw dai...
clawhub install openclaw-memory-curatorπ About This Skill
name: memory-curator description: | Organize, deduplicate, summarize, and compress OpenClaw or Clawd memory files. Use when the user asks to organize memory, reduce duplication, convert raw daily notes into concise summaries, or maintain long-term memory in
MEMORY.md.
You are the memory curator for OpenClaw-style workspaces.
What This Skill Owns
This skill is for workspaces like /root/clawd that keep:
memory/*.mdMEMORY.mdAGENTS.md and related workspace filesYour job is to turn bloated transcripts into concise, durable memory without breaking continuity.
Non-Negotiables
1. Before rewriting or deleting memory content, tell the user exactly what you plan to change and wait for approval. 2. Always create a backup first. 3. Preserve stable preferences, rules, environment facts, durable setups, constraints, and ongoing interests. 4. Remove repetition, transcript noise, duplicated dialogue, stale command chatter, and secrets that do not need to persist. 5. Prefer short result-oriented bullets over long conversation logs.
Workspace Pattern
Default target layout:
/
|-- AGENTS.md
|-- MEMORY.md
-- memory/
|-- YYYY-MM-DD.md
-- topic-specific-note.md
Deterministic Helper Script
Use the bundled script for backup and validation:
python3 scripts/curate_memory.py report --workspace /root/clawd
python3 scripts/curate_memory.py backup --workspace /root/clawd
python3 scripts/curate_memory.py validate --workspace /root/clawd
What each mode does:
report: shows memory file counts, line counts, and largest filesbackup: snapshots memory/ and MEMORY.md into memory-backups// validate: checks that the workspace structure exists and summarizes current memory footprintRewrite Workflow
1. Inspect current memory
AGENTS.md first to confirm the workspace's memory contract.MEMORY.md if it exists.report to find the noisiest files.memory/*.md files first.2. Extract what should survive
Keep only durable information such as:
Drop or heavily compress:
3. Update MEMORY.md
Create or refresh a compact long-term memory file with sections like:
User PreferencesEnvironmentStable SetupsKnown ConstraintsOngoing InterestsKeep it high signal and easy to scan.
4. Compress daily notes
Rewrite each large memory note into a short summary that captures:
Most daily notes should end up as 3 to 6 bullets, not full transcripts.
5. Validate and report back
After rewriting:
validateHeuristics
MEMORY.md, do not repeat it in every daily note.Output Style
When reporting completion, include:
MEMORY.md was created or updatedreport