一键导入
preview
Expose a dev server running in this session at a public preview URL. Use when the user asks to run, preview, or share the project's web app/dev server.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Expose a dev server running in this session at a public preview URL. Use when the user asks to run, preview, or share the project's web app/dev server.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Save a valuable fragment to the user's personal memory (a durable, searchable note store organized into topics). Use when the user runs /note, says "remember this", "save to memory", "save a note", "note this down", "запиши в память", "сохрани заметку", or when a decision/insight/idea worth keeping emerges — and to distill a long session into a session summary plus atomic facts.
Мерж → бамп → релиз brigade и ожидание готовности. Мержит текущую ветку в main (если не на main), гоняет `make release` (bump из аргумента, дефолт patch — инкрементит semver-тег и пушит, что триггерит docker-CI), затем через `gh` ждёт появления GitHub Release с новой версией (значит оба образа собрались и опубликовались) и шлёт desktop-уведомление (terminal-notifier). Только для репозитория brigade. Триггеры: /release, "релизни", "выкати релиз", "мерж бамп релиз", "собери релиз".
| name | preview |
| description | Expose a dev server running in this session at a public preview URL. Use when the user asks to run, preview, or share the project's web app/dev server. |
This session runs inside brigade. Any HTTP server you start here can be reached from the user's browser at a deterministic preview URL — no port forwarding needed.
Start the server on any free port. If this session runs in Docker, bind to
0.0.0.0, not localhost (the proxy connects over the container network):
vite --host 0.0.0.0; also allow the preview host via
server.allowedHosts: true (or list the host) in vite config;next dev -H 0.0.0.0;python3 -m http.server 8000 --bind 0.0.0.0.Build the preview URL: take $BRIGADE_PREVIEW_URL_TEMPLATE and replace {port}
with the actual port. The template is already the full, correct URL for this
deployment (subdomain or single-host cookie form) — just substitute the port,
do not assemble it yourself. Examples:
http://abc-{port}.localhost:10000 → http://abc-3000.localhost:10000https://preview.example.com/?id=abc-{port} → https://preview.example.com/?id=abc-3000Register the port so the link shows up in the brigade UI. This calls the
brigade.v1.AgentBridgeService/RegisterPreview ConnectRPC method — plain
POST with a JSON body, no client library needed:
curl -sf -X POST "$BRIGADE_API_URL/brigade.v1.AgentBridgeService/RegisterPreview" \
-H "Authorization: Bearer $BRIGADE_PREVIEW_TOKEN" \
-H "Content-Type: application/json" \
-d "{\"sessionId\": \"$BRIGADE_SESSION_ID\", \"port\": 3000, \"name\": \"vite\"}"
The response contains the final URL: {"url": "..."}.
Tell the user the preview URL.
Notes: