Memory Health Check — OpenClaw Diagnostic Script
SkillSkill
Your agent diagnoses AND heals memory problems — structured JSON issues, auto-fix pipeline, log archiving. One script, zero manual fixes.
About
What It Does
Runs a 5-point health check on your OpenClaw agent in about 10 seconds, then automatically fixes what is safe to fix and tells you clearly what it did vs what needs your input.
- Services — failed systemd (Linux) or launchd (macOS) services
- Disk — root filesystem usage, warns at 80%+
- Memory files — last-write age for MEMORY.md, active-context.md, today and yesterday daily logs
- Memory index — real indexed doc count direct from SQLite (bypasses the misleading
openclaw memory statusdisplay) - Today's activity — section count and last entry written
The Problem It Solves
openclaw memory status can show Indexed: 0/1 files · 0 chunks even when your agent has 99+ docs and 1,300+ vectors properly indexed. This skill reads the SQLite DB directly and tells you the truth.
It also catches the second-most-common memory failure: daily logs written to the wrong path, which makes memory_search return nothing even though the files exist.
Auto-Fix vs Report
After running the check, the agent applies a clear decision tree:
Auto-fixes silently (then reports what it did):
- QMD index conflict → runs
openclaw memory index --force, confirms new doc count - Empty index → same fix
- Missing daily log → creates a stub file so future writes work
- Daily log in wrong path → moves it to the correct location
Reports and advises (cannot self-fix):
- Service failures → tells you the exact
systemctl statuscommand to run - Disk above 80% → tells you how to find what's taking up space
- Stale MEMORY.md → offers to write a memory update right now
- Stale active-context.md → offers to update it with current project state
Never does without permission:
- Restarting services
- Deleting files
- Modifying config or credentials
How to Use It
On-demand: Ask your agent "run a health check" or "why is my agent forgetting things". It runs the script, fixes what it can, reports back.
Heartbeat / cron (silent monitoring): Add one line to your HEARTBEAT.md — the agent runs it every cycle and stays silent unless something needs attention.
Proactive trigger: Add a line to AGENTS.md so the agent self-triggers the check when memory_search comes back empty.
What You Get
scripts/memory_health.sh— portable shell script, no dependencies beyond bash and python3SKILL.md— agent instructions including the full auto-fix decision treereferences/memory-architecture.md— the 3-tier memory model (MEMORY.md → active-context.md → daily logs) with community-proven config tweaks
Works On
- Linux servers (Ubuntu, Debian) — systemd + GNU date/stat
- macOS desktops — launchd + BSD date/stat fallbacks
- WSL2 on Windows
Does NOT support native Windows.
Requirements
- OpenClaw installed with
openclawin PATH - bash + python3 (standard on Linux/macOS)
- No API keys, no external network calls, no data leaves your machine
Core Capabilities
- Runs a portable shell script that checks service health, disk usage, memory file freshness, and QMD index state
- Bypasses the openclaw memory status display bug by reading the SQLite DB directly
- Auto-fixes QMD index conflicts and missing daily logs — reports what it fixed vs what needs human action
- Never restarts services or deletes files without explicit user permission
- Three usage modes: on-demand, heartbeat/cron silent monitoring, proactive self-trigger
- Works on Linux (systemd) and macOS (launchd) without modification
Customer ratings
0 reviews
No ratings yet
- 5 star0
- 4 star0
- 3 star0
- 2 star0
- 1 star0
No reviews yet. Be the first buyer to share feedback.
Version History
This skill is actively maintained.
April 1, 2026
v4.0.0: Added staleness warnings (active-context.md + HANDOFF.md >24h flags), slim index topic file integrity check (all 6 topic files), and lossless-claw LCM health check (plugin status, lcm.db existence, message/conversation counts). JSON output includes topic_files and lcm keys. Skill now covers the full 7-layer OpenClaw memory stack.
April 1, 2026
v3.0.0: Added bootstrap truncation detection — scans all workspace .md files against bootstrapMaxChars limit, flags files silently getting cut mid-session. Added MEMORY.md monolith detection. Added HANDOFF.md to memory file checks. Documented the silent truncation bug with real fix steps. JSON output now includes bootstrap health key.
April 1, 2026
v4: Self-contained. All scripts (memory_health.sh, auto_fix.sh, archive_logs.sh) and reference docs now embedded directly in SKILL.md. No missing files. Agent extracts scripts on first use.
April 1, 2026
April 1, 2026
April 1, 2026
One-time purchase
$19
By continuing, you agree to the Buyer Terms of Service.
Details
- Type
- Skill
- Category
- Productivity
- Price
- $19
- Version
- 6
- License
- One-time purchase
Works great with
Personas that pair well with this skill.