port-manager

Helper for agents to check ports before starting dev servers and avoid unnecessary restarts

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "port-manager" with this command: npx skills add dohoons/port-manager/dohoons-port-manager-port-manager

port-manager

A helper skill for agents to intelligently manage ports when starting development servers. Avoid unnecessary restarts by checking if the server is already running.

When to use

ALWAYS refer to this skill when the user asks to:

  • start the dev server / development server
  • run the dev server / development server
  • start the server / run the server
  • start the app / run the app
  • execute npm run dev / pnpm dev / yarn dev
  • execute npm run start / pnpm start / yarn start
  • execute vite / next dev / nuxt dev
  • 개발서버 실행 / 개발 서버 시작
  • 서버 시작 / 실행

Also refer when:

  • About to execute any command that binds to a port
  • Encountering "port already in use" error

Instructions

Before Starting Dev Server

When the user asks to start a dev server, ALWAYS check the port first:

  1. Identify the project's port

    • Check package.json scripts (dev, start)
    • Check framework config files (vite.config, next.config, etc.)
    • Common ports: Next.js 3000, Vite 5173, CRA 3000, Django 8000, Rails 3000
  2. Check if the port is already occupied

    lsof -i :<port>
    
  3. Handle the result

    If port is FREE:

    If port is occupied by SAME PROJECT:

    • Skip starting, inform user: "✓ [Project] dev server is already running at http://localhost:3000"
    • Do NOT start another instance

    If port is occupied by DIFFERENT PROCESS:

    • Ask user: "⚠️ Port 3000 is occupied by [process details]. Options:
      1. Kill it and start [project] server
      2. Skip and keep existing What would you prefer?"

Platform Notes

macOS/Linux/WSL:

  • Check port: lsof -i :<port>
  • Kill process: kill -9 <PID>

Windows native:

  • Check port: netstat -ano | findstr :<port>
  • Kill process: taskkill /PID <PID> /F

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

openclaw-version-monitor

监控 OpenClaw GitHub 版本更新,获取最新版本发布说明,翻译成中文, 并推送到 Telegram 和 Feishu。用于:(1) 定时检查版本更新 (2) 推送版本更新通知 (3) 生成中文版发布说明

Archived SourceRecently Updated
Coding

ask-claude

Delegate a task to Claude Code CLI and immediately report the result back in chat. Supports persistent sessions with full context memory. Safe execution: no data exfiltration, no external calls, file operations confined to workspace. Use when the user asks to run Claude, delegate a coding task, continue a previous Claude session, or any task benefiting from Claude Code's tools (file editing, code analysis, bash, etc.).

Archived SourceRecently Updated
Coding

ai-dating

This skill enables dating and matchmaking workflows. Use it when a user asks to make friends, find a partner, run matchmaking, or provide dating preferences/profile updates. The skill should execute `dating-cli` commands to complete profile setup, task creation/update, match checking, contact reveal, and review.

Archived SourceRecently Updated
Coding

clawhub-rate-limited-publisher

Queue and publish local skills to ClawHub with a strict 5-per-hour cap using the local clawhub CLI and host scheduler.

Archived SourceRecently Updated