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
}
}