dev-server
БесплатноЗапускает вложенные скриптыНе проверенStart the project's development server (`pnpm dev` for backend.ai-webui; discovered from README/package.json elsewhere), deriving the header color, app name…
от lablup★ 137 звёзд на GitHubОб этом скилле
Dev Server
Starts the dev server with optional VITE_THEME_HEADER_COLOR, PORTLESS_APP_NAME, VITE_DEFAULT_API_ENDPOINT, VITE_DEV_TYPECHECK, and (when the user supplies them) VITE_DEFAULT_EMAIL / VITE_DEFAULT_PASSWORD, derived from this Claude Code session's /color / /rename history, the current branch's PR description, the user's stated test credentials, and — when those name no backend or account — the team dev catalog.
1. Decide the command
If cwd is backend.ai-webui (this project)
Run only:
pnpm dev
Do not start pnpm wsproxy by default. scripts/dev.mjs already handles tsc watch + Relay watch + Portless + Vite dev server, and the webui can connect to a backend without the local wsproxy in normal browser-based development. pnpm wsproxy is optional — start it only when the user explicitly asks (e.g. desktop/Electron flow, or a backend setup that needs the local WebSocket proxy on port 5050).
Pin the React port with PORT=9081 pnpm dev only if the user asked for a specific port.
If cwd is some other project
Do not assume pnpm dev. Discover the right command:
- Read the project's
README.md(look for "Development", "Getting started", "Run", "Dev server" sections). - Read
package.jsonscriptsfield. Look fordev,start,serve,develop— pick the one the README points to, or the obvious one if README is silent. - If neither is conclusive, ask the user which script to run before guessing.
- Prefer the package manager the project uses:
pnpm-lock.yaml→pnpm,yarn.lock→yarn,bun.lockb→bun, otherwisenpm.
2a. Detect the Claude Code color from conversation history
Scan the current conversation (this session's prior turns, including <command-name> blocks and your own messages) for the most recent successful /color <name> invocation.
What counts as "successful":
- A
<command-name>/color</command-name>block whose<command-args>is exactly one of:red,blue,green,yellow,purple,orange,pink,cyan,default. - AND the accompanying
<local-command-stdout>does NOT start withInvalid color. - If multiple
/colorcalls appear, take the most recent one. - If the most recent successful call is
default, treat the color as unset (skipVITE_THEME_HEADER_COLOR). - If no
/colorwas ever invoked in this conversation, the color is unset.
Hex mapping (use exactly these values):
| Name | Hex |
|---|---|
red |
#DC2626 |
blue |
#2563EB |
green |
#16A34A |
yellow |
#CA8A04 |
purple |
#7C3AED |
orange |
#EA580C |
pink |
#DB2777 |
cyan |
#0891B2 |
Do not invent additional names or alternate hex values. If the user's /color arg doesn't match the table exactly, treat it as unset.
2b. Decide the Portless app name (webui only)
PORTLESS_APP_NAME supplies only the descriptive word. scripts/dev.mjs composes the
full subdomain itself, putting the identifiers first and the word last:
https://fr-3665-pr9049-statusline.localhost:1355
\_____/ \____/ \________/
branch looked PORTLESS_APP_NAME
issue up by (this is the only part you supply)
dev.mjs
The whole name is capped at 50 characters, and lower on a box whose gateway share URL is one
label (<app>--<box> must fit in 63): dev.mjs trims the descriptive word, never the identifiers.
So there is exactly one question for you to answer: is there a /rename to use?
- Most recent successful
/rename <name>— slugify the arg (rules below) and pass it. The dev URL then carries the human-readable session name alongside the identifiers. - No
/rename— omit the env var.dev.mjsfalls back to a few words from the PR title, then to the identifiers alone (fr-3665-pr9049), then to Portless's auto-derived name. Every fallback is already handled.
Never pass the FR number or the PR number yourself. dev.mjs derives the issue key from
the branch — fr-N for a legacy FR-N branch, gh-N on the type/gh-N-slug branch of a
GitHub issue (gh-10144-pr10150-drawer) — and looks the PR up with one cached gh call, and it strips either identifier from
your string if you pass it anyway — so PORTLESS_APP_NAME=fr-3665 just yields fr-3665-pr9049,
losing the descriptive part for nothing.
Slug rules (apply to the /rename arg before passing as PORTLESS_APP_NAME):
- Lowercase.
- Replace any character that isn't
[a-z0-9-]with-(spaces, underscores, dots, slashes, non-ASCII all become-). - Collapse repeated
-into a single-. - Trim leading/trailing
-. - Keep it short — a word or three.
dev.mjscaps the whole hostname at 50 chars (less on a one-label gateway box, see above) and truncates the descriptive tail first, so a long name loses its own end, not the identifiers. - If the result is empty after sanitization, treat as unset.
`de
Установить dev-server в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл dev-server?
Start the project's development server (`pnpm dev` for backend.ai-webui; discovered from README/package.json elsewhere), deriving the header color, app name, default backend endpoint and login pre-fill from this session's /color and /rename, the branch's PR description, user-supplied test credentials and the team dev catalog (fw:webui-connection-info), and advertising the server on the PRs it serves. Trigger on: "start dev server", "run dev", "pnpm dev 띄워", "개발 서버 띄워", "dev 서버 시작", "boot the dev environment", "실행해줘 dev".
Как установить скилл dev-server?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dev-server запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This 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…
от Anthropic