agentsclimarketplace

Memory cleanup

Skill ladyiceberg/openclaw-memory-quality/skills/memory-cleanup

openclaw-memhealth: Memory health monitor for OpenClaw — diagnose, guard, and remediate your agent's memory.

Install
npx -y skills add ladyiceberg/openclaw-memory-quality --skill memory-cleanup

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Guided two-step cleanup for OpenClaw long-term memory (MEMORY.md) — audit first, confirm with user, then clean. Handles report_id automatically so the user never sees it. Use this skill whenever the user wants to clean, purge, or tidy their OpenClaw memories, mentions stale or old memories, or uses phrases like "clean memory", "cleanup memory", "delete old memories", "remove stale memories", "清理记忆", "删除旧记忆", "记忆清理". Always use this skill for memory cleanup requests — don't attempt cleanup without it.

SKILL.md

1.9 KB, as published. Nobody here has run it

Memory Cleanup

Two-step guided cleanup. The user must confirm before anything is deleted. Never skip the confirmation step.

Step 1 — Audit

Call memory_longterm_audit_oc and store the returned report_id internally (never show it to the user).

Translate the results into plain language, e.g.:

Found 23 long-term memories to handle:

  • 8 with deleted source files (suggested for removal)
  • 3 exact duplicates (suggested for removal)
  • 12 flagged for review

Estimated reduction: ~17% of MEMORY.md

If the audit shows everything is healthy, tell the user — no cleanup needed.

Step 2 — Confirm

Ask clearly: "Proceed with cleanup?"

  • Yes → Step 3
  • No / cancel → stop, do nothing
  • "Show details" → display the raw audit report, then ask again

Step 3 — Execute

Call memory_longterm_cleanup_oc with the report_id from Step 1. Report what was deleted, what was kept, and where the backup lives.

Error handling

ErrorPlain-language explanation
MEMORY.md not found"Long-term memory file doesn't exist yet — Dreaming may not have run."
mtime changed"MEMORY.md was modified after the audit (OpenClaw may have just promoted new memories). Please re-run /memory-cleanup."
Lock timeout"OpenClaw is currently writing to memory. Wait a moment and try again."

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.