/prometheus-react-skills:entity-prisma-apifrom prometheus-react-skills
Slash command /entity-prisma-api — scaffold Next.js App Router API routes with Prisma Client for list/detail/create/update/delete, decoding where/orderBy JSON from createPrismaEntityConfig list fetchers with allowlisted filters.
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.
None: SKILL.md is the whole skill.
lib/prisma.ts singletonsafeParseWhere, safeParseOrderBy, parseBodyapp/api/tasks/route.ts)GET → findMany + countPOST → createapp/api/tasks/[id]/route.ts)GET → findUniquePATCH → updateDELETE → deleteimport { NextResponse } from "next/server";
import { prisma } from "@/lib/prisma";
import { allowlistedWhere, allowlistedOrderBy } from "@/lib/prisma-query";
export async function GET(req: Request) {
const { searchParams } = new URL(req.url);
const whereRaw = searchParams.get("where");
const orderRaw = searchParams.get("orderBy");
const page = Number(searchParams.get("page") ?? "1");
const pageSize = Math.min(Number(searchParams.get("pageSize") ?? "20"), 100);
const where = allowlistedWhere("Task", whereRaw);
const orderBy = allowlistedOrderBy("Task", orderRaw);
const [items, total] = await Promise.all([
prisma.task.findMany({
where,
orderBy,
skip: (page - 1) * pageSize,
take: pageSize,
}),
prisma.task.count({ where }),
]);
return NextResponse.json({ items, total, currentPage: page, pageSize });
}
Implement allowlistedWhere / allowlistedOrderBy per model (parse JSON safely, reject unknown keys and deep nesting). Never pass arbitrary client JSON to Prisma.
Mirror listSearchParams from library:
where — JSON stringorderBy — JSON stringpage, pageSize, cursor as neededReturn JSON compatible with readListResponse:
{ "items": [...], "total": 42, "nextCursor": "..." }
where merge server-sideSee agents/api-scaffolder.md.
What SKILL.md sets; muted values are Claude Code's defaults
2 plugins in one repository ship this exact skill · first indexed Nov 27, 2026
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-skills