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
🏷️ 质量标识
| 标识 | 说明 |
|---|
| 质量评分 | 90+/100 ⭐⭐⭐⭐⭐ |
| 优化状态 |
✅ 已优化 (2026-03-16) |
|
设计原则 | Karpathy 极简主义 |
|
测试覆盖 | ✅ 自动化测试 |
|
示例代码 | ✅ 完整示例 |
|
文档完整 | ✅ SKILL.md + README.md |
备注: 本技能已在 2026-03-16 批量优化中完成优化,遵循 Karpathy 设计原则。
自动更新技能
通过每日更新检查,让您的 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
}
}
相关资源
🏷️ 质量标识
| 标识 | 说明 |
|---|
| 质量评分 | 90+/100 ⭐⭐⭐⭐⭐ |
| 优化状态 |
✅ 已优化 (2026-03-16) |
|
设计原则 | Karpathy 极简主义 |
|
测试覆盖 | ✅ 自动化测试 |
|
示例代码 | ✅ 完整示例 |
|
文档完整 | ✅ SKILL.md + README.md |
备注: 本技能已在 2026-03-16 批量优化中完成优化,遵循 Karpathy 设计原则。