Auto-Updater (Gateway)
by @xabo1986
Schedule and run safe daily/weekly updates for Clawdbot + installed skills using the Gateway cron scheduler. Use when setting up "run updates at 04:00" jobs, rotating update reports, running `clawdhub update --all`, and (optionally) applying Clawdbot updates + restart + doctor.
clawhub install auto-updater-gateway📖 About This Skill
name: auto-updater-gateway description: Schedule and run safe daily/weekly updates for Clawdbot + installed skills using the Gateway cron scheduler. Use when setting up "run updates at 04:00" jobs, rotating update reports, running
clawdhub update --all, and (optionally) applying Clawdbot updates + restart + doctor.
metadata: {"version":"1.0.1","clawdbot":{"emoji":"🔄","category":"automation","os":["windows","darwin","linux"],"requires":{"anyBins":["clawdbot","clawdhub"]}}}
Auto-Updater (Gateway)
Create a reliable daily auto-update routine using Clawdbot Cron (Gateway scheduler).
This is a "skill" in the sense of a repeatable workflow + correct config shapes (not a plugin).
Quick setup checklist
1) Ensure ClawHub CLI is logged in (for skill updates):
/home/xabo/.nvm/versions/node/v22.22.0/bin/clawdhub login --workdir /home/xabo/clawd --dir skills
/home/xabo/.nvm/versions/node/v22.22.0/bin/clawdhub whoami --workdir /home/xabo/clawd --dir skills
2) Decide:
Recommended cron job (isolated, deliver output)
Use an isolated cron job so it doesn’t spam the main session context.
Example CLI (04:00 Europe/Stockholm):
/home/xabo/.nvm/versions/node/v22.22.0/bin/clawdbot cron add \
--name "Daily auto-update (Clawdbot + skills)" \
--cron "0 4 * * *" \
--tz "Europe/Stockholm" \
--session isolated \
--wake now \
--deliver \
--channel telegram \
--to "2095290688" \
--message "Run daily auto-update: update skills via clawdhub update --all; if Clawdbot has an update available, apply it and restart; then run clawdbot doctor --non-interactive; report what changed."
What the job should do (workflow)
Within the cron run:
1) Capture “before” state
clawdbot --versionclawdhub list (skills + versions)2) Update skills
clawdhub update --all3) (Optional) Update Clawdbot
clawdbot doctor --non-interactive.4) Send a concise summary
Notes / gotchas
schedule.tz (IANA tz like Europe/Stockholm).channel + to so the job always reaches you.Troubleshooting
clawdhub update says “Not logged in” → run clawdhub login again.📋 Tips & Best Practices
clawdhub update says “Not logged in” → run clawdhub login again.