← Back to Skills Marketplace
w-sss

Upgrade Guard

by w-sss · GitHub ↗ · v2.2.0 · MIT-0
cross-platform ✓ Security Clean
97
Downloads
0
Stars
0
Active Installs
5
Versions
Install in OpenClaw
/install upgrade-guard
Description
Safe OpenClaw upgrade workflow with pre-flight config check, automatic backup, post-upgrade migration, and rollback. Three modes: cautious (install first, ve...
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install upgrade-guard
  3. After installation, invoke the skill by name or use /upgrade-guard
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug upgrade-guard
Version 2.2.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 5
Frequently Asked Questions

What is Upgrade Guard?

Safe OpenClaw upgrade workflow with pre-flight config check, automatic backup, post-upgrade migration, and rollback. Three modes: cautious (install first, ve... It is an AI Agent Skill for Claude Code / OpenClaw, with 97 downloads so far.

How do I install Upgrade Guard?

Run "/install upgrade-guard" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Upgrade Guard free?

Yes, Upgrade Guard is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Upgrade Guard support?

Upgrade Guard is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Upgrade Guard?

It is built and maintained by w-sss (@w-sss); the current version is v2.2.0.

💬 Comments