← 返回 Skills 市场
zitao666

PM2 Gateway Restart

作者 zitao666 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
130
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 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...
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install pm2-gateway-restart
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /pm2-gateway-restart 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug pm2-gateway-restart
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 130 次。

如何安装 PM2 Gateway Restart?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install pm2-gateway-restart」即可一键安装,无需额外配置。

PM2 Gateway Restart 是免费的吗?

是的,PM2 Gateway Restart 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

PM2 Gateway Restart 支持哪些平台?

PM2 Gateway Restart 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 PM2 Gateway Restart?

由 zitao666(@zitao666)开发并维护,当前版本 v1.0.0。

💬 留言讨论