← 返回 Skills 市场
smart-restart-protection
作者
ryuichi Takano
· GitHub ↗
· v1.0.0
· MIT-0
267
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install smart-restart-protection
功能描述
智能重启保护:防止无限循环,确保OpenClaw Gateway安全重启和状态恢复
安全使用建议
This skill appears to do what it says (manage safe restarts) but check a few things before installing or running it: 1) Ensure required tooling exists: besides 'openclaw' and 'bash' the scripts call curl, ss, tar, awk, find, ps, mv and the JS file implies a Node runtime — make sure those are present and trusted. 2) Inspect index.js and shell scripts for commands you don't want run on your host (index.js uses execSync/spawn wrappers that can run shell commands). 3) Understand that reset-protection and some operations will modify or clear files under ~/.openclaw/restart-state and backups — make a manual backup first. 4) If you plan to allow autonomous agent invocation, restrict or audit calls that perform 'restart' or 'reset-protection' to avoid accidental resets; consider requiring manual confirmation or running in a test environment first. 5) Run the scripts as an unprivileged user in a staging environment to validate behavior before using in production.
功能分析
Type: OpenClaw Skill
Name: smart-restart-protection
Version: 1.0.0
The skill bundle provides a robust utility for managing and protecting the OpenClaw Gateway service from infinite restart loops. It includes shell scripts (`smart-restart.sh`, `check-status.sh`, `reset-protection.sh`) and a JavaScript implementation (`index.js`) that handle rate limiting, concurrency locking, configuration backups, and health checks. The code is well-documented, follows its stated purpose, and lacks any indicators of data exfiltration, malicious execution, or prompt injection.
能力评估
Purpose & Capability
The name/description, scripts (smart-restart.sh, check-status.sh, reset-protection.sh) and index.js all implement restart-protection, rate-limiting, backups and diagnostics — consistent with the stated purpose. However the metadata declares only 'openclaw' and 'bash' as required binaries while the scripts use other system tools (curl, ss, tar, awk, ps, find, mv, etc.) and the package includes index.js (Node). The skill implicitly requires a Node runtime to use index.js and several unix tools that are not listed in the declared requirements.
Instruction Scope
Runtime instructions and scripts operate on local OpenClaw state (~/ .openclaw/*), read/write restart-state, lock files (/tmp/openclaw-restart.lock), create backups, and call the local Gateway HTTP endpoint and openclaw CLI. This is within scope for restart protection. Notes: reset-protection.sh and index.js perform destructive reset/overwrite of restart logs and last_restart; reset scripts prompt for interactive confirmation (may hang if run non-interactively). There are no obvious remote exfiltration endpoints; network calls are to localhost or local system checks.
Install Mechanism
No install spec (files are provided with the skill). That lowers supply-chain risk compared to remote downloads. Files include shell scripts and a JS module; the presence of executable scripts means the agent or user can run them, so verify scripts before execution. There is no network download during install.
Credentials
The skill does not request external credentials or environment variables in the registry metadata. README mentions optional env vars (SRP_STATE_DIR, SRP_MAX_HOURLY, etc.) but these are not declared as required — that is fine but should be documented clearly. The scripts read/writes user-home files (~/.openclaw/*) and /tmp lock files, which is proportional to the stated functionality but does grant access to your OpenClaw state and logs.
Persistence & Privilege
The skill does not set always:true and uses its own state directory under the user's home. It writes logs, backups and state files within ~/.openclaw/restart-state and /tmp lock files; it does not attempt to modify other skills or global agent configuration. Autonomous invocation is allowed (platform default) — consider whether you want the agent to call restart/reset operations automatically.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install smart-restart-protection - 安装完成后,直接呼叫该 Skill 的名称或使用
/smart-restart-protection触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of smart-restart-protection:
- Provides intelligent restart protection for OpenClaw Gateway.
- Prevents infinite restart loops caused by configuration errors.
- Restores session and workspace state after gateway restarts.
- Controls restart frequency to avoid system overload.
- Blocks concurrent restart processes to prevent conflicts.
元数据
常见问题
smart-restart-protection 是什么?
智能重启保护:防止无限循环,确保OpenClaw Gateway安全重启和状态恢复. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 267 次。
如何安装 smart-restart-protection?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install smart-restart-protection」即可一键安装,无需额外配置。
smart-restart-protection 是免费的吗?
是的,smart-restart-protection 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
smart-restart-protection 支持哪些平台?
smart-restart-protection 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 smart-restart-protection?
由 ryuichi Takano(@jackytianjp)开发并维护,当前版本 v1.0.0。
推荐 Skills