← Back to Skills Marketplace
laolaoqi

Linux Port Resolver

by new · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
37
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install linux-port-resolver
Description
Resolve Linux port conflicts (EADDRINUSE/bind failed) with precision. Detect occupying process, free the port, and prevent recurrence. Use when a service fai...
README (SKILL.md)

Linux Port Resolver

Quick fix port conflicts on Linux without guesswork.

Quick Commands

# Find what's on a port
ss -tlnp | grep :PORT
# Alternative if ss not available
netstat -tlnp 2>/dev/null | grep :PORT
# Also check IPv6
ss -tlnp | grep :PORT

Resolution Steps

  1. Identify the process

    ss -tlnp | grep ":\x3CPORT> "
    # Output: LISTEN 0 128 0.0.0.0:PORT 0.0.0.0:* users:(("process",PID,))
    
  2. Verify the PID - don't kill system processes

    ps -p PID -o pid,ppid,cmd,user
    
  3. Kill gracefully, escalate if needed

    kill PID                  # SIGTERM - graceful
    sleep 2 && ss -tlnp | grep ":\x3CPORT> "  # verify
    kill -9 PID               # SIGKILL - force, last resort
    
  4. Or reconfigure - change the port in the service config instead

    • systemd: edit /etc/systemd/system/SERVICE.service, change port, systemctl daemon-reload && systemctl restart SERVICE
    • Docker: change ports: mapping in docker-compose.yml
    • Custom app: check config file or env var for port setting
  5. Prevent recurrence with ExecStartPre in systemd

    [Service]
    ExecStartPre=/bin/sh -c 'kill -9 $(ss -tlnp | grep ":PORT " | grep -oP "pid=\\K\\d+") 2>/dev/null; true'
    

Safety Checklist

  • Confirmed the port is actually in use
  • Identified the PID correctly
  • PID is not PID 1 or a critical system daemon
  • Verified there's no other instance still running
  • Checked both IPv4 and IPv6 listeners
Usage Guidance
Use this skill carefully and only on Linux systems you administer. Before allowing it to stop a process, verify the PID and service identity yourself. Be especially cautious with the suggested systemd ExecStartPre auto-kill command; it should not be installed unless you fully understand and accept the risk of future automatic process termination.
Capability Analysis
Type: OpenClaw Skill Name: linux-port-resolver Version: 1.0.0 The skill provides standard Linux administrative procedures for identifying and resolving port conflicts using common utilities like ss, ps, and kill. The instructions in SKILL.md are well-aligned with the stated purpose of troubleshooting EADDRINUSE errors and do not contain any indicators of malicious intent, data exfiltration, or unauthorized persistence.
Capability Assessment
Purpose & Capability
Resolving port conflicts coherently involves identifying and sometimes stopping a process, but the included prevention workflow goes beyond one-time troubleshooting by adding an automatic force-kill action to a systemd service.
Instruction Scope
The instructions include high-impact process termination commands, including SIGKILL, and a shell-based systemd ExecStartPre hook without strong scoping to a specific expected process.
Install Mechanism
There is no install spec and no code files; this is an instruction-only skill.
Credentials
The skill is Linux-specific and uses Linux networking/process/service-management commands, but the registry metadata does not restrict it to Linux.
Persistence & Privilege
The systemd guidance can create persistent behavior that force-kills whichever process is listening on a port before a service starts, likely requiring privileged system configuration changes.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install linux-port-resolver
  3. After installation, invoke the skill by name or use /linux-port-resolver
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release
Metadata
Slug linux-port-resolver
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Linux Port Resolver?

Resolve Linux port conflicts (EADDRINUSE/bind failed) with precision. Detect occupying process, free the port, and prevent recurrence. Use when a service fai... It is an AI Agent Skill for Claude Code / OpenClaw, with 37 downloads so far.

How do I install Linux Port Resolver?

Run "/install linux-port-resolver" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Linux Port Resolver free?

Yes, Linux Port Resolver is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Linux Port Resolver support?

Linux Port Resolver is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Linux Port Resolver?

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

💬 Comments