← Back to Skills Marketplace
jackytianjp

smart-restart-protection

by ryuichi Takano · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
267
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install smart-restart-protection
Description
智能重启保护:防止无限循环,确保OpenClaw Gateway安全重启和状态恢复
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install smart-restart-protection
  3. After installation, invoke the skill by name or use /smart-restart-protection
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug smart-restart-protection
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is smart-restart-protection?

智能重启保护:防止无限循环,确保OpenClaw Gateway安全重启和状态恢复. It is an AI Agent Skill for Claude Code / OpenClaw, with 267 downloads so far.

How do I install smart-restart-protection?

Run "/install smart-restart-protection" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is smart-restart-protection free?

Yes, smart-restart-protection is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does smart-restart-protection support?

smart-restart-protection is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created smart-restart-protection?

It is built and maintained by ryuichi Takano (@jackytianjp); the current version is v1.0.0.

💬 Comments