← ClaudeAtlas

prisma-v7listed

Expert guidance for Prisma ORM v7 (7.0+). Use when working with Prisma schema files, migrations, Prisma Client queries, database setup, or when the user mentions Prisma, schema.prisma, @prisma/client, database models, or ORM. Covers ESM modules, driver adapters, prisma.config.ts, Rust-free client, and migration from v6.
aiskillstore/marketplace · ★ 329 · API & Backend · score 79
Install: claude install-skill aiskillstore/marketplace
# Prisma ORM v7 Expert Skill Comprehensive guidance for working with Prisma ORM version 7.x and later. ## Core v7 Changes ### 1. ES Modules (ESM) Required Prisma v7 ships as an ES module. Your project must use ESM: **package.json:** ```json { "type": "module" } ``` **tsconfig.json:** ```json { "compilerOptions": { "module": "ESNext", "moduleResolution": "Node", "target": "ES2023", "strict": true, "esModuleInterop": true } } ``` ### 2. Driver Adapters Required All databases now require driver adapters. The Rust-free client provides better performance and smaller bundle sizes. **Available Adapters:** - PostgreSQL: `@prisma/adapter-pg` (with `pg` driver) - MySQL/MariaDB: `@prisma/adapter-mariadb` (with `mariadb` driver) - SQLite: `@prisma/adapter-better-sqlite3` (with `better-sqlite3`) - CockroachDB: `@prisma/adapter-pg` (with `pg` driver) - Neon: `@prisma/adapter-neon` (with `@neondatabase/serverless`) - PlanetScale: `@prisma/adapter-planetscale` (with `@planetscale/database`) - D1 (Cloudflare): `@prisma/adapter-d1` - MSSQL: `@prisma/adapter-mssql` ### 3. Generator Configuration The `output` field is now **required** and the new `prisma-client` provider is standard: ```prisma generator client { provider = "prisma-client" output = "./generated/prisma" } ``` Note: Client is no longer generated in `node_modules` by default. ### 4. Prisma Config File (prisma.config.ts) Database URLs and CLI configuration now live in `prisma.config.ts` inst