auto-updater

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Auto-Updater Skill

自动更新Skill

Keep your Clawdbot and skills up to date automatically with daily update checks.
借助每日更新检查,让你的Clawdbot和所有skill自动保持最新版本。

What It Does

功能说明

This skill sets up a daily cron job that:
  1. Updates Clawdbot itself (via
    clawdbot doctor
    or package manager)
  2. Updates all installed skills (via
    clawdhub update --all
    )
  3. Messages you with a summary of what was updated
本skill会创建一个每日运行的cron任务,执行以下操作:
  1. 更新Clawdbot本身(通过
    clawdbot doctor
    或包管理器)
  2. 更新所有已安装的skill(通过
    clawdhub update --all
  3. 向你发送更新内容的汇总消息

Setup

设置

Quick Start

快速入门

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:
bash
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."
向Clawdbot发出设置自动更新器的指令:
Set up daily auto-updates for yourself and all your skills.
或者手动添加cron任务:
bash
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."

Configuration Options

配置选项

OptionDefaultDescription
Time4:00 AMWhen to run updates (use
--cron
to change)
TimezoneSystem defaultSet with
--tz
DeliveryMain sessionWhere to send the update summary
选项默认值描述
执行时间凌晨4:00运行更新的时间(可使用
--cron
修改)
时区系统默认可通过
--tz
设置
消息投递位置主会话发送更新汇总的位置

How Updates Work

更新工作机制

Clawdbot Updates

Clawdbot更新

For npm/pnpm/bun installs:
bash
npm update -g clawdbot@latest
针对npm/pnpm/bun安装的版本:
bash
npm update -g clawdbot@latest

or: pnpm update -g clawdbot@latest

or: pnpm update -g clawdbot@latest

or: bun update -g clawdbot@latest

or: bun update -g clawdbot@latest


For **source installs** (git checkout):
```bash
clawdbot update
Always run
clawdbot doctor
after updating to apply migrations.

针对**源码安装**的版本(git checkout):
```bash
clawdbot update
更新后请务必运行
clawdbot doctor
以应用数据迁移。

Skill Updates

Skill更新

bash
clawdhub update --all
This checks all installed skills against the registry and updates any with new versions available.
bash
clawdhub update --all
该命令会将所有已安装的skill与注册库比对,更新所有存在可用新版本的skill。

Update Summary Format

更新汇总格式

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.
更新完成后,你会收到类似如下的消息:
🔄 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.

Manual Commands

手动命令

Check for updates without applying:
bash
clawdhub update --all --dry-run
View current skill versions:
bash
clawdhub list
Check Clawdbot version:
bash
clawdbot --version
仅检查更新而不应用:
bash
clawdhub update --all --dry-run
查看当前skill版本:
bash
clawdhub list
查看Clawdbot版本:
bash
clawdbot --version

Troubleshooting

故障排除

Updates Not Running

更新未运行

  1. Verify cron is enabled: check
    cron.enabled
    in config
  2. Confirm Gateway is running continuously
  3. Check cron job exists:
    clawdbot cron list
  1. 确认cron已启用:检查配置中的
    cron.enabled
    参数
  2. 确认Gateway持续运行中
  3. 检查cron任务是否存在:运行
    clawdbot cron list

Update Failures

更新失败

If an update fails, the summary will include the error. Common fixes:
  • Permission errors: Ensure the Gateway user can write to skill directories
  • Network errors: Check internet connectivity
  • Package conflicts: Run
    clawdbot doctor
    to diagnose
如果更新失败,汇总消息中会包含错误信息。常见修复方案:
  • 权限错误:确保Gateway用户对skill目录有写入权限
  • 网络错误:检查网络连接状态
  • 包冲突:运行
    clawdbot doctor
    诊断问题

Disabling Auto-Updates

禁用自动更新

Remove the cron job:
bash
clawdbot cron remove "Daily Auto-Update"
Or disable temporarily in config:
json
{
  "cron": {
    "enabled": false
  }
}
删除cron任务:
bash
clawdbot cron remove "Daily Auto-Update"
或者在配置中临时禁用:
json
{
  "cron": {
    "enabled": false
  }
}

Resources

参考资源