← 返回 Skills 市场
Restart Safe Workflow
作者
Huo Lushan
· GitHub ↗
· v1.0.3
482
总下载
2
收藏
4
当前安装
3
版本数
在 OpenClaw 中安装
/install restart-safe-workflow
功能描述
Safe OpenClaw gateway restart workflow with doctor precheck, checkpoint, restart-health-resume chain, task continuation, reconcile, and user-visible notifica...
安全使用建议
This skill implements an automated restart-and-resume workflow and will run on-host commands and scripts described in task data (nextAction). Before installing or running: 1) Review and supply a strict ACTION_ALLOWLIST_FILE (the package’s recommended allowlist file is not included) so only safe commands/scripts are permitted. 2) Audit any task files (plan/nextAction inputs) you plan to run to ensure they cannot contain arbitrary 'cmd:' or 'script:' entries from untrusted sources. 3) Ensure the machine's openclaw CLI and its notification/account configuration are secure (the script invokes openclaw message send and gateway/restart/status commands). 4) Run acceptance tests in an isolated environment (or with --no-restart) first to observe behavior. 5) If you need help knowing which commands to allow/deny, ask the skill author for the default allowlist or add a conservative whitelist (only health/status/echo) before enabling real restarts.
功能分析
Type: OpenClaw Skill
Name: restart-safe-workflow
Version: 1.0.3
The bundle provides a sophisticated administrative workflow for safely restarting the OpenClaw gateway, including state management, health checks, and task continuation. It features legitimate security controls such as command and script allowlists in `scripts/restart-safe.sh` and a comprehensive automated test suite in `scripts/restart-acceptance.sh`. While the scripts perform high-risk actions like detached execution and shell command processing, these behaviors are strictly aligned with the stated purpose of maintaining system availability during a service restart, and no evidence of malicious intent or data exfiltration was found.
能力评估
Purpose & Capability
Name/description (safe restart, precheck, checkpoint, resume) match what the code does: it calls an openclaw CLI, performs doctor/checkpoint/restart/health/resume steps, writes per-task state JSON, and sends notifications. The dependencies (openclaw CLI, python3, bash) are appropriate for this purpose. Minor mismatch: the SKILL recommends a config-action-allowlist.txt but that file is not present in the package manifest.
Instruction Scope
The SKILL.md and scripts allow task-driven actions including 'cmd:<command>' and 'script:<path>' which the runtime will execute. The code includes an ACTION_ALLOWLIST_FILE mechanism and mentions a built-in whitelist, but the allowlist file recommended in SKILL.md is not included. If input task data (nextAction) is attacker-controlled or insufficiently validated, arbitrary commands or scripts could run. The scripts do not send data to external HTTP endpoints; visible notifications are sent via the openclaw CLI.
Install Mechanism
No install spec or remote downloads — this is instruction-only with included shell scripts. Nothing is fetched or installed at runtime by the skill itself, which minimizes supply-chain risk.
Credentials
The registry metadata declares no required environment variables, but the scripts make optional use of several env vars (STATE_DIR, ACTION_ALLOWLIST_FILE, NOTIFY_CHANNEL, NOTIFY_TARGET, NOTIFY_ACCOUNT, GATEWAY_RESTART_CMD, etc.). This is proportionate to a restart/notification workflow, but the skill will rely on the local openclaw CLI and whatever credentials/config it uses — those are not declared here. Ensure the openclaw runtime credentials and notify account settings are intentionally configured.
Persistence & Privilege
always=false and the skill does not request permanent platform-wide privileges. It writes state files under STATE_DIR (default ./state/restart) and may spawn detached processes for acceptance runs — this is expected for a detached restart runner. It does not alter other skills' configuration.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install restart-safe-workflow - 安装完成后,直接呼叫该 Skill 的名称或使用
/restart-safe-workflow触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
- Minor updates to scripts/restart-safe.sh and scripts/restart-acceptance.sh.
- No user-facing changes documented.
v1.0.2
- Added plan and validate commands for TaskPlan v1 support.
- Improved acceptance testing with detached self-daemon mode.
- Enhanced task continuation and state machine with pendingActions.
- Comprehensive ability documentation and command usage updated in SKILL.md.
- Fixed TC10 upgrade trigger and completed Phase3/4 implementations.
v1.0.0
restart-safe-workflow 1.0.0 - Initial release
- Introduces a safe workflow for OpenClaw gateway restarts with built-in doctor checks, state persistence, and health verification.
- Provides checkpointing and automated resumption triggers to ensure recovery and reduce task loss risks.
- Supports user-visible notifications before and after restarts, with Feishu integration examples.
- Includes SOP and acceptance scripts for restart testing and validation, with clear state tracking and report outputs.
- Designed for scenarios requiring safe, traceable gateway restarts and reliable recovery assurance.
元数据
常见问题
Restart Safe Workflow 是什么?
Safe OpenClaw gateway restart workflow with doctor precheck, checkpoint, restart-health-resume chain, task continuation, reconcile, and user-visible notifica... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 482 次。
如何安装 Restart Safe Workflow?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install restart-safe-workflow」即可一键安装,无需额外配置。
Restart Safe Workflow 是免费的吗?
是的,Restart Safe Workflow 完全免费(开源免费),可自由下载、安装和使用。
Restart Safe Workflow 支持哪些平台?
Restart Safe Workflow 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Restart Safe Workflow?
由 Huo Lushan(@who-ohw)开发并维护,当前版本 v1.0.3。
推荐 Skills