from decision_logger import log_decision
log_decision(title="Example", ...)
Configuration
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
1---2name: active-maintenance3description: Active Maintenance Skill4---5# Active Maintenance Skill67**Automated system health and memory metabolism for OpenClaw.**89Inspired by the `ClawIntelligentMemory` project, this skill ensures Kim Assistant's environment stays clean and its memory stays dense.1011---1213## Features14151. **System Health Checks**: Monitor disk usage and critical resources.162. **Auto-Cleanup**: Remove aged temporary files and artifacts.173. **Memory Metabolism (M3)**: 18 - Exact deduplication of memory fragments.19 - Resource distillation: Summarizing dense notes into core insights.204. **Decision Logging**: Every maintenance cycle is logged to `MEMORY/DECISIONS/` for auditability.2122---2324## Usage2526### Run Full Maintenance27```bash28python3 /root/.openclaw/workspace/scripts/nightly_optimizer.py29```3031### Log a Decision32```python33from decision_logger import log_decision34log_decision(title="Example", ...)35```3637---3839## Configuration4041Located in `scripts/nightly_optimizer.py`:42- `TEMP_DIRS`: List of directories to clean.43- `threshold`: Disk usage percentage to trigger warnings.44- `days`: Age of files to cleanup.4546---47*Created: 2026-02-12 | By Kim Assistant*
Run npx skillmds@latest add javimosch/active-maintenance in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Active Maintenance Skill It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
javimosch (@javimosch) published this skill. Their other Agent Skills are listed on their SkillMD profile.