/prometheus-skill-pack:scaffold-react-vite-a2uifrom prometheus-skill-pack
Layer an A2UI rendering host onto a scaffolded Vite/React project. Adds a zustand store that reduces the A2UI message stream into surface state, a hook and component that render it via the upstream `@a2ui/react` renderer, and a mock message source so the app runs without an agent. The generated app renders agent-described UI under `pnpm dev` with no second process. The mock source is development-only; production needs a real message transport.
Ships in prometheus-skill-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Wraps an existing scaffold-react-vite target with an
A2UI protocol rendering host.
bash scripts/scaffold-react-vite-a2ui.sh \
--target <path-to-react-project> \
[--feature <feature-name>]
--target must already be a scaffold-react-vite.sh project — this is a thin
wrapper in the same shape as scaffold-react-vite-tauri.sh and
scaffold-react-vite-agui.sh, not a standalone generator.
| Path | Role |
|---|---|
src/features/<feature>/stores/surface-store.ts | Reduces the message stream into surface state; owns all I/O |
src/features/<feature>/hooks/use-surface.ts | Reads the store |
src/features/<feature>/components/a2ui-surface.tsx | Renders via @a2ui/react |
src/dev/mock-surface-source.ts | Canned message sequence for development |
It also pins @a2ui/[email protected] and @a2ui/[email protected] exactly, and
appends a README section.
Both packages are required. a2ui-surface.tsx imports MessageProcessor
from @a2ui/web_core/v0_9, and @a2ui/react does not re-export it — under
pnpm's strict isolation, installing only @a2ui/react leaves that import
unresolvable.
Placement follows references/scaffolds/state-architecture.md:
initRealtime() subscription (line 185)fetch, never EventSource (line 210)The store imports no React; the architectural ESLint config enforces it.
The surface renders through upstream @a2ui/react rather than a hand-written
component switch. That is deliberate: this repository previously shipped a
~30-line switch handling three lowercase component names that could never
match its own schema, and it went a full phase without rendering a single
conformant spec. Upstream ships and maintains the component catalog.
createSurface replaces the surface wholesale.updateComponents merges by id — updating one component leaves its
siblings intact.updateDataModel merges, so {"path": "/x"} leaves re-resolve without
components being resent.Messages are A2UI v1.0, validated by
references/schemas/a2ui-component.schema.json. The pinned renderer implements
v0.9 and supports createSurface, updateComponents, and
updateDataModel; the component translates between the two at a single
boundary.
deleteSurface, callFunction, and actionResponse are reduced into store
state but not rendered — the pinned renderer does not implement them. The
surface reports any it receives rather than ignoring them silently.
The mock source replays a canned sequence. useSurface({ source }) accepts any
AsyncIterable of messages, so a real transport — WebSocket, SSE, fetch —
substitutes directly.
scaffold-react-vite — the base scaffolder this wrapsscaffold-react-vite-agui — sibling host for the AG-UI protocolreferences/domain/a2ui.md — A2UI spec refinement (direct:a2ui), a
different concern: validating authored messages, not rendering themWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub prometheus-ags/prometheus-skill-system --plugin prometheus-skill-pack2 plugins ship this exact skill · first indexed Sep 1, 2026
218 skills in this plugin
/actor-modelTokio-native actor model pattern for Prometheus AGS projects. Implements actors as tokio tasks communicating via mpsc channels with a typed message enum, enabling safe concurrent state management without shared locks. Used in UAR session management, pk-librarian event broadcasting, and parking-lot scheduler design. Use when a component needs to own state exclusively while serving concurrent callers.
/adversarial-reviewIsolated, cross-model adversarial review of KBD artifacts and change diffs. Dispatches a fresh-context LLM judge over an OpenAI-compatible REST gateway (openai-proxy or `liter-llm api`) with an explicit mandate to find problems — the model that produced an artifact or change is never the model that reviews it. Runs as a pipeline stage inside kbd-assess/analyze/plan (artifact mode) and kbd-execute's single phase-boundary QA step (diff mode, once over the whole phase diff). Findings are severity-bucketed (CRITICAL/WARNING/SUGGESTION) and the judge's own report is screened by sycophancy-correction before it is surfaced.
Other plugins' skills for the same job
/agent-team-creatorCreate, revise, package, and deploy agent-team definitions with staged questions and native exports for UAR, Codex, Claude Code, Copilot, Kimi Code, MiniMax CLI, OpenCode and DeepSeek. Use for team definition and catalog lifecycle; use agent-team-manage for active runtime task state.