作者:互联网 时间: 2026-08-10 12:15:01
从源直接安装技能的最快方式。
npx clawhub@latest install auto-updater
将技能文件夹复制到以下位置之一
全局模式~/.openclaw/skills/
工作区
<project>/skills/
优先级:工作区 > 本地 > 内置
将此提示词复制到 OpenClaw 即可自动安装。
请帮我使用 Clawhub 安装 auto-updater。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。
自动更新器是一项关键的维护技能,旨在确保您的本地 AI 代理环境在无需人工干预的情况下保持安全、稳定和功能完整。通过与 cron 系统直接集成,它为管理 Openclaw 技能和核心 Clawdbot 二进制文件提供了一个稳健的框架,确保您始终拥有最新的改进和错误修复。
该技能对于依赖一致且最新工具链的开发人员特别有价值。它处理包管理和技能注册表同步的复杂性,提供无缝的后台体验,并最终通过您首选的通信渠道直接发送简明每日状态报告。
要为您的 Openclaw 技能激活自动化维护,您可以发出直接的自然语言命令:
为你自己和所有技能设置每日自动更新。
或者,您可以使用命令行界面手动配置调度参数:
clawdbot cron add r
--name "Daily Auto-Update" r
--cron "0 4 * * *" r
--tz "America/Los_Angeles" r
--session isolated r
--wake now r
--deliver r
--message "运行每日自动更新:检查 Clawdbot 更新并更新所有技能。报告更新内容。"
自动更新器利用结构化的元数据格式来跟踪您的 Openclaw 技能和系统二进制文件的状态:
| 属性 | 描述 |
|---|---|
| Cron 配置 | 存储执行频率、时区和会话隔离设置。 |
| 版本注册表 | 所有活跃 Openclaw 技能及其当前语义化版本 (SemVer) 字符串的映射。 |
| 更新日志 | 捕获更新命令的 stdout/stderr,以便在发生故障时提供故障排除数据。 |
| 迁移状态 | 跟踪更新后任务(通过 doctor 命令)是否成功完成。 |
name: auto-updater
description: "Automatically update Clawdbot and all installed skills once daily. Runs via cron, checks for updates, applies them, and messages the user with a summary of what changed."
metadata: {"version":"1.0.0","clawdbot":{"emoji":"??","os":["darwin","linux"]}}
Keep your Clawdbot and skills up to date automatically with daily update checks.
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:
Set up daily auto-updates for yourself and all your skills.
Or manually add the cron job:
clawdbot cron add r
--name "Daily Auto-Update" r
--cron "0 4 * * *" r
--tz "America/Los_Angeles" r
--session isolated r
--wake now r
--deliver r
--message "Run daily auto-updates: check for Clawdbot updates and update all skills. Report what was updated."
| Option | Default | Description |
|---|---|---|
| Time | 4:00 AM | When to run updates (use --cron to change) |
| Timezone | System default | Set with --tz |
| Delivery | Main session | Where to send the update summary |
For npm/pnpm/bun installs:
npm update -g clawdbot@latest
# or: pnpm update -g clawdbot@latest
# or: bun update -g clawdbot@latest
For source installs (git checkout):
clawdbot update
Always run clawdbot doctor after updating to apply migrations.
clawdhub update --all
This checks all installed skills against the registry and updates any with new versions available.
After updates complete, you'll receive a message like:
?? Daily Auto-Update Complete
**Clawdbot**: Updated to v2026.1.10 (was v2026.1.9)
**Skills Updated (3)**:
- prd: 2.0.3 → 2.0.4
- browser: 1.2.0 → 1.2.1
- nano-banana-pro: 3.1.0 → 3.1.2
**Skills Already Current (5)**:
gemini, sag, things-mac, himalaya, peekaboo
No issues encountered.
Check for updates without applying:
clawdhub update --all --dry-run
View current skill versions:
clawdhub list
Check Clawdbot version:
clawdbot --version
cron.enabled in configclawdbot cron listIf an update fails, the summary will include the error. Common fixes:
clawdbot doctor to diagnoseRemove the cron job:
clawdbot cron remove "Daily Auto-Update"
Or disable temporarily in config:
{
"cron": {
"enabled": false
}
}