auto-updater
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseAuto-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:
- Updates Clawdbot itself (via or package manager)
clawdbot doctor - Updates all installed skills (via )
clawdhub update --all - Messages you with a summary of what was updated
该Skill会创建一个每日cron任务,执行以下操作:
- 更新Clawdbot本体(通过或包管理器)
clawdbot doctor - 更新所有已安装的Skill(通过)
clawdhub update --all - 向你发送包含更新内容的摘要消息
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
配置选项
| Option | Default | Description |
|---|---|---|
| Time | 4:00 AM | When to run updates (use |
| Timezone | System default | Set with |
| Delivery | Main session | Where to send the update summary |
| 选项 | 默认值 | 说明 |
|---|---|---|
| 时间 | 凌晨4:00 | 更新执行时间(使用 |
| 时区 | 系统默认 | 通过 |
| 消息送达 | 主会话 | 更新摘要的发送位置 |
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@latestor: 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 updateAlways run after updating to apply migrations.
clawdbot doctor
对于**源码安装**(git checkout):
```bash
clawdbot update更新完成后请务必运行以应用迁移。
clawdbot doctorSkill Updates
Skill更新
bash
clawdhub update --allThis 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-runView current skill versions:
bash
clawdhub listCheck Clawdbot version:
bash
clawdbot --version检查更新但不应用:
bash
clawdhub update --all --dry-run查看当前Skill版本:
bash
clawdhub list检查Clawdbot版本:
bash
clawdbot --versionTroubleshooting
故障排除
Updates Not Running
更新未运行
- Verify cron is enabled: check in config
cron.enabled - Confirm Gateway is running continuously
- Check cron job exists:
clawdbot cron list
- 验证cron是否启用:检查配置中的
cron.enabled - 确认Gateway持续运行
- 检查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 to diagnose
clawdbot doctor
如果更新失败,摘要中会包含错误信息。常见修复方法:
- 权限错误:确保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
}
}