web-app-bas
Use when working on the BAS supervisory web app (React/TS or chosen SPA), auth shell, navigation tree, REST/WebSocket APIs, Docker Compose, or dev server bind…
от bbartling★ 20 звёзд на GitHub
Установить web-app-bas в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Web app — BAS head-end
Source of truth
bas_build_spec/spec.mdbas_build_spec/acceptance_criteria.mdbas_build_spec/BUILD_CHECKPOINTS.md— Codex wake queue.bas_build_spec/cron_codex/README.md— automation, hooks, cron self-removal.
Definition of done (API + UI + remote)
A feature slice is not complete for supervisory work if only tests pass on an ephemeral port but no long-lived listener matches bas_app/README.md:
ss -ltnpshows0.0.0.0:8000(API) and0.0.0.0:5173(static UI) when the stack should be up.curl -sfS http://127.0.0.1:8000/healthreturns 200.When
systemctl --user/journalctl --userare available:journalctl --user -u bas-backend.servicemust not show a restart storm (No module named bas_app_backend— seesystemd-live-devunit). If the wake shell has no user bus, skip journal and prove health with §1–2 plusbas_app/scripts/logs documented in README.POST_WAKE_HOOKmay still logpost_wake_stack: skipfor this tree — that is OK ifbas_app/README.mddocumentsbas_app/scripts/(orPOST_WAKE_HOOK) to start :8000 / :5173 per README without patchingbas_build_spec; seesystemd-live-dev.Remote browser + CORS (mandatory when dial-in is in scope): Opening
http://<lan-ip>:5173/is not enough. After UFW opens 5173/8000, the browser sendsOrigin: http://<lan-ip>:5173;BAS_ALLOWED_ORIGINSonbas-backendmust include that exact origin (comma-separated list replaces defaults — include loopback + LAN origins). Without it, DevTools shows preflightOPTIONS …/api/auth/loginwith noAccess-Control-Allow-Originandnet::ERR_FAILED. Proof commands (run on server, substitute LAN IP and host):curl -sSI -X OPTIONS "http://<lan-ip>:8000/api/auth/login" -H "Origin: http://<lan-ip>:5173" -H "Access-Control-Request-Method: POST"→ expectAccess-Control-Allow-Origin: http://<lan-ip>:5173(or*if intentionally using wildcard in isolated lab only).curl -sS -X POST "http://<lan-ip>:8000/api/auth/login" -H "Origin: http://<lan-ip>:5173" -H "Content-Type: application/json" -d '{"username":"operator","password":"operator123"}'→ 200 + JSON token. Codex should addEnvironment=BAS_ALLOWED_ORIGINS=…to~/.config/systemd/user/bas-backend.service(or documentedEnvironmentFile=),systemctl --user daemon-reload,systemctl --user restart bas-backend.service, and mirror the same list inbas_app/README.mddial-in.
Benign 404:
python3 -m http.serveron 5173 often returns 404 for/favicon.ico— not an API failure. Do not chase as “API 404” unless the path is under/api/.
Live access
- Dev and demo stacks should listen on
0.0.0.0when remote dial-in is required; document host/port and firewall expectations (seebas_build_spec/cron_codex/README.mdandbas_app/README.md§ Dial-in).
localhost vs remote (do not regress)
http://localhost:5173/from an engineer’s laptop hits the laptop, not the head-end server. Remote operators must usehttp://<server-lan-ip>:5173/(UI) andhttp://<server-lan-ip>:8000/(API) for the default two-port layout, or a single documented origin if Caddy/nginx proxies perbas_app/deploy/Caddyfile.example.- In
bas_app/README.md, keep the dial-in table accurate; in UI copy, avoid implying “open localhost from any PC.”
LAN dial-in triage (short)
http://<lan-ip>/= port 80 — not the default dev UI (:5173).- Firewall: allow 5173 and 8000 from the client subnet if the page never loads.
- CORS: UI at
http://<lan-ip>:5173needsBAS_ALLOWED_ORIGINSto include that origin (or documented*in isolated lab); restartbas-backend. - Verify:
curl -sS -X POST http://<lan-ip>:8000/api/auth/login …from the remote PC.
Codex autonomy: Fix bas_app/ (README, env, systemd) per above; do not add new [ ] rows to acceptance_criteria.md for routine LAN tuning unless the human reopens scope. Use memory/architecture/working-divergence.md for transient notes if README lags.
Port 80 / Caddy (conflicts)
- Another app on
:80(often Caddy) is not the BAS static server. Do not add Caddy/nginx site blocks unless the sprint explicitly owns reverse-proxy work — it confuses “what URL is the BAS?” - To remove lab web stacks on a server (Caddy + optional post-wake listeners), humans run
sudo bash bas_build_spec/cron_codex/bin/bas_strip_lab_web.sh(see script header). Codex does not run that script without explicit human direction.
Validation (spec only — do not edit bas_app/ from Cursor)
- Follow
spec-validationandacceptance_criteria.mdrelease gate. - Demo credentials
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл web-app-bas?
Use when working on the BAS supervisory web app (React/TS or chosen SPA), auth shell, navigation tree, REST/WebSocket APIs, Docker Compose, or dev server bind 0.0.0.0. Triggers on: frontend, backend, API, login, RBAC, bas_build_spec, head-end, POST_WAKE_HOOK, post_wake_stack, simulator service, remote dial-in, LAN CORS preflight, OPTIONS /api/auth/login, Tier A runtime, journalctl crash-loop, 8000 down, systemd unit, localhost confusion, Caddy port 80 conflict, LAN IP bookmark, favicon 404.
Как установить скилл web-app-bas?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл web-app-bas запускает скрипты?
Нет, скилл состоит только из инструкций (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…