简介
纯文档型自动化更新指南,零代码零依赖,指导配置 Clawdbot 每日自动更新任务,S+顶级安全认证。
原始描述
Automatically update Clawdbot and all installed skills once daily. Runs via cron, checks for updates, applies them, and messages the user with a summary of what changed.
中文使用说明 来自收录源
核心用法
Auto-Updater 是一个纯文档型 Skill,本身不包含可执行代码,而是通过清晰的 Markdown 文档指导用户配置定时自动更新任务。用户可通过自然语言指令("Set up daily auto-updates")或手动执行 clawdbot cron add 命令创建每日 4:00 AM(可自定义)的 cron 任务,自动完成:① Clawdbot 本体更新(支持 npm/pnpm/bun 全局安装及源码安装);② 全量技能更新(clawdhub update --all);③ 向指定会话推送更新摘要(版本变更明细、成功/失败状态)。
显著优点
- 零攻击面:无可执行文件、无第三方依赖、无动态代码加载,从根本上消除代码注入风险
- 生态原生:完全基于 Clawdbot 官方 CLI(
clawdbot、clawdhub),命令透明可查 - 配置灵活:支持自定义执行时间、时区、消息投递目标,可通过
--dry-run预览变更 - 可追溯性:每次更新生成结构化摘要,明确展示版本 diff 与错误信息
- 易于撤销:提供明确的 cron 移除命令和配置禁用选项
潜在缺点与局限性
- 功能依赖外部系统:实际更新行为由
clawdbot doctor、clawdhub等外部命令完成,若这些工具行为变更或出现故障,Skill 本身无法干预 - 无回滚机制:自动更新后如遇兼容性问题,需用户手动降级,文档未提供自动回滚方案
- 时区/ cron 依赖:依赖 Gateway 持续运行及系统 cron 服务,若服务中断则更新静默失败
- 权限敏感:更新需要文件系统写权限,多用户环境或受限容器内可能失败
- 通知渠道单一:依赖 Clawdbot 消息投递,若用户未保持会话在线可能错过失败告警
适合人群
- 追求"Set and Forget"体验、希望保持 Clawdbot 生态始终最新的常规用户
- 具备基础 cron/时区概念、能解读更新摘要的技术爱好者
- 在稳定网络环境、单用户权限场景下运行的个人开发者或小型团队
常规风险
- 自动更新引入 Breaking Change:技能或 Clawdbot 主版本升级可能导致工作流中断,建议搭配
--dry-run定期人工审查 - 静默失败:Gateway 离线或 cron 服务异常时,更新任务不会执行且用户可能长期未察觉
- 权限漂移:长期运行的 Gateway 进程若权限配置变更,可能导致后续更新写入失败
技能正文
name: auto-updater description: "Automatically update Clawdbot and all installed skills once daily. Runs via cron, checks for updates, applies them, and messages the user with a summary of what changed." metadata: {"version":"1.0.0","clawdbot":{"emoji":"🔄","os":["darwin","linux"]}}
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:
- Updates Clawdbot itself (via
clawdbot doctoror 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:
Set up daily auto-updates for yourself and all your skills.
Or manually add the cron job:
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 --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:
npm update -g clawdbot@latest
# or: pnpm update -g clawdbot@latest
# or: bun update -g clawdbot@latest
For source installs (git checkout):
clawdbot update
Always run clawdbot doctor after updating to apply migrations.
Skill Updates
clawdhub update --all
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:
🔄 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:
clawdhub update --all --dry-run
View current skill versions:
clawdhub list
Check Clawdbot version:
clawdbot --version
Troubleshooting
Updates Not Running
- Verify cron is enabled: check
cron.enabledin config - Confirm Gateway is running continuously
- Check cron job exists:
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 doctorto diagnose
Disabling Auto-Updates
Remove the cron job:
clawdbot cron remove "Daily Auto-Update"
Or disable temporarily in config:
{
"cron": {
"enabled": false
}
}
Resources
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。