/prometheus-react-skills:entity-graph-crudfrom prometheus-react-skills
Generate complete CRUD screens for any entity type using @prometheus-ags/prometheus-entity-management hooks and UI components. Analyzes entity shape, produces column definitions (TanStack Table + entityMeta), FieldDescriptor-based forms, EntityDetailSheet / EntityFormSheet wiring, and registerSchema + cascade invalidation—all strictly following Components → Hooks → Stores → APIs data flow.
Ships in prometheus-react-skills. 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; scripts run unread.
Deliver production-ready CRUD surfaces (list, create, edit, detail, delete) for entities backed by @prometheus-ags/prometheus-entity-management. The graph is the single source of truth; lists hold IDs only; mutations flow through hooks and callbacks so every view stays globally reactive.
useEntityCRUDregisterSchema and cascade rules so related lists and detail joins stay consistent after mutationsuseState rows with normalized graph readsInvoke the focused playbook when scope is narrow:
| Route | Focus |
|---|---|
/entity-crud-page | Full page: list + selection + detail + create/edit + delete |
/entity-crud-form | EntityFormSheet / EntityDetailSheet + FieldDescriptor[] + buffer wiring |
/entity-crud-table | EntityTable + columns.tsx helpers + filters/sort metadata aligned with useEntityView |
/entity-crud-relations | registerSchema, belongsTo / hasMany / manyToMany, listKeyPrefix, invalidation keys |
Each route maps to prometheus-entity-skills/entity-graph-crud/skills/<name>/SKILL.md.
prompts/specify.md — Interview: entity shape, fields, relations, API surface, UI preferences → entity_spec.prompts/plan.md — File map, hook wiring, component tree, column/form plans, schema registration.prompts/execute.md — Generate code per CLAUDE.md (strict layering).prompts/reflect.md — Architecture grep + pnpm run typecheck (+ example app scripts).prompts/persist.md — Merge artifacts; optional state-init.sh; handoff notes.From the consuming workspace root (paths assume the prometheus repo layout; adjust if vendored):
bash prometheus-entity-skills/entity-graph-crud/scripts/detect-orchestrators.sh
Emits JSON: kbd, evolver, refiner, openspec availability flags for follow-up automation.
| Area | Exports |
|---|---|
| CRUD orchestration | useEntityCRUD, CRUDOptions, CRUDState, CRUDMode, DirtyFields |
| List + view | useEntityView, ViewDescriptor, FilterSpec, SortSpec, toRestParams |
| Relations | registerSchema, getSchema, cascadeInvalidation, readRelations, EntitySchema |
| UI | EntityTable, EntityDetailSheet, EntityFormSheet, Sheet, column builders, SortHeader |
| Single entity | useEntity (detail subscription inside useEntityCRUD when detailFetch provided) |
references/crud-patterns.md — Patterns A–E and anti-patternsreferences/ui-component-catalog.md — Props and composition cheat sheetCLAUDE.md — Non-negotiable layering for this skillAGENTS.md — Agent behavior, read order, quality gatepnpm only where the repo or consumer policy requires it (this monorepo: pnpm).useGraphStore or call fetch / GraphQL clients directly.normalize(raw) => { id, data } for list rows, detail, and mutation results.AGENTS.md (opens in a new tab)CLAUDE.md (opens in a new tab)agents/form-builder.md (opens in a new tab)agents/relation-wirer.md (opens in a new tab)agents/table-builder.md (opens in a new tab)hooks/hooks.json (opens in a new tab)prompts/execute.md (opens in a new tab)prompts/persist.md (opens in a new tab)prompts/plan.md (opens in a new tab)prompts/reflect.md (opens in a new tab)prompts/specify.md (opens in a new tab)references/crud-patterns.md (opens in a new tab)references/ui-component-catalog.md (opens in a new tab)scripts/detect-orchestrators.sh (opens in a new tab)scripts/state-init.sh (opens in a new tab)What 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-react-skills28 skills in this plugin
/entity-auditSlash command /entity-audit — run full codebase audit against @prometheus-ags/prometheus-entity-management CLAUDE.md rules: component/store boundaries, hook I/O, registerSchema coverage, JSDoc on public hooks, and realtime/list patterns. Produces a severitized report using references/audit-checklist.md.
/entity-crud-formBuild EntityFormSheet and EntityDetailSheet configurations from FieldDescriptor arrays: field types, enum options, readonly/create/edit flags, custom editControl/render, and wiring to useEntityCRUD buffers and actions.
/entity-crud-pageScaffold a full CRUD page (list, create, edit, detail, delete) using useEntityCRUD with EntityTable, EntityDetailSheet, and EntityFormSheet. Enforces Components → Hooks → Stores: page composes only; useXxxCRUD hook wraps library CRUD; API module holds fetch/mutations.
/entity-crud-relationsRegister EntitySchema graphs with registerSchema: belongsTo, hasMany, manyToMany, listKeyPrefix alignment, invalidateTargetLists, globalListKeys, and verification that cascadeInvalidation matches list query keys.
/entity-crud-tableBuild EntityTable views with column helpers (textColumn, numberColumn, enumColumn, etc.), SortHeader, selectionColumn, and meta.entityMeta for filters; sync sorting and search with useEntityView via UseEntityViewResult.
/entity-gcSlash command /entity-gc — design application-level eviction for @prometheus-ags/prometheus-entity-management: removeEntity for stale entities, clearPatch for UI overlays, list refresh after bulk delete, route-based cleanup, and policies for long-lived sessions. Notes library has no automatic GC yet.
2 plugins in one repository ship this exact skill · first indexed Nov 27, 2026