mcpField
A
auto-updater

auto-updater

github.com/sundial-orgAgent 工作流673127 次安装34 周前更新
代码仓库

关于 auto-updater

auto-updater 是一款 Clawdbot 技能,可通过定时任务每日检查并更新 Clawdbot 和已安装技能,随后汇报变更。适合希望自动处理日常维护的 Clawdbot 用户。

主要功能

  1. 01按每日定时任务检查更新
  2. 02更新 Clawdbot 和已安装技能
  3. 03发送更新摘要
  4. 04支持试运行更新检查

适用场景

  1. 01自动执行 Clawdbot 日常维护
  2. 02应用更新前查看可用技能更新
  3. 03接收定时更新后的报告

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/sundial-org/awesome-openclaw-skills --skill auto-updater

安装后在 Claude Code 中输入/auto-updater确认已加载。

附带文件references/agent-guide.mdreferences/summary-examples.md

详细介绍

自动更新技能

通过每日更新检查,自动让 Clawdbot 和技能保持最新。

功能说明

此技能会设置一个每日 cron 任务,用于:

  1. 更新 Clawdbot 本身(通过 clawdbot doctor 或包管理器)
  2. 更新所有已安装的技能(通过 clawdhub update --all)
  3. 向你发送更新内容摘要

设置

快速开始

让 Clawdbot 设置自动更新:

Set up daily auto-updates for yourself and all your skills.

或者手动添加 cron 任务:

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."
配置选项
选项默认值说明
时间凌晨 4:00运行更新的时间(使用 --cron 更改)
时区系统默认值使用 --tz 设置
发送位置主会话发送更新摘要的位置

更新机制

Clawdbot 更新

对于 npm/pnpm/bun 安装:

npm update -g clawdbot@latest
# or: pnpm update -g clawdbot@latest
# or: bun update -g clawdbot@latest

对于 源码安装(git checkout):

clawdbot update

更新后始终运行 clawdbot doctor 以应用迁移。

技能更新
clawdhub update --all

此操作会检查所有已安装技能在注册表中的版本,并更新有新版本可用的技能。

更新摘要格式

更新完成后,你会收到类似这样的消息:

🔄 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.

手动命令

检查更新但不应用:

clawdhub update --all --dry-run

查看当前技能版本:

clawdhub list

检查 Clawdbot 版本:

clawdbot --version

故障排除

更新未运行
  1. 确认 cron 已启用:检查配置中的 cron.enabled
  2. 确认 Gateway 持续运行
  3. 检查 cron 任务是否存在:clawdbot cron list
更新失败

如果更新失败,摘要中会包含错误信息。常见解决方法:

  • 权限错误:确保 Gateway 用户可以写入技能目录
  • 网络错误:检查互联网连接
  • 包冲突:运行 clawdbot doctor 进行诊断
禁用自动更新

移除 cron 任务:

clawdbot cron remove "Daily Auto-Update"

或者在配置中暂时禁用:

{
  "cron": {
    "enabled": false
  }
}

资源

评论

支持 Markdown