优雅重启 Gateway。解决重启后丢失会话上下文的问题,重启前设置一次性 cron 任务,重启后自动发送消息到主会话恢复任务。默认 10 秒后唤醒。触发词:重启、restart

v1.0.4

优雅重启 Gateway。解决重启后丢失会话上下文的问题,重启前设置一次性 cron 任务,重启后自动发送消息到主会话恢复任务。默认 10 秒后唤醒。依赖 openclaw CLI。触发词:重启、restart。

0· 666·8 current·8 all-time
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description state a graceful restart that sets a one-time cron/system-event and restarts the Gateway. The metadata declares requiredBinaries: openclaw and permissions for gateway-restart and cron; the JS implements exactly those steps. The requested capabilities match the stated purpose.
Instruction Scope
SKILL.md instructs running the included node script (not ad-hoc exec commands). The runtime instructions and the script only invoke the openclaw CLI and do not read/write unrelated files, access environment secrets, or call external network endpoints. The script sanitizes the task text and documents usage, so the instruction scope stays within the described purpose.
Install Mechanism
There is no install spec (instruction-only with a bundled script). Nothing is downloaded from external URLs and no archives are extracted. This is low-risk given the script is included in the skill bundle.
Credentials
No environment variables or credentials are requested. The only external dependency is the openclaw CLI, which is necessary and declared in metadata. No unrelated secrets or config paths are required.
Persistence & Privilege
always is false and the skill is user-invocable; it does not request permanent presence or modify other skills' configs. The script runs a one-time cron via the openclaw CLI and then restarts the Gateway — this matches its purpose and does not request additional privileges.
Assessment
This skill appears to do what it claims: it uses the bundled Node script to add a one-time cron system-event and then calls 'openclaw gateway restart'. Before installing, verify that the 'openclaw' CLI on your system is the expected, trusted binary and that you are comfortable the agent can call it (the script will execute that binary). Test in a safe environment first to confirm the timing and behavior meet your needs. Note the script restarts the Gateway (service interruption) and schedules an automated system-event; ensure no other automation will react unexpectedly to that event. The script performs basic sanitization of the task text, but avoid passing sensitive secrets as the task argument. Finally, if you prefer tighter control, run the script manually instead of allowing autonomous invocation.

Like a lobster shell, security has layers — review code before you run it.

latestvk975pjztne36qk9t5t7548ka7981mtaq

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

Comments