{"skill":{"slug":"active-maintenance","displayName":"Active Maintenance","summary":"Automates system health monitoring, temp file cleanup, memory deduplication and summarization, with detailed logging for OpenClaw maintenance.","description":"# Active Maintenance Skill\n\n**Automated system health and memory metabolism for OpenClaw.**\n\nInspired by the `ClawIntelligentMemory` project, this skill ensures Kim Assistant's environment stays clean and its memory stays dense.\n\n---\n\n## Features\n\n1. **System Health Checks**: Monitor disk usage and critical resources.\n2. **Auto-Cleanup**: Remove aged temporary files and artifacts.\n3. **Memory Metabolism (M3)**: \n   - Exact deduplication of memory fragments.\n   - Resource distillation: Summarizing dense notes into core insights.\n4. **Decision Logging**: Every maintenance cycle is logged to `MEMORY/DECISIONS/` for auditability.\n\n---\n\n## Usage\n\n### Run Full Maintenance\n```bash\npython3 /root/.openclaw/workspace/scripts/nightly_optimizer.py\n```\n\n### Log a Decision\n```python\nfrom decision_logger import log_decision\nlog_decision(title=\"Example\", ...)\n```\n\n---\n\n## Configuration\n\nLocated in `scripts/nightly_optimizer.py`:\n- `TEMP_DIRS`: List of directories to clean.\n- `threshold`: Disk usage percentage to trigger warnings.\n- `days`: Age of files to cleanup.\n\n---\n*Created: 2026-02-12 | By Kim Assistant*\n","tags":{"latest":"1.0.0"},"stats":{"comments":0,"downloads":594,"installsAllTime":10,"installsCurrent":10,"stars":0,"versions":1},"createdAt":1771689193797,"updatedAt":1778491601423},"latestVersion":{"version":"1.0.0","createdAt":1771689193797,"changelog":"Active Maintenance Skill v1.0.0\n\n- Introduces automated system health checks and resource monitoring.\n- Adds auto-cleanup processes for removing aged temporary files and artifacts.\n- Implements Memory Metabolism (M3) for exact deduplication and dense resource summarization.\n- Ensures every maintenance action is logged for auditability.\n- Provides clear usage instructions and configuration options.","license":null},"metadata":null,"owner":{"handle":"xiaowenzhou","userId":"s175hqy0v0vv8z0q6qrax27e3d8856ax","displayName":"xiaowenzhou","image":"https://avatars.githubusercontent.com/u/17638553?v=4"},"moderation":null}