local-dev-server-control
Control the TermLink local development server on Windows by starting, stopping, restarting, or inspecting the repo-local `npm run dev` process tree. Use when Codex needs to recover the current dev env
SKILL.mdskills/local-dev-server-control/SKILL.md
GitHubLocal Dev Server Control
Use this skill to manage the current repository's local development server without touching unrelated Node.js processes.
Run commands from repository root:
E:\coding\TermLink
Quick Start
Check current status:
powershell -ExecutionPolicy Bypass -File .\skills\local-dev-server-control\scripts\manage-local-dev-server.ps1 -Action status
Start server:
powershell -ExecutionPolicy Bypass -File .\skills\local-dev-server-control\scripts\manage-local-dev-server.ps1 -Action start
Stop server:
powershell -ExecutionPolicy Bypass -File .\skills\local-dev-server-control\scripts\manage-local-dev-server.ps1 -Action stop
Restart server:
powershell -ExecutionPolicy Bypass -File .\skills\local-dev-server-control\scripts\manage-local-dev-server.ps1 -Action restart
Behavior
- Manage only the repo-local development chain:
cmd -> npm run dev -> nodemon -> node src/server.js. - Use
http://127.0.0.1:3010as the fixed local development baseline and setPORT=3010when starting. - Write combined startup logs to
logs/dev-server.log. - Probe
/api/healthafter startup and treat401 Unauthorizedas a valid sign that the server is up with auth enabled. - Fall back to
.envcredentials when present, otherwise useadmin/adminfor authenticated health checks.
Optional Parameters
powershell -ExecutionPolicy Bypass -File .\skills\local-dev-server-control\scripts\manage-local-dev-server.ps1 `
-Action restart `
-BaseUrl http://127.0.0.1:3010 `
-StartupTimeoutSec 30
Rules
- Do not use this skill for pm2 service management; use
win-server-deployfor Windows service operations. - Do not kill unrelated
node.exeprocesses outside this repository. - Prefer
-Action restartover ad hoc process killing when the request is simply to reload the local dev environment. - Do not change the dev server port or pass a non-3010
BaseUrlunless the user explicitly asks for that port in the current request. - If port
3010cannot be bound or health checks fail, stop and report the blocker instead of silently falling back to another port.