dev-server-port-detection
Installation
SKILL.md
Dev Server Port Detection
Overview
Detect the development server port before opening browser connections. Prevents wasted time from port confusion and failed connection attempts.
Detection Workflow
-
Check configuration files (fastest)
vite.config.ts: Look forserver.portconfigurationpackage.json: Check scripts forPORTenvironment variable
-
Check running processes
- Use
lsof -i :PORTornetstatto find listening ports - Check
psoutput for node/vite processes
- Use
-
Parse terminal output
- Look for "Local:" or "Network:" lines in terminal output
- Extract port from URLs like
http://localhost:3000