Command Palette

Search for a command to run...

Назад к скиллам
скилл № 53451

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от 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 dev to 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), без исполняемых скриптов.

Похожие скиллы

Сравнить start_dev_server с