/prometheus-skill-pack:react-vite-stackfrom prometheus-skill-pack
Canonical React 19 + Vite 8 stack for Prometheus AGS frontend projects. Covers TanStack Router (file-based routing), TanStack Query (server state), TanStack React-Table (data grids), Zustand 5 (client state), shadcn/ui + Tailwind 4 (component system), and @prometheus-ags/prometheus-entity-management (normalized entity graph). Always use .tsx for React components. Use when scaffolding or extending any Prometheus AGS frontend application.
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.
Read when SKILL.md points to them.
| Package | Version | Role |
|---|---|---|
| React | 19 | UI runtime |
| Vite | 8 | Bundler + dev server |
| TypeScript | 6 | Type system |
@tanstack/react-router | latest | File-based routing |
@tanstack/react-query | latest | Server state + caching |
@tanstack/react-table | latest | Headless data grid |
zustand | 5 | Client state (ephemeral UI) |
shadcn/ui | latest | Component system |
| Tailwind CSS | 4 | Utility CSS |
@prometheus-ags/prometheus-entity-management | latest | Normalized entity graph |
src/
├── main.tsx ← app entry, router + query provider setup
├── router.tsx ← TanStack Router config
├── routes/
│ ├── __root.tsx ← root layout (nav, auth guard)
│ ├── index.tsx ← /
│ └── entities/
│ ├── index.tsx ← /entities list
│ └── $entityId.tsx ← /entities/:entityId detail
├── features/ ← feature-scoped modules
│ └── posts/
│ ├── PostsPage.tsx ← page component (composes hooks + UI)
│ ├── usePostList.ts ← TanStack Query or entity hook
│ └── PostsTable.tsx ← TanStack Table grid component
├── components/ ← shared UI (shadcn wrappers, layout)
├── lib/
│ ├── query.ts ← QueryClient config
│ ├── entity.ts ← entity graph config (configureEngine)
│ └── utils.ts ← cn() and other utilities
└── stores/ ← Zustand stores (UI-only state)
All React component files use .tsx. TypeScript-only files (hooks that return
no JSX, utilities, types) use .ts. Never use .jsx or .js.
// src/main.tsx
import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import { RouterProvider } from '@tanstack/react-router'
import { QueryClientProvider } from '@tanstack/react-query'
import { queryClient } from './lib/query'
import { router } from './router'
import { configureEngine } from '@prometheus-ags/prometheus-entity-management'
// Configure entity graph engine once at startup
configureEngine({ staleTime: 30_000, gcTime: 300_000 })
createRoot(document.getElementById('root')!).render(
<StrictMode>
<QueryClientProvider client={queryClient}>
<RouterProvider router={router} />
</QueryClientProvider>
</StrictMode>
)
// src/routes/entities/$entityId.tsx
import { createFileRoute } from '@tanstack/react-router'
import { useEntity } from '@prometheus-ags/prometheus-entity-management'
export const Route = createFileRoute('/entities/$entityId')({
component: EntityDetailPage,
})
function EntityDetailPage() {
const { entityId } = Route.useParams()
const { data, isLoading } = useEntity<Post, Post>({
type: 'Post',
id: entityId,
fetch: (id) => api.posts.get(id),
normalize: (raw) => raw,
})
if (isLoading) return <div>Loading…</div>
return <div>{data?.title}</div>
}
Use useQuery for data that doesn't need cross-view normalization (user prefs,
config, system status). Use prometheus-entity-management for anything with a
type + id identity that appears in multiple places.
import { useQuery } from '@tanstack/react-query'
export function useSystemStatus() {
return useQuery({
queryKey: ['system', 'status'],
queryFn: () => api.system.status(),
staleTime: 10_000,
refetchInterval: 30_000,
})
}
import { useReactTable, getCoreRowModel, flexRender } from '@tanstack/react-table'
import { useEntityView } from '@prometheus-ags/prometheus-entity-management'
import { textColumn, actionsColumn } from '@prometheus-ags/prometheus-entity-management'
const columns = [
textColumn<Post>({ id: 'title', header: 'Title', accessorKey: 'title' }),
textColumn<Post>({ id: 'status', header: 'Status', accessorKey: 'status' }),
actionsColumn<Post>({ onEdit, onDelete }),
]
export function PostsTable() {
const { items } = useEntityView<Post>({
type: 'Post',
queryKey: ['posts'],
fetch: (p) => api.posts.list(p),
normalize: (row) => ({ id: row.id, data: row }),
})
const table = useReactTable({
data: items,
columns,
getCoreRowModel: getCoreRowModel(),
})
return (
<table>
{table.getHeaderGroups().map(hg => (
<tr key={hg.id}>
{hg.headers.map(h => (
<th key={h.id}>{flexRender(h.column.columnDef.header, h.getContext())}</th>
))}
</tr>
))}
{table.getRowModel().rows.map(row => (
<tr key={row.id}>
{row.getVisibleCells().map(cell => (
<td key={cell.id}>{flexRender(cell.column.columnDef.cell, cell.getContext())}</td>
))}
</tr>
))}
</table>
)
}
Use Zustand only for ephemeral UI state that is not server-derived (sidebar open/close, selected tab, unsaved form draft before entity mutation). Never duplicate server data in Zustand — that's what the entity graph is for.
import { create } from 'zustand'
interface UIStore {
sidebarOpen: boolean
setSidebarOpen: (open: boolean) => void
}
export const useUIStore = create<UIStore>((set) => ({
sidebarOpen: false,
setSidebarOpen: (open) => set({ sidebarOpen: open }),
}))
shadcn/ui components live in src/components/ui/ (generated by shadcn CLI).
Wrap them in feature-specific components — never use shadcn primitives directly
in page components.
// src/components/ui/data-table.tsx — wrapper, not a raw shadcn import
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from './table'
// src/features/posts/PostsTable.tsx — uses the wrapper
import { DataTable } from '@/components/ui/data-table'
.jsx file extensions — always .tsx for React componentsimport React from 'react' — not needed in React 19// @ts-ignore — fix the type errorany type — use unknown and narrow, or define explicit typesWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
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./agent-team-handoffPrepare and accept a durable handoff between agent roles or coding harnesses using task context, Git identity, evidence and memory references. Use when work must continue in another harness or agent; use agent-team-manage for ordinary same-owner task updates. Do not use for ordinary same-owner task updates (see agent-team-manage)./agent-team-manageManage an existing agent team's active task state: assign dependencies and owners, track evidence, cancel or reassign work, and reconcile KBD-linked completion. Use agent-team-creator for definition creation, versioned maintenance, native export, and UAR catalog deployment./agent-team-modelsDiscover configured models and choose explicit capability, strength and cost policies at team, role, skill and task levels. Use when selecting models or controlling an agent team budget; use agent-team-creator for role discovery. Unknown prices and capabilities remain unknown. Do not use for role selection (see agent-team-creator).2 plugins in one repository ship this exact skill · first indexed Nov 27, 2026