Install
openclaw skills install @thomaszhou22/memory-checkupAudit and repair an AI agent's memory corpus for consistency. Use when memory contains stale numbers or superseded facts, when different memory files contradict each other (e.g. old download/star counts), when a metric changed and documents must be synced, when daily memory flushes have gaps or stopped, when memory references files that no longer exist, when the user says "check my memory", "memory audit", "体检记忆", or when answering from memory feels risky because facts may have drifted.
openclaw skills install @thomaszhou22/memory-checkupAudit an agent's memory corpus (MEMORY.md, USER.md, and files under memory/) and surface consistency problems before they reach the user: stale superseded numbers, contradictions, dangling file references, abandoned daily entries, and orphan files.
The corpus root is the agent workspace: it must contain MEMORY.md and/or a memory/ directory. Ask or infer from context; in OpenClaw this is the workspace directory.
python3 scripts/memory_checkup.py --memory-dir <workspace-root> [--json]
The script scans and reports:
| Check | Meaning |
|---|---|
| Stale numbers | Same metric (downloads/stars/users) with an old value in some files and a newer value in newer files |
| Dangling references | File paths mentioned in memory that no longer exist |
| Stale entries | Daily-flush files whose date has a gap to the newest entry |
| Orphans | memory/ files never referenced from anywhere else |
For every stale-number finding, confirm the current value with the user or with live evidence (run the real check: hit the API, count the files). Never assume the newest mention is correct just because it is newest.
Summarize in the user's language: how many files scanned, issues by type, what was fixed, what needs a user decision.
DEFAULT_PATTERNS for other metrics.