/prometheus-skill-pack:scaffold-react-vite-aguifrom prometheus-skill-pack
Layer an AG-UI agent host onto a scaffolded Vite/React project. Adds a zustand store that consumes the AG-UI event stream, a hook and panel that render it, and a Vite dev-server SSE endpoint backed by a mock agent. The generated app streams agent responses under `pnpm dev` with no second process. The mock endpoint is development-only; production needs a real backend implementing the same contract.
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
AG-UI protocol agent host.
bash scripts/scaffold-react-vite-agui.sh \
--target <path-to-react-project> \
[--feature <feature-name>] \
[--route /api/agent/run]
--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, not a standalone
generator.
| Path | Role |
|---|---|
src/features/<feature>/stores/agent-store.ts | Owns the connection; reduces events into state |
src/features/<feature>/hooks/use-agent.ts | Reads the store |
src/features/<feature>/components/agent-panel.tsx | Renders messages |
src/dev/mock-agent.ts | Canned response replayed as protocol events |
src/dev/vite-plugin-agui-mock.ts | Dev-server SSE endpoint |
It also pins @ag-ui/client and @ag-ui/encoder at exact 0.0.59, registers
the plugin in the Vite config, and appends a README section.
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.
TEXT_MESSAGE_CONTENT deltas are appended, not replaced — delta is an
increment. Content for an unknown messageId is dropped with a warning rather
than synthesised, so a protocol ordering violation surfaces instead of hiding
behind plausible output.
The mock agent and Vite middleware run in the dev server. vite build excludes
them, so a deployed build has no agent endpoint. Production requires a backend
answering:
POST <route>
Content-Type: application/json body: RunAgentInput
Accept: text/event-stream
→ Content-Type: text/event-stream
`data: {…}\n\n` frames, one JSON event each
Point the store at it with useAgent({ url }).
@ag-ui/* is pre-1.0 (0.0.59). Versions are pinned exact — a caret range
would admit a breaking change in a patch bump. @ag-ui/client transitively adds
rxjs, zod, uuid, fast-json-patch, untruncate-json, and compare-versions to every
generated app.
scaffold-react-vite — the base scaffolder this wrapsscaffold-react-vite-tauri — the wrapper pattern this followsreferences/domain/ag-ui.md — AG-UI spec refinement (a different concern:
static spec documents, not the live runtime)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub prometheus-ags/prometheus-skill-system --plugin prometheus-skill-pack218 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.
/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.Other plugins' skills for the same job
2 plugins ship this exact skill · first indexed Sep 1, 2026