/prometheus-react-skills:entity-graph-prismafrom prometheus-react-skills
Analyze schema.prisma and integrate Prisma-backed APIs with @prometheus-ags/prometheus-entity-management: TypeScript entity shapes, registerSchema relation graphs, createPrismaEntityConfig for REST list/detail/CRUD, toPrismaWhere/toPrismaOrderBy from FilterSpec, Next.js App Router CRUD routes, and migration from ad-hoc Prisma calls to the library’s adapter patterns. Optional prisma-entity-graph-generator for codegen.
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.
This skill connects Prisma ORM (server-side) to the client entity graph via REST (or similar HTTP) APIs that accept Prisma-shaped where / orderBy query parameters — the pattern implemented in createPrismaEntityConfig (src/adapters/prisma.ts).
useEntity, useEntityList, useEntityView, useEntityCRUD.fetch + local React state with graph-backed hooks while keeping Prisma on the server.| Export | Role |
|---|---|
createPrismaEntityConfig | Builds entity, list, crud, and schemas() for Prisma-style JSON query params |
toPrismaWhere / toPrismaOrderBy | Compile FilterSpec / SortSpec → Prisma filter objects (src/view/prisma-compile.ts) |
registerSchema | Register relation graph for cascade invalidation (src/crud/relations.ts) |
| Command | Purpose |
|---|---|
/entity-prisma-setup | End-to-end: parse schema → types → config → register schemas |
/entity-prisma-generator | Install/configure prisma-entity-graph-generator |
/entity-prisma-api | Next.js Route Handlers using PrismaClient + where/orderBy from query |
/entity-prisma-migrate | Refactor manual Prisma usage → createPrismaEntityConfig |
Use prompts/specify.md → plan.md → execute.md → reflect.md → persist.md.
Never import @prisma/client in client-side React bundles. Prisma runs on the server (Route Handlers, Server Actions, Node API). The browser uses hooks + HTTP only.
Use pnpm in this monorepo.
AGENTS.md (opens in a new tab)CLAUDE.md (opens in a new tab)agents/api-scaffolder.md (opens in a new tab)agents/schema-parser.md (opens in a new tab)agents/type-generator.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/generator-guide.md (opens in a new tab)references/prisma-mapping.md (opens in a new tab)references/transport-adapters.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
28 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-Other plugins' skills for the same job
npx claudepluginhub prometheus-ags/prometheus-skill-system --plugin prometheus-react-skills2 plugins in one repository ship this exact skill · first indexed Nov 27, 2026