[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BYWPSQGGZ8M48P22X3DKSJ":3,"skill-same:01M7BYWPSQGGZ8M48P22X3DKSJ":46},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":13,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7BYWPSQGGZ8M48P22X3DKSJ","upgrade-guard",null,"Safe OpenClaw upgrades with snapshot, pre-flight checks, controlled upgrade steps, post-verification, and emergency rollback. Never lose your working system to a bad update again.","secure-workflows\u002Fgaia","secure-workflows","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F311422533?v=4","01M7BYM925H8FAXM1DRD7F5DQD","01M7BYM92V01EZBAV87C93HNKX",0,"MIT","https:\u002F\u002Fgithub.com\u002Fsecure-workflows\u002Fgaia\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fopenclaw_skills\u002Fupgrade-guard\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: upgrade-guard\ndescription: Safe OpenClaw upgrades with snapshot, pre-flight checks, controlled upgrade steps, post-verification, and emergency rollback. Never lose your working system to a bad update again.\nmetadata:\n  openclaw:\n    emoji: \"🔄\"\n---\n\n# Upgrade Guard 🔄\n\n**Never lose a working OpenClaw to a bad upgrade again.**\n\nBorn from 7 cascading failures during a single version jump. The gateway crashed, Telegram disconnected, plugins broke, models vanished — and the AI agent that caused it was also dead, so nobody could fix it remotely.\n\nThis skill makes upgrades safe.\n\n## The Problem\n\nOpenClaw upgrades can break in ways that are invisible until it's too late:\n\n| Failure type | Example |\n|---|---|\n| Plugin renames | `clawdbot.plugin.json` → `openclaw.plugin.json` |\n| Dependency breaks | SDK module paths change, exports shift |\n| Config schema changes | New required fields, removed fields |\n| Model name changes | Dot vs hyphen format changes |\n| Channel config wipes | Silent removal during migration |\n\nA single `git pull && pnpm install` can trigger all of these simultaneously.\n\n## What Upgrade Guard Does\n\n### 1. Snapshot (`snapshot`)\nCaptures your entire working state:\n- Version + git commit\n- Full config backup\n- Plugin file inventory\n- Symlink map\n- Lock file\n- Channel list + model info\n- Gateway health status\n\n### 2. Pre-flight (`check`)\nBefore touching anything:\n- Snapshot exists?\n- Config valid?\n- Git repo clean?\n- Disk space OK?\n- Package manager available?\n- Remote changes preview\n- Breaking change detection (scans commit messages)\n\n### 3. Safe Upgrade (`upgrade`)\nControlled 6-step process:\n1. Pre-flight checks (abort if fail)\n2. Fresh snapshot\n3. Stop gateway\n4. `git pull` (rollback on fail)\n5. `pnpm install` + `pnpm run build` (rollback on fail)\n6. Post-upgrade verification\n\n### 4. Verification (`verify`)\nAfter upgrade, checks everything:\n- Version actually changed?\n- Plugin files renamed\u002Fremoved? (detects clawdbot↔openclaw renames)\n- Config still valid JSON?\n- All channels still configured?\n- Model still set?\n- No broken symlinks?\n- Gateway starts and responds?\n- No errors in recent logs?\n\n### 5. Rollback (`rollback`)\nEmergency restore:\n- Stop gateway\n- Restore git to previous commit\n- Reinstall old dependencies\n- Restore config\n- Restart gateway\n\n## Usage\n\n```bash\n# Before upgrading: take a snapshot\nbash scripts\u002Fupgrade-guard.sh snapshot\n\n# Check what's coming\nbash scripts\u002Fupgrade-guard.sh check\n\n# See current state\nbash scripts\u002Fupgrade-guard.sh status\n\n# Do the upgrade (safe, with auto-rollback on failure)\nbash scripts\u002Fupgrade-guard.sh upgrade\n\n# Or just preview without changing anything\nbash scripts\u002Fupgrade-guard.sh upgrade --dry-run\n\n# After upgrade: verify everything works\nbash scripts\u002Fupgrade-guard.sh verify\n\n# Something broke? Emergency rollback\nbash scripts\u002Fupgrade-guard.sh rollback\n```\n\n## For AI Agents\n\n**MANDATORY before any OpenClaw upgrade:**\n\n1. `upgrade-guard.sh snapshot` — save current state\n2. `upgrade-guard.sh check` — verify pre-conditions\n3. `upgrade-guard.sh upgrade` — let the script handle it\n4. If anything fails → `upgrade-guard.sh rollback`\n\n**NEVER run blind `git pull && pnpm install` without snapshotting first.**\n\n## What It Catches That config-guard Doesn't\n\n| Check | config-guard | upgrade-guard |\n|---|---|---|\n| Bad config values | ✅ | ❌ |\n| Plugin file renames | ❌ | ✅ |\n| Dependency breaks | ❌ | ✅ |\n| Broken symlinks | ❌ | ✅ |\n| Version tracking | ❌ | ✅ |\n| Git state management | ❌ | ✅ |\n| Gateway log analysis | ❌ | ✅ |\n| Full system rollback | ❌ | ✅ |\n\nUse both together: config-guard for config changes, upgrade-guard for version upgrades.\n\n## Watchdog — OS-Level Self-Healing\n\nThe watchdog runs independently via systemd timer. It survives gateway crashes, AI agent death, and server reboots.\n\n```bash\n# Install (checks every 60 seconds)\nbash scripts\u002Fwatchdog.sh install\n\n# Check health manually\nbash scripts\u002Fwatchdog.sh check\n\n# View status and recent events\nbash scripts\u002Fwatchdog.sh status\n\n# Remove\nbash scripts\u002Fwatchdog.sh uninstall\n```\n\n### Recovery strategy:\n| Consecutive failures | Action |\n|---|---|\n| 1-2 | Log and wait |\n| 3 | Restart gateway |\n| 6+ | Rollback to last snapshot |\n\n### What it checks:\n1. **Process** — is the gateway process running?\n2. **HTTP** — does the gateway respond on its port?\n3. **Telegram** — any connection errors in recent logs?\n\n### Why it works when everything else fails:\n- Runs as **systemd timer** — survives gateway crash, AI death, reboots\n- Checks every **60 seconds** — detects problems fast\n- **5-minute cooldown** between actions — no restart loops\n- Uses upgrade-guard's **rollback** — full version restore if restart doesn't help\n- **Logs everything** to `watchdog.log` for post-mortem\n\n## Install\n\n```bash\nclawdhub install upgrade-guard\n# or clone directly\ngit clone https:\u002F\u002Fgithub.com\u002FjzOcb\u002Fupgrade-guard\n```\n\n## Requirements\n\n- `bash` 4+\n- `python3`\n- `curl`\n- `git`\n- `pnpm` or `npm`\n\n## Related\n\n- [config-guard](https:\u002F\u002Fgithub.com\u002FjzOcb\u002Fconfig-guard) — Config validation and auto-rollback\n- [agent-guardrails](https:\u002F\u002Fgithub.com\u002FjzOcb\u002Fagent-guardrails) — Code-level enforcement for AI agents\n","# Upgrade Guard 🔄\n\n**Never lose a working OpenClaw to a bad upgrade again.**\n\nBorn from 7 cascading failures during a single version jump. The gateway crashed, Telegram disconnected, plugins broke, models vanished — and the AI agent that caused it was also dead, so nobody could fix it remotely.\n\nThis skill makes upgrades safe.\n\n## The Problem\n\nOpenClaw upgrades can break in ways that are invisible until it's too late:\n\n| Failure type | Example |\n|---|---|\n| Plugin renames | `clawdbot.plugin.json` → `openclaw.plugin.json` |\n| Dependency breaks | SDK module paths change, exports shift |\n| Config schema changes | New required fields, removed fields |\n| Model name changes | Dot vs hyphen format changes |\n| Channel config wipes | Silent removal during migration |\n\nA single `git pull && pnpm install` can trigger all of these simultaneously.\n\n## What Upgrade Guard Does\n\n### 1. Snapshot (`snapshot`)\nCaptures your entire working state:\n- Version + git commit\n- Full config backup\n- Plugin file inventory\n- Symlink map\n- Lock file\n- Channel list + model info\n- Gateway health status\n\n### 2. Pre-flight (`check`)\nBefore touching anything:\n- Snapshot exists?\n- Config valid?\n- Git repo clean?\n- Disk space OK?\n- Package manager available?\n- Remote changes preview\n- Breaking change detection (scans commit messages)\n\n### 3. Safe Upgrade (`upgrade`)\nControlled 6-step process:\n1. Pre-flight checks (abort if fail)\n2. Fresh snapshot\n3. Stop gateway\n4. `git pull` (rollback on fail)\n5. `pnpm install` + `pnpm run build` (rollback on fail)\n6. Post-upgrade verification\n\n### 4. Verification (`verify`)\nAfter upgrade, checks everything:\n- Version actually changed?\n- Plugin files renamed\u002Fremoved? (detects clawdbot↔openclaw renames)\n- Config still valid JSON?\n- All channels still configured?\n- Model still set?\n- No broken symlinks?\n- Gateway starts and responds?\n- No errors in recent logs?\n\n### 5. Rollback (`rollback`)\nEmergency restore:\n- Stop gateway\n- Restore git to previous commit\n- Reinstall old dependencies\n- Restore config\n- Restart gateway\n\n## Usage\n\n```bash\n# Before upgrading: take a snapshot\nbash scripts\u002Fupgrade-guard.sh snapshot\n\n# Check what's coming\nbash scripts\u002Fupgrade-guard.sh check\n\n# See current state\nbash scripts\u002Fupgrade-guard.sh status\n\n# Do the upgrade (safe, with auto-rollback on failure)\nbash scripts\u002Fupgrade-guard.sh upgrade\n\n# Or just preview without changing anything\nbash scripts\u002Fupgrade-guard.sh upgrade --dry-run\n\n# After upgrade: verify everything works\nbash scripts\u002Fupgrade-guard.sh verify\n\n# Something broke? Emergency rollback\nbash scripts\u002Fupgrade-guard.sh rollback\n```\n\n## For AI Agents\n\n**MANDATORY before any OpenClaw upgrade:**\n\n1. `upgrade-guard.sh snapshot` — save current state\n2. `upgrade-guard.sh check` — verify pre-conditions\n3. `upgrade-guard.sh upgrade` — let the script handle it\n4. If anything fails → `upgrade-guard.sh rollback`\n\n**NEVER run blind `git pull && pnpm install` without snapshotting first.**\n\n## What It Catches That config-guard Doesn't\n\n| Check | config-guard | upgrade-guard |\n|---|---|---|\n| Bad config values | ✅ | ❌ |\n| Plugin file renames | ❌ | ✅ |\n| Dependency breaks | ❌ | ✅ |\n| Broken symlinks | ❌ | ✅ |\n| Version tracking | ❌ | ✅ |\n| Git state management | ❌ | ✅ |\n| Gateway log analysis | ❌ | ✅ |\n| Full system rollback | ❌ | ✅ |\n\nUse both together: config-guard for config changes, upgrade-guard for version upgrades.\n\n## Watchdog — OS-Level Self-Healing\n\nThe watchdog runs independently via systemd timer. It survives gateway crashes, AI agent death, and server reboots.\n\n```bash\n# Install (checks every 60 seconds)\nbash scripts\u002Fwatchdog.sh install\n\n# Check health manually\nbash scripts\u002Fwatchdog.sh check\n\n# View status and recent events\nbash scripts\u002Fwatchdog.sh status\n\n# Remove\nbash scripts\u002Fwatchdog.sh uninstall\n```\n\n### Recovery strategy:\n| Consecutive failures | Action |\n|---|---|\n| 1-2 | Log and wait |\n| 3 | Restart gateway |\n| 6+ | Rollback to last snapshot |\n\n### What it checks:\n1. **Process** — is the gateway process running?\n2. **HTTP** — does the gateway respond on its port?\n3. **Telegram** — any connection errors in recent logs?\n\n### Why it works when everything else fails:\n- Runs as **systemd timer** — survives gateway crash, AI death, reboots\n- Checks every **60 seconds** — detects problems fast\n- **5-minute cooldown** between actions — no restart loops\n- Uses upgrade-guard's **rollback** — full version restore if restart doesn't help\n- **Logs everything** to `watchdog.log` for post-mortem\n\n## Install\n\n```bash\nclawdhub install upgrade-guard\n# or clone directly\ngit clone https:\u002F\u002Fgithub.com\u002FjzOcb\u002Fupgrade-guard\n```\n\n## Requirements\n\n- `bash` 4+\n- `python3`\n- `curl`\n- `git`\n- `pnpm` or `npm`\n\n## Related\n\n- [config-guard](https:\u002F\u002Fgithub.com\u002FjzOcb\u002Fconfig-guard) — Config validation and auto-rollback\n- [agent-guardrails](https:\u002F\u002Fgithub.com\u002FjzOcb\u002Fagent-guardrails) — Code-level enforcement for AI agents\n",{"name":5,"metadata":23,"description":7},{"openclaw":24},{"emoji":25},"🔄","main","11039b64e036dca33313350b4cd1d6c2a791eb15","tests\u002Ffixtures\u002Fopenclaw_skills\u002Fupgrade-guard","https:\u002F\u002Fgithub.com\u002Fsecure-workflows\u002Fgaia","https:\u002F\u002Fgithub.com\u002Fsecure-workflows","2026-10-26 10:48:34",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add secure-workflows\u002Fgaia --skill upgrade-guard",{"tool":38,"command":39},"bunx","bunx skills add secure-workflows\u002Fgaia --skill upgrade-guard",{"tool":41,"command":42},"pnpm","pnpm dlx skills add secure-workflows\u002Fgaia --skill upgrade-guard","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsecure-workflows\u002Fgaia\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fopenclaw_skills\u002Fupgrade-guard\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":18},"01M7BYXGPPQJGVVD0DPS2WK3FS","web-search","Search the web via the Brave Search API. Use when the user asks about current events or external facts.","https:\u002F\u002Fgithub.com\u002Fsecure-workflows\u002Fgaia\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fweb-search\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":18},"01M7BYXDF2TM5JPMEQKMMHW0VJ","triage-support-ticket","Triage an inbound support ticket end to end. Use when the user pastes a support ticket or asks to triage one.","https:\u002F\u002Fgithub.com\u002Fsecure-workflows\u002Fgaia\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Ftriage-support-ticket\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":18},"01M7BYXAHWNBMJ8Y1Q51EZ53K7","tool-mismatch","Declares a tool its tools.py never registers. Used to prove validation fails loudly with no partial load.","https:\u002F\u002Fgithub.com\u002Fsecure-workflows\u002Fgaia\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Ftool-mismatch\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":18},"01M7BYX6CZ63AM6HB90PPNXKF7","report-archive","Archive a generated report to the user's reports folder and register it with the team's report index. Use when the user asks to file, archive, or publish a finished report.","https:\u002F\u002Fgithub.com\u002Fsecure-workflows\u002Fgaia\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Freport-archive\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M7BYX4PM4HGNZ0QBZ54BTG1N","local-capability","Writes files on the local workspace. Used to prove Phase 1 refuses local-capability permissions.","https:\u002F\u002Fgithub.com\u002Fsecure-workflows\u002Fgaia\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Flocal-capability\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":18},"01M7BYX1KVPKHHZ5Z3R3BB0QQA","incident-review","Run an incident postmortem. Stands in for a Claude Code skill library imported read-only from .claude\u002Fskills\u002F.","https:\u002F\u002Fgithub.com\u002Fsecure-workflows\u002Fgaia\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fincident-review\u002FSKILL.md",[],[]]