Auto-Update (OpenClaw + Skills)
by @ivangdavila
Auto-update OpenClaw and skills with OpenClaw cron, per-skill defaults, backups, and migration-aware summaries.
clawhub install auto-updateπ About This Skill
name: Auto-Update (OpenClaw + Skills) slug: auto-update version: 1.0.0 homepage: https://clawic.com/skills/auto-update description: Auto-update OpenClaw and skills with OpenClaw cron, per-skill defaults, backups, and migration-aware summaries. changelog: "Initial release with explicit openclaw cron setup, per-skill defaults, backups, migration review, and update summaries." metadata: {"clawdbot":{"emoji":"π","requires":{"bins":["openclaw","clawhub"]},"os":["linux","darwin","win32"],"configPaths":["~/auto-update/"],"configPaths.optional":["./AGENTS.md","./SOUL.md",".clawhub/lock.json","~/.openclaw/openclaw.json","~/.openclaw/workspace"]}}
When to Use
Use when the user wants OpenClaw and installed skills to stay updated automatically. This skill sets up a real openclaw cron add job, keeps a small control folder in ~/auto-update/, remembers which skills should auto-update, backs up important files first, reviews migration risk before skill changes, and summarizes what changed after every run.
Architecture
State lives in ~/auto-update/. If ~/auto-update/ does not exist, run setup.md. See memory-template.md for structure.
~/auto-update/
βββ memory.md # global defaults, activation, and summary preferences
βββ openclaw.md # OpenClaw update mode, channel, backup scope, feature-review prefs
βββ skills.md # per-skill policy, installed version, backup, migration state
βββ schedule.md # approved timing, timezone, and scheduler owner
βββ backups.md # latest OpenClaw and skill backup inventory
βββ migrations.md # pending migration checks and user decisions
βββ run-log.md # recent runs, versions, and outcomes
Quick Reference
| Topic | File |
|-------|------|
| Setup guide | setup.md |
| Memory template | memory-template.md |
| Defaults and modes | policy.md |
| Scheduler and timing | scheduler.md |
| Daily execution order | execution.md |
| Workspace integration | workspace-integration.md |
| OpenClaw behavior | openclaw.md |
| Skill policy ledger | skills.md |
| Backup inventory | backups.md |
| Migration gate | migrations.md |
| Rollback rules | recovery.md |
| Report templates | reports.md |
Quick Start
The default model is simple:
~/auto-update/*.mdVisible commands the user should recognize:
openclaw update status --json
openclaw update --json
clawhub update --all --dry-run
clawhub update --all
Example daily job:
openclaw cron add \
--name "Auto-Update" \
--cron "0 4 * * *" \
--tz "Europe/Madrid" \
--session isolated \
--wake now \
--announce \
--message "Run the auto-update routine. Before changing anything, read ~/auto-update/memory.md, ~/auto-update/openclaw.md, ~/auto-update/skills.md, and ~/auto-update/migrations.md. Then: 1) inspect OpenClaw update status and apply OpenClaw only if openclaw.md says mode:auto 2) inspect skill updates 3) back up the approved OpenClaw files and each skill that is allowed to change 4) skip any skill marked no, pending, or ask-first 5) apply only the allowed updates 6) verify obvious health 7) write backups.md and run-log.md 8) report updated, unchanged, skipped, and failed items."
Safer variant:
openclaw cron add \
--name "Auto-Update (Notify First)" \
--cron "0 4 * * *" \
--tz "Europe/Madrid" \
--session isolated \
--wake now \
--announce \
--message "Run the auto-update review. Read ~/auto-update/memory.md, ~/auto-update/openclaw.md, ~/auto-update/skills.md, and ~/auto-update/migrations.md. Inspect OpenClaw updates and run clawhub update --all --dry-run. Do not apply changes for any item in notify, no, pending, or ask-first mode. Report what would change, what is blocked, and which backups would be created."
How the Run Decides What to Do
Each cron run follows the same contract:
1. read ~/auto-update/memory.md
2. read ~/auto-update/openclaw.md
3. read ~/auto-update/skills.md
4. read ~/auto-update/migrations.md
5. inspect openclaw update status --json
6. inspect clawhub update --all --dry-run
7. back up allowed targets
8. apply openclaw update --json only if core mode is auto
9. apply skill updates only for allowed skills
10. summarize updated, unchanged, skipped, and failed items
Starter Modes
| Mode | OpenClaw | Skills | Best for |
|------|----------|--------|----------|
| Instant daily | auto via daily cron run | Daily auto-update for allowed skills | Users who want hands-off freshness |
| All-in with review gate | auto via daily cron run | New skills inherit auto-update unless migration risk appears | Users who want speed with safety |
| All-out skills | notify or manual | New skills stay manual until approved | Users who want strict control |
If the user says "just handle it," default to Instant daily with migration questions still enabled.
Core Rules
1. Auto-Update Means Real Scheduled Updates
openclaw cron add.~/auto-update/ before deciding what to update.schedule.md.2. Learn a Default for New Skills
skills.md so later sessions do not guess.3. Back Up Before Changing OpenClaw or Skills
backups.md and reference it in the post-run summary.4. Review Migration Risk Before Skill Updates
migrations.md.5. Respect the Actual OpenClaw Update Path
openclaw update status --json and, if approved, run openclaw update --json from the scheduled turn.auto, notify, and manual live in openclaw.md; the cron message must respect them every run.6. Turn Release Notes into Useful Suggestions
7. Keep the User in Control
SKILL.md.Common Traps
| Trap | Why It Fails | Better Move |
|------|--------------|-------------|
| Updating skills with no version ledger | You lose track of what changed and what to restore | Record installed version and backup before each update |
| Treating every new skill like the default | Some should stay manual even in all-in mode | Allow per-skill overrides in skills.md |
| Overwriting a skill before checking migrations | Stateful paths and workspace hooks can break silently | Diff old vs new, then ask if migration is needed |
| Updating OpenClaw with no snapshot | Tailored files can be painful to reconstruct | Back up config and key workspace behavior files first |
| Reporting raw changelogs only | Users still do not know what matters to them | Give plain summary plus optional workflow review |
Scope
This skill ONLY:
~/auto-update/This skill NEVER:
~/.openclaw/openclaw.json without a visible plan or standing approvalData Storage
Local state lives in ~/auto-update/:
memory.md for durable defaults and activation notesopenclaw.md for core updater mode, channel, backup scope, and feature review preferencesskills.md for per-skill auto-update policy and installed version historyschedule.md for timezone, cadence, and scheduler ownershipbackups.md for backup paths and retention notesmigrations.md for pending migration checks and decisionsrun-log.md for compact run history and outcomesExternal Endpoints
| Endpoint | Data Sent | Purpose |
|----------|-----------|---------|
| OpenClaw update sources (website installer, npm, or git remote chosen by the user) | version and package or git requests | Update OpenClaw |
| ClawHub registry via clawhub update | installed skill metadata and version requests | Check and apply skill updates |
| Official OpenClaw docs or release notes | version and release-note lookups | Explain changes after update |
No other data is sent externally.
Security & Privacy
~/auto-update/..clawhub/lock.json, ~/.openclaw/openclaw.json, and workspace behavior files when needed for approved update work.SKILL.md.Trust
By using this skill, update traffic may reach OpenClaw update sources, ClawHub, npm, or the git remote chosen by the user. Only install if you trust those services with update checks and package downloads.
Related Skills
Install withclawhub install if user confirms:
skill-update - Review risky skill diffs, migrations, and rollback choices in more depthbackups - Strengthen backup and restore practices beyond the default updater snapshotsheartbeat - Pair exact-time update jobs with adaptive follow-up checksself-improving - Learn recurring update preferences, failure patterns, and workflow opportunitiesFeedback
clawhub star auto-updateclawhub syncβ‘ When to Use
Use when the user wants OpenClaw and installed skills to stay updated automatically. This skill sets up a real openclaw cron add job, keeps a small control folder in ~/auto-update/, remembers which skills should auto-update, backs up important files first, reviews migration risk before skill changes, and summarizes what changed after every run.
π‘ Examples
The default model is simple:
~/auto-update/*.mdVisible commands the user should recognize:
openclaw update status --json
openclaw update --json
clawhub update --all --dry-run
clawhub update --all
Example daily job:
openclaw cron add \
--name "Auto-Update" \
--cron "0 4 * * *" \
--tz "Europe/Madrid" \
--session isolated \
--wake now \
--announce \
--message "Run the auto-update routine. Before changing anything, read ~/auto-update/memory.md, ~/auto-update/openclaw.md, ~/auto-update/skills.md, and ~/auto-update/migrations.md. Then: 1) inspect OpenClaw update status and apply OpenClaw only if openclaw.md says mode:auto 2) inspect skill updates 3) back up the approved OpenClaw files and each skill that is allowed to change 4) skip any skill marked no, pending, or ask-first 5) apply only the allowed updates 6) verify obvious health 7) write backups.md and run-log.md 8) report updated, unchanged, skipped, and failed items."
Safer variant:
openclaw cron add \
--name "Auto-Update (Notify First)" \
--cron "0 4 * * *" \
--tz "Europe/Madrid" \
--session isolated \
--wake now \
--announce \
--message "Run the auto-update review. Read ~/auto-update/memory.md, ~/auto-update/openclaw.md, ~/auto-update/skills.md, and ~/auto-update/migrations.md. Inspect OpenClaw updates and run clawhub update --all --dry-run. Do not apply changes for any item in notify, no, pending, or ask-first mode. Report what would change, what is blocked, and which backups would be created."