← 返回 Skills 市场
97
总下载
0
收藏
0
当前安装
5
版本数
在 OpenClaw 中安装
/install upgrade-guard
功能描述
Safe OpenClaw upgrade workflow with pre-flight config check, automatic backup, post-upgrade migration, and rollback. Three modes: cautious (install first, ve...
安全使用建议
This skill is a guidance checklist (not code) and appears coherent for upgrading OpenClaw, but consider these practical cautions before following it:
- Back up before you run anything (the skill already instructs backups). Verify the backup exists and is readable.
- openclaw doctor --fix will modify your config automatically; prefer running doctor --non-interactive first to see proposed changes, or test in a staging environment.
- npm install --global modifies your system global packages and may require elevated permissions; avoid running as root unless you understand consequences.
- The backup-prune step uses ls | xargs rm -rf scoped to ~/.openclaw/upgrade-guard — double-check the path before running to avoid accidental deletion.
- If you deploy OpenClaw in Docker, multiple instances, or via immutable images, follow your platform-specific upgrade process instead (the SKILL explicitly notes Docker and multi-instance are not supported).
- Because this is instruction-only, nothing runs automatically from the skill itself — an operator must execute the commands. Review and, if desired, run each command manually or in a safe test environment to confirm behavior.
If you want extra safety, snapshot the host/VM or take a filesystem-level backup before performing global installs or restarts.
功能分析
Type: OpenClaw Skill
Name: upgrade-guard
Version: 2.2.0
The upgrade-guard skill is a utility designed to facilitate safe upgrades of the OpenClaw software. It includes instructions for the AI agent to perform pre-flight checks, create timestamped backups of configuration files in `~/.openclaw/upgrade-guard`, and verify system health after updates. The shell commands in SKILL.md and references/zh.md are standard administrative tasks (e.g., npm install, cp, mkdir) that align perfectly with the stated goal of preventing configuration breakage during version jumps.
能力评估
Purpose & Capability
Name/description match the actions in SKILL.md: pre-flight checks, backup, npm/global install of openclaw, doctor --fix, health checks, and rollback of ~/.openclaw/openclaw.json. All requested actions are coherent for an upgrade guard.
Instruction Scope
Instructions reference and modify the user's OpenClaw config (~/.openclaw/openclaw.json), run global npm installs, run openclaw CLI commands (doctor, update, health), and prune backups with rm -rf via xargs. These operations are expected for an upgrade workflow but are potentially destructive if misused — the skill does not attempt to read unrelated system files or exfiltrate data.
Install Mechanism
No install spec or embedded code — instruction-only. No downloads or archive extraction. Low installer risk.
Credentials
The skill requests no environment variables, no external credentials, and only uses standard CLI tools and the user's home config path (~/.openclaw). Required access is proportionate to the described purpose.
Persistence & Privilege
always is false and model invocation is not disabled. The skill is instruction-only and does not request persistent elevated privileges or modify other skills or global agent configuration.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install upgrade-guard - 安装完成后,直接呼叫该 Skill 的名称或使用
/upgrade-guard触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.2.0
Embedded full Chinese documentation directly in SKILL.md. No longer hidden in references folder. Users can see Chinese workflow, modes, backup/rollback steps immediately.
v2.1.0
Added Chinese documentation (references/zh.md). Full Chinese workflow guide for all three upgrade modes, backup/rollback steps, config migration reference.
v2.0.0
Complete rewrite: removed bash script, pure instruction-based skill. Agent executes commands step-by-step instead of running a script. No more security scanner false positives.
v1.0.1
Removed eval usage to fix security scanner false positive. Safer npm install call. Same functionality.
v1.0.0
Safe OpenClaw upgrade with configurable strategies: cautious (install first, verify before restart), openclaw-update (built-in flow with backup), manual (backup only). Includes pre-flight config scan, automatic backup with rotation, post-upgrade migration, key loss detection, and one-command rollback.
元数据
常见问题
Upgrade Guard 是什么?
Safe OpenClaw upgrade workflow with pre-flight config check, automatic backup, post-upgrade migration, and rollback. Three modes: cautious (install first, ve... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 97 次。
如何安装 Upgrade Guard?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install upgrade-guard」即可一键安装,无需额外配置。
Upgrade Guard 是免费的吗?
是的,Upgrade Guard 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Upgrade Guard 支持哪些平台?
Upgrade Guard 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Upgrade Guard?
由 w-sss(@w-sss)开发并维护,当前版本 v2.2.0。
推荐 Skills