Enhanced auto-updater with detailed logging, missed run recovery, and Gateway restart protection.
Enhanced auto-updater with detailed logging, missed run recovery, and Gateway restart protection.
Version: 1.1.0 (Updated 2026-02-22)
What's New:
Note: This is an enhanced version of the original auto-updater skill with production-ready features.
This skill sets up a daily cron job that:
clawdbot doctor or package manager)clawdhub update --all)Ask Clawdbot to set up the auto-updater:
CODEBLOCK0
Or manually add the cron job:
CODEBLOCK1
For production use, add these settings to your cron job:
CODEBLOCK2
Key Settings:
missedRunPolicy: "run-immediately" - Auto-runs if Gateway was offline at scheduled time| Option | Default | Description |
|---|---|---|
| Time | 4:00 AM | When to run updates (use --cron to change) |
| Timezone |
--tz |run-immediately |For npm/pnpm/bun installs:
CODEBLOCK3
For source installs (git checkout):
CODEBLOCK4
Always run clawdbot doctor after updating to apply migrations.
CODEBLOCK5
This checks all installed skills against the registry and updates any with new versions available.
After updates complete, you'll receive a message like:
CODEBLOCK6
To prevent state loss during Gateway restarts, the update process logs every step:
CODEBLOCK7
CODEBLOCK8
Phase 1: Preparation
Phase 2: Check for Updates
Phase 3: Execute Update
openclaw update run or INLINECODE11Phase 4: Persist State
Phase 5: Send Report
Phase 6: Delay Restart (Critical!)
Check for updates without applying:
CODEBLOCK9
View current skill versions:
CODEBLOCK10
Check Clawdbot version:
clawdbot --version
cron.enabled in configIf an update fails, the summary will include the error. Common fixes:
clawdbot doctor to diagnoseIf Gateway restarts during update (common with npm installs):
Remove the cron job:
CODEBLOCK12
Or disable temporarily in config:
{
"cron": {
"enabled": false
}
}
Choose a time when you're unlikely to be using the system:
CODEBLOCK14
Prevents missing updates if Gateway is offline:
CODEBLOCK15
Less intrusive than chat messages:
Always write to log file before sending reports:
Add 30-second delay before any Gateway restart:
sleep 30
Improvements:
Bug Fixes:
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 auto-updater-pro-1776419952 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 auto-updater-pro-1776419952 技能
skillhub install auto-updater-pro-1776419952
文件大小: 6.89 KB | 发布时间: 2026-4-17 19:02