👁️ 470
👍 48
📅 2026-06-13 收录
🔄 2026-06-13 更新

正文内容

自动更新技能(Auto-Updater Skill)

通过每日更新检查,自动保持 Clawdbot 及其所有技能处于最新状态。

功能说明

该技能会配置一个每日执行的 cron 任务,用于:

  1. 更新 Clawdbot 本体(通过 clawdbot doctor 或系统包管理器)
  2. 更新所有已安装的技能(通过 clawdhub update --all
  3. 向你发送一份更新摘要消息

配置方法

快速启动

直接向 Clawdbot 发出指令以启用自动更新:

为我自己及我所有的技能设置每日自动更新。

或手动添加 cron 任务:

clawdbot cron add \
  --name "Daily Auto-Update" \
  --cron "0 4 * * *" \
  --tz "America/Los_Angeles" \
  --session isolated \
  --wake now \
  --deliver \
  --message "Run daily auto-updates: check for Clawdbot updates and update all skills. Report what was updated."

配置选项

选项 默认值 说明
执行时间 凌晨 4:00 更新任务的执行时刻(可通过 --cron 参数自定义)
时区 系统默认时区 使用 --tz 参数指定
消息投递目标 主会话(Main session) 更新摘要消息的接收位置

更新机制说明

Clawdbot 更新方式

针对 npm/pnpm/bun 安装方式

npm update -g clawdbot@latest
## 或:pnpm update -g clawdbot@latest
## 或:bun update -g clawdbot@latest

针对 源码安装方式(git clone):

clawdbot update

每次更新后,请务必运行 clawdbot doctor 以应用数据库迁移等必要变更。

技能更新方式

clawdhub update --all

该命令将比对本地所有已安装技能与 ClawdHub 注册中心中的最新版本,并自动升级存在新版的技能。

更新摘要格式

更新完成后,你将收到如下格式的消息: