🧪 Skills
OpenClaw Ops Guardrails
OpenClaw 运维防呆与排障标准化技能。用于跨设备(Gateway + Mac nodes)巡检、远程执行稳定性治理、CLI-only 兼容、配对/审批异常排查、以及对外发布前脱敏
v0.1.1
Description
name: openclaw-ops-guardrails description: OpenClaw 运维防呆与排障标准化技能。用于跨设备(Gateway + Mac nodes)巡检、远程执行稳定性治理、CLI-only 兼容、配对/审批异常排查、以及对外发布前脱敏检查。用户提到“又报错了/审批超时/pairing required/system.run failed/如何标准化运维规则”时使用。
OpenClaw Ops Guardrails
先阅读:
references/failure-playbook.md(按错误类型排障)references/publish-sanitization-checklist.md(对外发布前脱敏)
-
先执行全量只读体检:
openclaw status --deepopenclaw security audit --deepopenclaw gateway status --jsonopenclaw health --jsonopenclaw nodes status --connected
-
检查 node 执行能力:
- 确认
system.run在 node commands 中存在 nodes.run失败时按顺序归因:- approval timeout
- pairing required
- system.run unsupported
- gateway timeout
- 确认
-
强制执行稳定性策略:
- 使用 nodeId,不用 displayName
- 同一 node 串行执行,不并发
- 失败重试 1 次后再告警
-
CLI-only Mac 标准模板:
- remote url 使用占位符
<api-endpoint> - sshTarget 使用占位符
<ssh-target> - 凭据使用占位符
<gateway-token>(与 gateway token 对齐)
- remote url 使用占位符
-
变更后验收:
- 目标设备执行一条最小命令(echo/date/whoami)
- 再跑一次
status --deep
-
输出格式:
- 总结:可用/不可用
- 成功项
- 失败项与根因
- 遗留风险
- 下一步建议(按优先级)
-
对外分享前脱敏(必须):
- 不包含 token/key/password/IP/用户名/绝对路径
- 输出脱敏版文档和发布说明
Reviews (0)
Sign in to write a review.
No reviews yet. Be the first to review!
Comments (0)
No comments yet. Be the first to share your thoughts!