start_dev_server
Automatically starts the local development server (npm run dev) and cleans up stale port conflicts. Trigger on any dev server intent: "npm run dev", "run…
от hemanth17r★ 33 звезды на GitHub
Установить start_dev_server в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Start Dev Server
Overview
This skill starts the local development server using npm run dev. It first clears out any stale processes occupying the dev port (default 5173) to ensure a clean startup.
Workflow
1. Clean up Stale Processes
Run the following PowerShell command to forcefully terminate any processes running on port 5173 (this handles the "port already in use" error).
$port = 5173
$tcp = Get-NetTCPConnection -LocalPort $port -ErrorAction SilentlyContinue
if ($tcp) { Stop-Process -Id $tcp.OwningProcess -Force -ErrorAction SilentlyContinue }
2. Start the Server
Run the local development server command as a background task.
npm run dev
(Wait a couple of seconds for the background task to start, check the logs to ensure the server is running without errors).
3. Handle Missing Dependencies (Optional)
If the server fails to start with errors indicating missing modules, run npm install and then repeat step 2.
Common Mistakes
- Polling for status: Do not wait for
npm run devto finish. It is a long-running process and should be sent to the background using your command execution tool. - Not cleaning up the port: Always run the cleanup PowerShell script first, otherwise the new server instance will crash if port 5173 is occupied.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл start_dev_server?
Automatically starts the local development server (npm run dev) and cleans up stale port conflicts. Trigger on any dev server intent: "npm run dev", "run dev", "start dev", "start server", "start the server", "run the app", "restart dev", "restart server", "preview app", "open in browser", "preview this", "start dev server", or "spin up local server".
Как установить скилл start_dev_server?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл start_dev_server запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…