/prometheus-skill-pack:entity-prisma-apifrom prometheus-skill-pack
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-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.
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
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 in one repository ship this exact skill · first indexed Nov 27, 2026