Automated system health and memory metabolism for OpenClaw.
Inspired by the ClawIntelligentMemory project, this skill ensures Kim Assistant's environment stays clean and its memory stays dense.
System Health Checks: Monitor disk usage and critical resources.
Auto-Cleanup: Remove aged temporary files and artifacts.
Memory Metabolism (M3):
Decision Logging: Every maintenance cycle is logged to MEMORY/DECISIONS/ for auditability.
bash
python3 /root/.openclaw/workspace/scripts/nightly_optimizer.py
python
from decision_logger import log_decision
log_decision(title="Example", ...)
Located in scripts/nightly_optimizer.py:
TEMP_DIRS: List of directories to clean.threshold: Disk usage percentage to trigger warnings.days: Age of files to cleanup.Created: 2026-02-12 | By Kim Assistant