Diagnose, score, and steadily improve your OpenClaw setup.
This skill is an audit toolkit, not a magic self-healing system. It is good at surfacing likely problems, weak spots, and opportunities. Its --fix mode is intentionally conservative.
# Full diagnostic suite — one command
python3 scripts/self_optimize.py
# Individual tools
python3 scripts/health_score.py # Health grade (A+ to F)
python3 scripts/memory_auditor.py # Memory hygiene check
python3 scripts/cron_optimizer.py # Cron analysis
python3 scripts/cron_optimizer.py --fix # Conservative auto-repair (backs up first)
python3 scripts/skill_comparator.py # Adjacent/overlapping ClawHub skills
Scores 5 dimensions:
Detects:
Detects:
to)--fix mode:
memory/cron-backup.json before changesdelivery=noneVia ClawHub API (https://clawhub.ai/api/v1/):
Important: these are comparison hints, not authoritative replacements.
Runs all 4 tools and produces:
memory/ for historical reviewReads (non-destructive):
memory/*.mdskills/*/SKILL.mdopenclaw cron list --jsonhttps://clawhub.ai/api/v1/skills/...Writes (reports only):
memory/health-score.jsonmemory/memory-audit.jsonmemory/cron-optimizer.jsonmemory/skill-comparator.jsonmemory/self-optimize-report.jsonmemory/self-optimize-last.jsonModifies (only with --fix):
cron_optimizer.py --fix edits cron jobs via openclaw cron editmemory/cron-backup.json firstSet up a weekly cron (read-only, no --fix):
openclaw cron add \
--name "Agent Self-Optimize" \
--cron "0 11 * * 0" \
--tz "America/Los_Angeles" \
--session isolated \
--stagger 2m \
--no-deliver \
--message "Run agent self-optimization:
python3 ~/.openclaw/workspace/skills/agent-health-optimizer/scripts/self_optimize.py
Report results. List HIGH priority issues first. Keep it brief if everything looks fine."
Use this skill when you want:
Do not treat it as a substitute for human review on destructive or far-reaching changes.
Diagnostic patterns informed by:
This work is licensed under CC BY-SA 4.0. You are free to share and adapt, with attribution and same-license requirement.
共 2 个版本