Auto-Updater Skill
Keep OpenClaw and installed skills up to date with a scheduled update routine.
What It Does
This skill helps set up an automated job that:
- 1. Updates OpenClaw itself
- Updates installed skills via ClawHub
- Sends a concise summary of what changed
Preferred OpenClaw Approach
For current OpenClaw versions, prefer the cron tool / scheduler over legacy clawbot / clawdbot CLI examples.
Use an isolated scheduled agent turn that:
- 1. Runs
openclaw update (or openclaw update --dry-run for preview-only flows) - Runs INLINECODE4
- Optionally runs
openclaw doctor if the update flow reports config/service issues - Sends a short summary back to the user
Core Commands
OpenClaw updates
Preferred command:
CODEBLOCK0
Useful variants:
CODEBLOCK1
Notes:
- -
openclaw update is the current first-class update path. - On source installs it handles the safe update flow.
- On package-manager installs it uses the package-manager-aware update path.
- INLINECODE7 is the follow-up health/fix command, not the main updater.
Skills
CODEBLOCK2
Scheduling Guidance
When asked to configure automatic updates in OpenClaw:
- - Prefer the cron tool instead of legacy CLI
openclaw cron add / clawdbot cron add examples. - Create an isolated scheduled run.
- Deliver a concise summary to the user.
- If the user does not specify a time, ask once and pick a quiet hour in the user’s timezone.
Suggested Scheduled Task Prompt
Use a prompt along these lines for the scheduled run:
CODEBLOCK3
Summary Format
Preferred shape:
CODEBLOCK4
Keep it scan-friendly:
- - version changes if known
- updated skills grouped together
- errors surfaced clearly
- avoid long raw logs
Manual Checks
CODEBLOCK5
Troubleshooting
Update failed
Check:
- 1. INLINECODE10
- INLINECODE11
- INLINECODE12
- INLINECODE13
Skills failed to update
Common causes:
- - network failure
- registry/package resolution issue
- local file modifications in installed skill
- permission issues on the workspace
Try targeted repair:
CODEBLOCK6
Or update one skill explicitly.
Legacy Translation Notes
If older instructions mention these commands, translate them as follows:
- -
clawdbot / clawbot → INLINECODE16 - INLINECODE17 → INLINECODE18
- INLINECODE19 as updater → usually
openclaw update, with openclaw doctor as follow-up diagnostics - legacy CLI cron examples → OpenClaw cron tool / scheduler jobs
Resources
- - OpenClaw update docs:
docs/cli/update.md in the local OpenClaw install - OpenClaw doctor / status / gateway docs in local OpenClaw docs
- ClawHub CLI skill for installing/updating skills
技能名称: auto-updater
详细描述:
自动更新技能
通过预定的更新例程,使 OpenClaw 及已安装的技能保持最新状态。
功能说明
此技能有助于设置一个自动化任务,该任务能够:
- 1. 更新 OpenClaw 本身
- 通过 ClawHub 更新已安装的技能
- 发送变更内容的简明摘要
推荐的 OpenClaw 方法
对于当前版本的 OpenClaw,建议优先使用 cron 工具/调度器,而非传统的 clawbot / clawdbot CLI 示例。
使用一个独立的、由调度器触发的代理轮次,该轮次应:
- 1. 运行 openclaw update(或仅预览流程时使用 openclaw update --dry-run)
- 运行 clawhub update --all
- 如果更新流程报告了配置或服务问题,可选择运行 openclaw doctor
- 向用户发送简短摘要
核心命令
OpenClaw 更新
推荐命令:
bash
openclaw update
有用的变体:
bash
openclaw update status
openclaw update --dry-run
openclaw update --json
openclaw doctor
注意:
- - openclaw update 是当前首选的更新路径。
- 对于源码安装,它会处理安全的更新流程。
- 对于包管理器安装,它会使用感知包管理器的更新路径。
- openclaw doctor 是后续的健康检查/修复命令,并非主要的更新程序。
技能
bash
clawhub update --all
clawhub list
调度指南
当被要求配置 OpenClaw 的自动更新时:
- - 优先使用 cron 工具,而非传统的 CLI 示例 openclaw cron add / clawdbot cron add。
- 创建一个独立的计划运行任务。
- 向用户提供简洁的摘要。
- 如果用户未指定时间,询问一次,并在用户所在时区选择一个非活跃时段。
建议的计划任务提示
对于计划运行,可使用类似如下的提示:
text
运行预定的 OpenClaw 维护例程:
- 1. 使用 openclaw update 检查/更新 OpenClaw
- 使用 clawhub update --all 更新已安装的技能
- 如果更新输出提示配置或服务问题,运行 openclaw doctor
- 总结:
- OpenClaw 是否已变更
- 哪些技能已更新
- 任何失败或需要手动跟进的事项
保持最终报告简洁且面向用户。
摘要格式
推荐格式:
text
🔄 自动更新完成
OpenClaw:已更新 / 已是最新 / 更新失败
已更新的技能:...
问题:无 / 简短列表
保持易于浏览:
- - 版本变更(如已知)
- 已更新的技能分组列出
- 错误清晰呈现
- 避免冗长的原始日志
手动检查
bash
openclaw update status
openclaw status
clawhub list
故障排除
更新失败
检查:
- 1. openclaw update status
- openclaw doctor
- openclaw gateway status
- clawhub list
技能更新失败
常见原因:
- - 网络故障
- 注册表/包解析问题
- 已安装技能中的本地文件修改
- 工作区的权限问题
尝试针对性修复:
bash
clawhub update --all --force
或显式更新单个技能。
旧版指令翻译说明
如果旧版说明中提到以下命令,请按如下方式翻译:
- - clawdbot / clawbot → openclaw
- clawdhub → clawhub
- 作为更新程序的 clawdbot doctor → 通常为 openclaw update,并使用 openclaw doctor 作为后续诊断
- 旧版 CLI cron 示例 → OpenClaw cron 工具/调度器任务
资源
- - OpenClaw 更新文档:本地 OpenClaw 安装目录下的 docs/cli/update.md
- OpenClaw doctor / status / gateway 文档:位于本地 OpenClaw 文档中
- ClawHub CLI 技能:用于安装/更新技能