2.0 KiB
2.0 KiB
name, description
| name | description |
|---|---|
| openclaw-healthcheck-cron | Create and run a reusable OpenClaw deep healthcheck automation using a cron job plus a script. Use when setting up scheduled OpenClaw health audits, standardizing security/status checks, sanitizing environment-specific values for sharing, and packaging the setup for reuse. |
OpenClaw Healthcheck Cron Skill
Create a portable healthcheck automation that runs on a schedule and reports concise findings.
Build the automation
- Create a script at
scripts/healthcheck.sh(or reuse the one in this skill). - Keep checks read-only by default.
- Write artifacts to
/tmp/openclaw-healthcheck/YYYY-MM-DD/HHMMSS/. - Return a compact summary with severity.
Create the scheduled job
Use an isolated cron agentTurn job that runs twice daily (example: 6am and 7pm local time):
schedule.kind:cronschedule.expr:0 6,19 * * *schedule.tz: set local timezonesessionTarget:isolatedpayload.kind:agentTurndelivery.mode:announce(ornoneif reporting is handled inside task)
Use this task pattern:
- Execute
bash scripts/healthcheck.sh - Parse summary line and emit:
- Verdict:
OK | MONITOR | NEEDS_ATTENTION - Counts: passed/warn/fail
- Artifact path
- Active issues + recommended next action
- Verdict:
Sanitize before publishing
Remove or parameterize all local identifiers:
- Usernames, hostnames, phone numbers, chat IDs
- API keys, tokens, webhook URLs
- Absolute personal paths (use placeholders or relative paths)
Replace with variables:
${HEALTHCHECK_OUTPUT_DIR:-/tmp/openclaw-healthcheck}${OPENCLAW_HEALTH_TZ:-America/New_York}${HEALTHCHECK_EXCLUDE:-small model,sandbox,groupPolicy}
Validate
- Run script manually once.
- Confirm artifact directory and summary format.
- Run cron job once with
cron run. - Verify final message is concise and actionable.
Package
Package as a .skill zip containing only:
SKILL.mdscripts/healthcheck.shreferences/cron-job-example.json