memory-checkup
Audit 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. ol…
Thomaszhou
@thomaszhou22
Install
$ openclaw skills install @thomaszhou22/memory-checkupMemory Checkup
Audit 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.
When to run
- The user asks to check/audit/clean memory ("体检", "check my memory").
- Before answering questions that depend on facts recorded over many days (awards, counts, project statuses).
- After a metric changes and the user asks to sync all documents (e.g. download counts in application essays).
- Periodically, alongside daily memory flushes.
Procedure
Step 1: Locate the corpus
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.
Step 2: Run the audit script
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 |
Step 3: Verify before editing
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.
Step 4: Fix
- Update stale mentions, or annotate them as superseded if history should be preserved ("旧口径 4,600+ 已作废").
- Remove or repair dangling references.
- Do NOT delete orphan daily files; list them to the user and let them decide.
- After edits, re-run the audit to confirm zero issues.
Step 5: Report
Summarize in the user's language: how many files scanned, issues by type, what was fixed, what needs a user decision.
Notes
- The script is read-only. All fixes are made by the agent, file by file, after verification.
- Number extraction currently covers downloads/stars/users patterns (English and Chinese); extend
DEFAULT_PATTERNSfor other metrics. - JSON output is machine-readable for piping into other tools.
Top skills in this category
Self-Improving + Proactive Agent
@ivangdavilaSelf-reflection + Self-criticism + Self-learning + Self-organizing memory. Agent evaluates its own work, catches mistakes, and improves permanently. Use when...
Self Improving Agent
@xiuchengSelf-improving agent system that analyzes conversation quality, identifies improvement opportunities, and continuously optimizes response strategies.
Proactive Agent Lite
@bestrockyTransform AI agents from task-followers into proactive partners with memory architecture, reverse prompting, and self-healing patterns. Lightweight version f...
Marketing Skills
@jchopard69Access 23 marketing modules offering checklists, frameworks, and ready-to-use deliverables for CRO, SEO, copywriting, analytics, launches, ads, and social me...
得到大脑(原 Get 笔记)
@iswalle通过官方 getnote CLI 连接得到大脑,完成浏览器授权、连接诊断、CLI 升级,以及保存、查询、搜索、整理和管理用户的真实笔记。用户明确要求登录、诊断或升级,或要保存链接/图片、查找和查看笔记、整理知识库/文件夹、订阅博主、管理标签时使用;不会自行安装或更新 Skill。