← 返回 Skills 市场
wang-junjian

Port Process

作者 军舰 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
271
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install port-process
功能描述
通过端口查找和管理系统进程。支持查找占用端口的进程、杀掉占用端口的进程、查看端口使用情况等操作。适用于 macOS 和 Linux 系统。使用场景:(1) "谁占用了 8080 端口",(2) "杀掉占用 3000 端口的进程",(3) "查看当前端口使用情况"。
安全使用建议
This skill appears to do exactly what it says: find/list ports and optionally kill the owning processes. Before using: (1) run with --dry-run or --json to inspect targets, (2) prefer --safe to send SIGTERM before SIGKILL, (3) avoid running kill commands as root unless you intend to, and (4) if you allow autonomous agent invocation, be aware an agent could execute the destructive kill operations — consider requiring explicit user confirmation before any termination.
功能分析
Type: OpenClaw Skill Name: port-process Version: 1.0.0 The skill bundle provides tools for managing system processes by port but contains shell injection vulnerabilities in `scripts/find_port.py` and `scripts/list_ports.py`. These scripts use `subprocess.run(shell=True)` with f-strings to execute system commands like `lsof` and `ps`, which could be exploited if the port input is not strictly validated as an integer. While the provided CLI entry points use `argparse` to enforce integer types, the underlying functions are inherently risky. The capability to terminate arbitrary system processes is high-risk, although it appears consistent with the skill's stated purpose.
能力评估
Purpose & Capability
Name/description match the provided scripts and SKILL.md. The scripts and example shell commands use lsof/ss/netstat/ps and OS signals to locate and terminate processes — exactly what a port-process management tool should do. No unrelated services, credentials, or external endpoints are required.
Instruction Scope
SKILL.md and bundled scripts limit actions to locating/listing ports and sending signals to PIDs. The kill script prompts for confirmation and offers --dry-run/--safe modes. Note: the skill performs destructive actions (kill signals); exercise care and use --dry-run/--safe before terminating processes. The scripts use subprocess.run(shell=True) but validate/parse ports as integers via argparse, limiting injection risk.
Install Mechanism
No install spec or external downloads — the skill is instruction-only with included Python scripts. Nothing is fetched from remote URLs or written by an installer.
Credentials
The skill requests no environment variables, credentials, or config paths. It may require elevated privileges (sudo) to see or kill other users' processes, which is expected and documented in SKILL.md.
Persistence & Privilege
always is false, there is no request for persistent/global agent changes, and the skill does not modify other skills or system-wide agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install port-process
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /port-process 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of port-process skill. - 查找、终止、管理系统端口对应的进程,支持 macOS 和 Linux - 提供多种命令行方法(lsof、netstat、ss)快速查找端口进程 - 内含脚本:kill_by_port.py、find_port.py、list_ports.py,便于自动化和拓展 - 支持安全终止、干跑(dry run)、详细输出、JSON 输出等多种模式 - 详细操作案例、平台兼容说明和常见问题解答 - 面向开发、调试、自动化脚本等多场景使用
元数据
Slug port-process
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Port Process 是什么?

通过端口查找和管理系统进程。支持查找占用端口的进程、杀掉占用端口的进程、查看端口使用情况等操作。适用于 macOS 和 Linux 系统。使用场景:(1) "谁占用了 8080 端口",(2) "杀掉占用 3000 端口的进程",(3) "查看当前端口使用情况"。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 271 次。

如何安装 Port Process?

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

Port Process 是免费的吗?

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

Port Process 支持哪些平台?

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

谁开发了 Port Process?

由 军舰(@wang-junjian)开发并维护,当前版本 v1.0.0。

💬 留言讨论