prisma-v7listed
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