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

相关资源