微算力 · API 导航与自营网关
API 接入 EN
未登录登录
🔄

零脚本智能运维管家

openclaw-auto-updater · vv1.0.0
专业技能 安全 S 级 作者 DasWeltall 公开目录收录
1.2k 下载 401 安装 3.5k 收藏 17.3k 浏览

简介

OpenClaw官方生态的自动化运维技能,通过安全隔离的定时任务实现核心与技能零值守更新,显著降低维护成本。

原始描述

Schedule automatic OpenClaw and skill updates with reliable cron templates, timezone-safe scheduling, and clear summary outputs. Use for hands-off maintenance, scheduled upgrades, and concise update reports.

通过你的 Agent 添加

点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。

或者手动安装

Claude Codeunzip -o skill.zip -d ~/.claude/skills/openclaw-auto-updater/
其它 Agent解压到它自己的 skills 目录,目录名用 openclaw-auto-updater

包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。 技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。

中文使用说明 来自收录源

核心用法

openclaw-auto-updater 是一款面向 OpenClaw 生态的自动化维护工具,核心功能是通过预配置的 cron 定时任务实现系统与技能的自动更新。用户无需编写复杂脚本,仅需执行一条 openclaw cron add 命令即可建立每日或每周的更新计划。该技能支持三种运行模式:标准更新(自动执行并应用变更)、干运行(仅预览变更内容)以及核心-only模式(仅更新 OpenClaw 本体而跳过技能)。所有任务均在 --session isolated 隔离环境中执行,确保系统安全性。

显著优点

该技能的最大优势在于零脚本维护成本——用户无需自行编写 Bash 脚本或处理复杂的 cron 语法,内置的模板已覆盖常见场景。时区安全设计(--tz 参数)避免了跨时区部署时的调度混乱。输出格式高度人性化,采用 emoji 标识和结构化摘要,一眼即可掌握更新状态、失败项与版本变更。此外,干运行模式为生产环境提供了安全的变更预览机制,显著降低了误操作风险。

潜在缺点与局限性

作为配置导向型技能,其功能深度受限于 OpenClaw CLI 本身的能力边界,无法处理复杂的自定义更新逻辑(如条件判断、多阶段回滚)。自动更新机制在特定场景下可能引发服务中断——文档明确提示更新可能重启 gateway,这对高可用性要求的生产环境构成挑战。此外,该技能高度依赖外部包管理器(npm/pnpm/bun)的行为一致性,若某包管理器出现 breaking change,可能导致更新流程异常。

适合的目标群体

该技能最适合以下用户:1)运维人员希望减少重复性手动更新工作;2)中小团队缺乏专职 DevOps,需要低门槛自动化方案;3)个人开发者维护多个 OpenClaw 实例,需要集中化管理。对于金融级或强合规要求的生产环境,建议仅启用干运行模式,保留人工审核环节。

使用风险

性能风险:定时任务执行期间可能占用系统资源,若与业务高峰期重叠可能影响服务响应。依赖项风险:外部包管理器的网络可达性、registry 稳定性直接影响更新成功率。配置漂移风险:cron 任务一旦被恶意或误修改,可能成为持久化攻击向量,需定期审计 openclaw cron list 输出。回滚能力:自动更新后若出现兼容性问题,需依赖 OpenClaw 原生的版本回滚机制,本 skill 不提供自动回滚功能。

技能正文


name: openclaw-auto-updater description: Schedule automatic OpenClaw and skill updates with reliable cron templates, timezone-safe scheduling, and clear summary outputs. Use for hands-off maintenance, scheduled upgrades, and concise update reports.

OpenClaw Auto-Updater

Run scheduled updates for OpenClaw and installed skills using cron messages (no scripts required). Focus: safe scheduling, predictable output, and minimal manual work.

What it does

  • Runs OpenClaw updates on a fixed schedule
  • Updates all installed skills via ClawHub
  • Sends a concise, readable summary (updated / unchanged / failed)

Setup (daily updates)

Daily at 03:30 Europe/Berlin:

openclaw cron add \
  --name "OpenClaw Auto-Update" \
  --cron "30 3 * * *" \
  --tz "Europe/Berlin" \
  --session isolated \
  --wake now \
  --deliver \
  --message "Run daily auto-updates: 1) openclaw update --yes --json 2) clawdhub update --all 3) report versions updated + errors."

Weekly (Sunday 04:00)

openclaw cron add \
  --name "OpenClaw Auto-Update (Weekly)" \
  --cron "0 4 * * 0" \
  --tz "Europe/Berlin" \
  --session isolated \
  --wake now \
  --deliver \
  --message "Run weekly auto-updates: openclaw update --yes --json; clawdhub update --all; summarize changes."

Safer modes

Dry run (no changes):

openclaw cron add \
  --name "OpenClaw Auto-Update (Dry)" \
  --cron "30 3 * * *" \
  --tz "Europe/Berlin" \
  --session isolated \
  --wake now \
  --deliver \
  --message "Check updates only: openclaw update status; clawdhub update --all --dry-run; summarize what would change."

Core only (skip skills):

openclaw cron add \
  --name "OpenClaw Auto-Update (Core Only)" \
  --cron "30 3 * * *" \
  --tz "Europe/Berlin" \
  --session isolated \
  --wake now \
  --deliver \
  --message "Update OpenClaw only: openclaw update --yes --json; summarize version change."

Summary format (recommended)

🔄 OpenClaw Auto-Update

OpenClaw: 2026.2.1 → 2026.2.2 (OK)
Skills updated: 3
Skills unchanged: 12
Errors: none

Troubleshooting

  • If updates fail, include the error in the summary.
  • Schedule off-hours; updates may restart the gateway.
  • Use explicit timezones to avoid surprises.

References

  • references/agent-guide.md → deeper implementation notes
  • references/summary-examples.md → formatting examples

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

automationdevopsoperationsbackendproductivity

同类 Skill