Auto-Updater Skill
Keep your Clawdbot and skills up to date automatically with daily update checks.
What It Does
This skill sets up a daily cron job that:
- 1. Updates Clawdbot itself (via
clawdbot doctor or package manager) - Updates all installed skills (via
clawdhub update --all) - Messages you with a summary of what was updated
Setup
Quick Start
Ask Clawdbot to set up the auto-updater:
CODEBLOCK0
Or manually add the cron job:
CODEBLOCK1
Configuration Options
| Option | Default | Description |
|---|
| Time | 4:00 AM | When to run updates (use --cron to change) |
| Timezone |
System default | Set with
--tz |
| Delivery | Main session | Where to send the update summary |
How Updates Work
Clawdbot Updates
For npm/pnpm/bun installs:
CODEBLOCK2
For source installs (git checkout):
CODEBLOCK3
Always run clawdbot doctor after updating to apply migrations.
Skill Updates
CODEBLOCK4
This checks all installed skills against the registry and updates any with new versions available.
Update Summary Format
After updates complete, you'll receive a message like:
CODEBLOCK5
Manual Commands
Check for updates without applying:
CODEBLOCK6
View current skill versions:
CODEBLOCK7
Check Clawdbot version:
CODEBLOCK8
Troubleshooting
Updates Not Running
- 1. Verify cron is enabled: check
cron.enabled in config - Confirm Gateway is running continuously
- Check cron job exists: INLINECODE6
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
Disabling Auto-Updates
Remove the cron job:
CODEBLOCK9
Or disable temporarily in config:
CODEBLOCK10
Resources
自动更新技能
通过每日更新检查,让您的Clawdbot和技能始终保持最新状态。
功能说明
此技能会设置一个每日定时任务,用于:
- 1. 更新Clawdbot本身(通过clawdbot doctor或包管理器)
- 更新所有已安装的技能(通过clawdhub update --all)
- 向您发送更新摘要消息
设置
快速开始
让Clawdbot为您设置自动更新:
为自身及所有技能设置每日自动更新。
或手动添加定时任务:
bash
clawdbot cron add \
--name 每日自动更新 \
--cron 0 4 * \
--tz America/Los_Angeles \
--session isolated \
--wake now \
--deliver \
--message 执行每日自动更新:检查Clawdbot更新并更新所有技能。报告更新内容。
配置选项
| 选项 | 默认值 | 说明 |
|---|
| 时间 | 凌晨4:00 | 执行更新的时间(使用--cron修改) |
| 时区 |
系统默认 | 使用--tz设置 |
| 投递位置 | 主会话 | 更新摘要的发送位置 |
更新机制
Clawdbot更新
对于npm/pnpm/bun安装:
bash
npm update -g clawdbot@latest
或:pnpm update -g clawdbot@latest
或:bun update -g clawdbot@latest
对于源码安装(git检出):
bash
clawdbot update
更新后务必运行clawdbot doctor以应用迁移。
技能更新
bash
clawdhub update --all
此命令会将所有已安装技能与注册表进行比对,并更新有可用新版本的技能。
更新摘要格式
更新完成后,您将收到类似以下的消息:
🔄 每日自动更新完成
Clawdbot:已更新至v2026.1.10(原版本v2026.1.9)
已更新技能(3个):
- - prd:2.0.3 → 2.0.4
- browser:1.2.0 → 1.2.1
- nano-banana-pro:3.1.0 → 3.1.2
已是最新技能(5个):
gemini、sag、things-mac、himalaya、peekaboo
未遇到任何问题。
手动命令
检查更新但不应用:
bash
clawdhub update --all --dry-run
查看当前技能版本:
bash
clawdhub list
检查Clawdbot版本:
bash
clawdbot --version
故障排除
更新未执行
- 1. 验证定时任务已启用:检查配置中的cron.enabled
- 确认Gateway持续运行
- 检查定时任务是否存在:clawdbot cron list
更新失败
如果更新失败,摘要中会包含错误信息。常见解决方法:
- - 权限错误:确保Gateway用户对技能目录有写入权限
- 网络错误:检查网络连接
- 包冲突:运行clawdbot doctor进行诊断
禁用自动更新
删除定时任务:
bash
clawdbot cron remove 每日自动更新
或在配置中临时禁用:
json
{
cron: {
enabled: false
}
}
资源