Restart Guard
Deterministic OpenClaw gateway restart with down/up state-machine verification, origin-session proactive ACK, and backward-compatible config.
Deterministic OpenClaw gateway restart with down/up state-machine verification, origin-session proactive ACK, and backward-compatible config.
Real data. Real impact.
Emerging
Developers
Per week
Open source
Skills give you superpowers. Install in 30 seconds.
Safely restart gateway while preserving context and guaranteeing a post-restart report path to the user session.
安全重启网关,保留上下文,并保证重启后可主动回报到用户会话。
Use this skill when the task involves OpenClaw gateway restart, watchdog recovery, or post-restart reporting.
当任务涉及 OpenClaw 网关重启、看门狗恢复、重启后回报时使用。
Natural-language triggers (must auto-run, do not ask user for script commands):
自然语言触发(必须自动执行,不让用户手工跑脚本):
openclaw CLI is available.config.example.yaml or config/restart-guard.yaml.example copied to runtime path).openclaw CLI 可用。When user expresses restart intent without specifying channel details:
scripts/auto_restart.py.--notify-mode origin.effective_notify_plan.当用户仅表达重启意图且未指定渠道细节时:
scripts/auto_restart.py 自动执行全流程。--notify-mode origin。effective_notify_plan。python3 <skill-dir>/scripts/discover_channels.py --config <config-path> --json
Ask user:
origin recommended, or selected, all)询问用户:
origin,可选 selected、all)python3 <skill-dir>/scripts/write_context.py \ --config <config-path> \ --reason "config change" \ --verify 'openclaw health --json' 'ok' \ --resume "report restart result to user"
Recommended one-command entry:
python3 <skill-dir>/scripts/auto_restart.py \ --config <config-path> \ --reason "config change" \ --notify-mode origin
推荐单命令入口:
python3 <skill-dir>/scripts/auto_restart.py \ --config <config-path> \ --reason "配置变更" \ --notify-mode origin
python3 <skill-dir>/scripts/restart.py \ --config <config-path> \ --reason "config change" \ --notify-mode origin \ --origin-session-key <session-key>
Selected channel mode:
python3 <skill-dir>/scripts/restart.py \ --config <config-path> \ --reason "config change" \ --notify-mode selected \ --channel telegram \ --target 726647436
python3 <skill-dir>/scripts/postcheck.py --config <config-path>
restart_guard.result.v1status, restart_idrestart_idorigin_session_keynotify_modechannel_selectioneffective_notify_planstate_timestampsdiagnostics_filedelivery_statusseverityfailure_phaseerror_codedelivery_attemptsdelivery_routedelivery_exhausteddiagnostics_filewebui is not treated as disabled notification anymore; origin-session ACK is primary path.webui 不再视为禁用通知;主路径是回发到发起会话。ENHANCED_RESTART_IMPLEMENTATION_SPEC.md.ENHANCED_RESTART_IMPLEMENTATION_SPEC.md。down_detected && start_attempted && up_healthydown_detected && start_attempted && up_healthyrestart-diagnostics-<restart_id>.md/json), sends concise summary, and retries delivery within budget.restart-diagnostics-<restart_id>.md/json),发送简要摘要,并在预算内重试送达。origin session -> agent:main:main -> all discovered external channels.源会话 -> agent:main:main -> 所有已发现外部渠道。No automatic installation available. Please visit the source repository for installation instructions.
View Installation Instructions1,500+ AI skills, agents & workflows. Install in 30 seconds. Part of the Torly.ai family.
© 2026 Torly.ai. All rights reserved.