prisma-orm
Installation
SKILL.md
Prisma ORM (v7)
You declare a data model in schema.prisma, generate a type-safe client, and query it
without the foot-guns: N+1, over-fetch, unbounded reads. This skill is Prisma 7-native.
If you are writing prisma-client-js, binaryTargets, or new PrismaClient() with no
adapter, you are writing v6 — stop and read the upgrade notes.
Decide first
Prisma is a schema DSL (schema.prisma) + a generated type-safe client + Prisma Migrate.
The rival, Drizzle, is schema-as-TypeScript with a SQL builder and no codegen — if the
ask says pgTable, drizzle-kit, or drizzle.config.ts, that is ../drizzle-orm/SKILL.md,
not here.
Prisma 7 has four non-negotiables. Get these wrong and nothing runs: