← Back to Skills Marketplace
zitao666

PM2 Gateway Restart

by zitao666 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
130
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install pm2-gateway-restart
Description
Use PM2 to reliably restart OpenClaw gateway on Windows. Use when the user wants to restart the OpenClaw gateway, fix port conflicts, or recover from a crash...
Usage Guidance
This skill appears to do what it says: use PM2 to manage the OpenClaw gateway on Windows. Before running the commands: 1) Verify the hard-coded paths (D:/Program Files/nodejs/node.exe and the Administrator AppData path) match your installation — adjust them if they don't. 2) Be aware `npm install -g pm2` and `pm2 save` are system-level actions that install a global package and persist process state; run them as an administrator intentionally. 3) Run the commands manually in a PowerShell session first to confirm behavior and avoid surprising changes. 4) No credentials are requested and no external endpoints are contacted beyond localhost, but always inspect and understand any install commands before executing.
Capability Analysis
Type: OpenClaw Skill Name: pm2-gateway-restart Version: 1.0.0 The skill provides instructions for managing the OpenClaw gateway using PM2, including global package installation ('npm install -g pm2') and process persistence. It is classified as suspicious due to the use of hardcoded absolute paths targeting the Administrator's profile ('C:/Users/Administrator/AppData/Roaming/...'), which encourages execution with elevated privileges and represents a significant security anti-pattern. While the commands in SKILL.md are plausibly needed for the stated purpose, the reliance on high-privilege paths and system-wide changes warrants caution.
Capability Assessment
Purpose & Capability
The skill's name/description match the runtime instructions (it uses PM2 to restart the OpenClaw gateway). Minor mismatch: registry metadata lists no required binaries, but the instructions clearly rely on pm2, npm/node, PowerShell, and curl — these are expected for the task but should have been declared.
Instruction Scope
SKILL.md only instructs local process management and local health checks (pm2 commands, curl to localhost). It references specific filesystem paths (hard-coded Node and openclaw module paths and the Administrator profile) and suggests installing pm2 globally — all within the restart/recovery scope. It does not ask to read unrelated files or exfiltrate data.
Install Mechanism
This is instruction-only (no install spec). The instructions advise running `npm install -g pm2`, which installs a public npm package globally. That is a normal way to get PM2 but is a system-level change and should be run intentionally by an administrator.
Credentials
The skill requests no environment variables, credentials, or external-host access. The commands operate on local resources only (localhost and local filesystem paths).
Persistence & Privilege
The steps instruct `pm2 save` which persists the PM2 process list for automatic resurrection — expected for a process manager but it does give PM2 a lasting presence on the system. The skill does not request 'always:true' or attempt to change other skills or system-wide agent settings.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install pm2-gateway-restart
  3. After installation, invoke the skill by name or use /pm2-gateway-restart
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
pm2-gateway-restart v1.0.0 – Initial release - Provides a reliable way to restart the OpenClaw gateway on Windows using PM2. - Addresses issues with Windows TCP FIN_WAIT_2 timeouts and scheduled task failures from standard commands. - Includes step-by-step usage for restart, status checking, troubleshooting, and initial setup. - Offers clear examples for common operational and recovery scenarios.
Metadata
Slug pm2-gateway-restart
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is PM2 Gateway Restart?

Use PM2 to reliably restart OpenClaw gateway on Windows. Use when the user wants to restart the OpenClaw gateway, fix port conflicts, or recover from a crash... It is an AI Agent Skill for Claude Code / OpenClaw, with 130 downloads so far.

How do I install PM2 Gateway Restart?

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

Is PM2 Gateway Restart free?

Yes, PM2 Gateway Restart is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does PM2 Gateway Restart support?

PM2 Gateway Restart is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created PM2 Gateway Restart?

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

💬 Comments