AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

A15 环境感知 C1 单工具 R0 只读 Port Checker

skill-leisvip-agent-skill-taxonomy-a15-c1-r0-port-checker · by leisvip

检查端口占用情况、识别占用进程、排查端口冲突。适用场景:(1) 端口被占用需找出进程,(2) 查看所有监听端口,(3) 检查某服务是否在运行。触发词:'端口'、'port'、'占用'、'监听'、'netstat'、'lsof'。不适用:防火墙规则管理(用 iptables/ufw)、网络流量分析(用 tcpdump/wireshark)。

No reviews yet
0 installs
32 views
0.0% view→install

Install

$ agentstack add skill-leisvip-agent-skill-taxonomy-a15-c1-r0-port-checker

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-leisvip-agent-skill-taxonomy-a15-c1-r0-port-checker)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of A15 环境感知 C1 单工具 R0 只读 Port Checker? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

port-checker

快速排查端口占用和网络监听情况。

配置(首次)

无需配置。

常用命令

查看所有监听端口

ss -tlnp

查看指定端口是否被占用

ss -tlnp | grep :
# 示例:ss -tlnp | grep :8080

查找占用指定端口的进程

# Linux
ss -tlnp | grep :

# 通用(需 root 权限查看所有进程)
lsof -i :

查看某进程监听的所有端口

lsof -i -P -n | grep 

查看所有 ESTABLISHED 连接

ss -tnp state established

查看 TCP 和 UDP 全部端口

ss -tulnp

统计各状态连接数

ss -tan | awk '{print $1}' | sort | uniq -c | sort -rn

检查远程端口是否可达

# 使用 ss 检查(仅本地)
ss -tn dst :

# 使用 timeout 检查远程连通性
timeout 3 bash -c "echo >/dev/tcp//" 2>/dev/null && echo "✅ 可达" || echo "❌ 不可达"

注意事项

  • ss -p 显示进程信息需要 root 权限,普通用户只能看到自己的进程
  • macOS 上 ss 可能不可用,用 lsof -i -P -n 替代
  • lsof 不在所有系统默认安装,缺失时用 ssnetstat 替代
  • 容器内看到的端口映射可能与宿主机不同,需在宿主机上检查

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.