What problem does it solve?
Prisma Next (Prisma 8) is a new contract-first data layer whose APIs evolve quickly, so AI agents and developers relying on outdated training knowledge produce broken code. This Skill ships version-accurate guidance inside the installed Prisma packages and routes every Prisma Next task to the correct reference file.
Core Features & Use Cases
- Task Routing: A routing table maps tasks — contract authoring, migrations, queries, runtime wiring, build integration, Supabase/RLS, debugging, upgrades, feedback — to dedicated reference files with verified workflows.
- Contract-First Workflows: Covers editing contract.prisma (PSL) or TypeScript builders, emitting contract.json/contract.d.ts, planning and applying migrations, and writing db.orm / db.sql queries.
- Structured Error Diagnosis: Routes PN-* error codes, runtime envelopes, and SQL driver errors to concrete fixes.
- Use Case: A developer asks their AI agent to add a pgvector embedding column and migrate the database; the agent opens the contract and migrations references, edits the contract source, re-emits, plans the migration, and applies it correctly for the installed Prisma version.
Quick Start
Ask your AI agent to help with any Prisma Next task, such as adding a model to your data contract or planning a migration, and it will consult the matching reference file before writing code.