1987566643/openclaw-safe-change-flow/SKILL.md
Safe OpenClaw config change workflow with backup, minimal edits, validation, health checks, and rollback. Single-instance first; secondary instance optional.
npx skillsauth add openclaw/skills openclaw-safe-change-flowInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Goal: avoid outages, keep rollback ready, verify every change. Use single-instance mode by default. Secondary-instance checks are optional.
~/.openclaw/openclaw.json~/.openclaw-secondary/openclaw.json (or your custom path)If you do not need high-availability validation, single-instance flow is enough.
*.bak.safe-YYYYmmdd-HHMMSSopenclaw status --deepAfter this skill is installed, treat this as default policy for config changes:
safe-change.shMental model:
safe-change.sh --main-script ./edit-main.shOn top of single-instance flow, you may also verify a secondary instance:
OPENCLAW_HOME=<secondary-home> openclaw gateway health --url <secondary-url> --token "$SECONDARY_TOKEN"Use this only when change risk is high or HA checks are required.
This skill includes safe-change.sh to enforce:
backup → change → validate → rollback on failure
cat > ./edit-main.sh <<'SH'
#!/usr/bin/env bash
python3 edit_main.py
SH
chmod +x ./edit-main.sh
./safe-change.sh --main-script ./edit-main.sh
cat > ./edit-main.sh <<'SH'
#!/usr/bin/env bash
python3 edit_main.py
SH
chmod +x ./edit-main.sh
cat > ./edit-secondary.sh <<'SH'
#!/usr/bin/env bash
python3 edit_secondary.py
SH
chmod +x ./edit-secondary.sh
export SECONDARY_TOKEN="<your-secondary-token>"
./safe-change.sh \
--main-script ./edit-main.sh \
--secondary-script ./edit-secondary.sh
When secondary checks are enabled, set SECONDARY_TOKEN as an environment variable.
TS=$(date +%Y%m%d-%H%M%S)
cp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.bak.safe-$TS
# ...apply minimal config edits...
openclaw status --deep
If validation fails:
cp ~/.openclaw/openclaw.json.bak.safe-$TS ~/.openclaw/openclaw.json
openclaw gateway restart
tools
Use when the user wants to connect to, test, or use the McDonalds service at mcp.mcd.cn, including checking authentication, probing MCP endpoints, listing tools, or calling McDonalds MCP tools through a reusable local CLI.
development
Web scraping platform — Twitter/X data, Vinted marketplace, and general web scraping API
development
SlowMist AI Agent Security Review — comprehensive security framework for skills, repositories, URLs, on-chain addresses, and products (Claude Code version)
data-ai
去除中文文本中的 AI 写作痕迹,使其读起来自然。基于维基百科 AI 写作特征指南,检测 24 种 AI 模式。触发词:humanizer-cn、去除 AI 痕迹、去除 AI 写作痕迹、中文文本人性化。