Help us improve
Share bugs, ideas, or general feedback.
From fuse-nextjs
Prisma 7 ORM with Rust-free client, 90% smaller bundles, TypedSQL, Omit API, and ESM-first architecture. Use when working with database, schema, migrations, queries, or relations.
npx claudepluginhub fusengine/agents --plugin fuse-nextjsHow this skill is triggered — by the user, by Claude, or both
Slash command
/fuse-nextjs:prisma-7The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Rust-free TypeScript ORM with 90% smaller bundles and 3x faster queries.
100-getting-started/02-prisma-orm/100-quickstart/100-prisma-postgres.md100-getting-started/02-prisma-orm/100-quickstart/200-sqlite.md100-getting-started/02-prisma-orm/100-quickstart/300-postgresql.md100-getting-started/02-prisma-orm/100-quickstart/400-mysql.md100-getting-started/02-prisma-orm/100-quickstart/500-sql-server.md100-getting-started/02-prisma-orm/100-quickstart/600-planetscale.md100-getting-started/02-prisma-orm/100-quickstart/700-cockroachdb.md100-getting-started/02-prisma-orm/100-quickstart/800-mongodb.md100-getting-started/02-prisma-orm/200-add-to-existing-project/100-prisma-postgres.md100-getting-started/02-prisma-orm/200-add-to-existing-project/200-sqlite.md100-getting-started/02-prisma-orm/200-add-to-existing-project/300-postgresql.md100-getting-started/02-prisma-orm/200-add-to-existing-project/400-mysql.md100-getting-started/02-prisma-orm/200-add-to-existing-project/500-sql-server.md100-getting-started/02-prisma-orm/200-add-to-existing-project/600-planetscale.md100-getting-started/02-prisma-orm/200-add-to-existing-project/700-cockroachdb.md100-getting-started/02-prisma-orm/200-add-to-existing-project/800-mongodb.md100-getting-started/03-prisma-postgres/100-from-the-cli.md100-getting-started/03-prisma-postgres/100-quickstart/100-kysely.md100-getting-started/03-prisma-postgres/100-quickstart/200-drizzle-orm.md100-getting-started/03-prisma-postgres/100-quickstart/300-typeorm.mdUpdates Claude on Prisma 5.19+ to 7.3 changes: v7 ESM rewrite, prisma-client generator, driver adapters, prisma.config.ts, TypedSQL, SQL comments. Load before Prisma projects.
Provides fast reference for Prisma 5+ ORM: schema design, migrations, type-safe CRUD, relations, transactions, error handling, testing, and integrations with Supabase, PlanetScale, Neon for TypeScript/JavaScript database access.
Provides expert guidance on Prisma ORM schema design, migrations, query optimization, relations modeling, and database operations for PostgreSQL, MySQL, SQLite.
Share bugs, ideas, or general feedback.
Rust-free TypeScript ORM with 90% smaller bundles and 3x faster queries.
Before ANY implementation, use TeamCreate to spawn 3 agents:
After implementation, run fuse-ai-pilot:sniper for validation.
| Feature | Benefit |
|---|---|
| Rust-free client | 90% smaller bundles (14MB → 1.6MB) |
| Query performance | Up to 3x faster on large datasets |
| ESM-first | Native ES modules, modern architecture |
| TypedSQL | Type-safe raw SQL queries |
| Omit API | Exclude sensitive fields globally |
| Driver adapters | Direct database driver integration |
| Change | v6 | v7 |
|---|---|---|
| Provider | prisma-client-js | prisma-client |
| Output path | Optional | REQUIRED |
| Import | @prisma/client | ./generated/prisma/client |
| Drivers | Built-in | Adapter required |
| Config | Schema only | prisma.config.ts |
Provider must be prisma-client with explicit output path. No more generation to node_modules.
PostgreSQL requires @prisma/adapter-pg, MySQL requires @prisma/adapter-mariadb, SQLite requires @prisma/adapter-better-sqlite3.
Database code organized in modules/cores/db/:
modules/cores/db/prisma.ts - Singleton PrismaClientmodules/cores/db/generated/ - Generated clientprisma/schema.prisma - Schema definitionprisma/migrations/ - Migration historyprisma.config.ts - Prisma configuration| File | Purpose | Max Lines |
|---|---|---|
prisma.ts | Singleton client | 30 |
schema.prisma | Models, relations | 100 per section |
seed.ts | Database seeding | 50 |
Prevent multiple PrismaClient instances during hot-reload. Use globalThis to cache instance in development.
Generated client goes to custom path, not node_modules. Import from generated folder.
Direct database driver integration for better performance and control. Configure connection pooling at driver level.
Write raw SQL with full type safety. Results are typed based on query.
Exclude fields globally or per-query. Perfect for passwords and sensitive data.
| Need | Reference |
|---|---|
| Initial setup | installation.md |
| PrismaClient singleton | client.md |
| Client API methods | client-api.md |
| Configuration | prisma-config.md |
| CLI commands | cli-reference.md |
| Editor setup | editor-setup.md |
| Need | Reference |
|---|---|
| Schema design | schema.md |
| Schema syntax | schema-reference.md |
| Data modeling | data-modeling.md |
| Field attributes | field-attributes.md |
| Model attributes | model-attributes.md |
| Enums | enums.md |
| Default values | default-values.md |
| Composite types | composite-types.md |
| Scalar lists/arrays | scalar-lists.md |
| Referential actions | referential-actions.md |
| Need | Reference |
|---|---|
| CRUD operations | queries.md |
| Relations | relations.md |
| Filtering | filtering.md |
| Sorting | sorting.md |
| Select vs Include | select-include.md |
| Pagination (cursor) | pagination-cursor.md |
| Pagination (offset) | pagination-offset.md |
| Distinct | distinct.md |
| Count & exists | count-exists.md |
| Case sensitivity | case-sensitivity.md |
| Aggregations | aggregations.md |
| Transactions | transactions.md |
| Need | Reference |
|---|---|
| TypedSQL | typedsql.md |
| Raw queries | raw-queries.md |
| JSON fields | json-fields.md |
| Full-text search | full-text-search.md |
| Views | views.md |
| Stored procedures | stored-procedures.md |
| Triggers | triggers.md |
| Constraints | constraints.md |
| Advanced indexes | indexes-advanced.md |
| Need | Reference |
|---|---|
| Migration workflow | migrations.md |
| Seeding | seeding.md |
| Baselining | baselining.md |
| Shadow database | shadow-database.md |
| Migration history | migration-history.md |
| Squashing | squashing.md |
| Hotfixing | hotfixing.md |
| Down migrations | down-migrations.md |
| Data migrations | data-migrations.md |
| Zero-downtime | zero-downtime.md |
| Need | Reference |
|---|---|
| Optimization | optimization.md |
| Query optimization | query-optimization.md |
| N+1 problem | n-plus-one.md |
| Batching | batching.md |
| Lazy loading | lazy-loading.md |
| Caching strategies | caching-strategies.md |
| Connection limits | connection-limits.md |
| Cold starts | cold-starts.md |
| Bundle size | bundle-size.md |
| Accelerate | accelerate.md |
| Connection pooling | connection-pooling.md |
| Need | Reference |
|---|---|
| Connection URLs | connection-urls.md |
| Environment variables | environment-variables.md |
| SSL/TLS | ssl-tls.md |
| SQL injection | sql-injection.md |
| Row-level security | row-level-security.md |
| Encryption | encryption.md |
| Audit logging | audit-logging.md |
| GDPR compliance | gdpr-compliance.md |
| Need | Reference |
|---|---|
| PostgreSQL | postgresql.md |
| MySQL | mysql.md |
| SQLite | sqlite.md |
| MongoDB (deprecated) | mongodb.md |
| CockroachDB | cockroachdb.md |
| PlanetScale | planetscale.md |
| Supabase | supabase.md |
| Neon | neon.md |
| Turso | turso.md |
| Need | Reference |
|---|---|
| Extensions | extensions.md |
| Driver adapters | driver-adapters.md |
| Omit API | omit-api.md |
| Middleware (deprecated) | middleware.md |
| Soft delete | soft-delete.md |
| Read replicas | read-replicas.md |
| Multi-database | multi-database.md |
| Multi-schema | multi-schema.md |
| Need | Reference |
|---|---|
| Next.js | nextjs-integration.md |
| Astro | astro.md |
| Nuxt | nuxt.md |
| SvelteKit | sveltekit.md |
| SolidStart | solidstart.md |
| Remix | remix.md |
| React Router | react-router.md |
| Hono | hono.md |
| Express | express.md |
| Need | Reference |
|---|---|
| Clerk | clerk.md |
| Auth.js | authjs.md |
| Better Auth | betterauth.md |
| Permit.io | permit-io.md |
| Need | Reference |
|---|---|
| Deployment guide | deployment.md |
| Vercel | vercel.md |
| Netlify | netlify.md |
| Railway | railway.md |
| Render | render.md |
| Fly.io | flyio.md |
| AWS Lambda | aws-lambda.md |
| Cloudflare Workers | cloudflare-workers.md |
| Docker | docker.md |
| Heroku | heroku.md |
| Deno Deploy | deno-deploy.md |
| Need | Reference |
|---|---|
| VS Code | vscode.md |
| GitHub Copilot | github-copilot.md |
| Tabnine | tabnine.md |
| SafeQL | safeql.md |
| Prisma AI | prisma-ai.md |
| MCP Server | mcp-server.md |
| Turborepo | turborepo.md |
| pnpm workspaces | pnpm-workspaces.md |
| Need | Reference |
|---|---|
| Error handling | error-handling.md |
| Error codes | error-codes.md |
| Logging | logging.md |
| OpenTelemetry | opentelemetry.md |
| DataDog | datadog.md |
| Studio | studio.md |
| Testing | testing.md |
| Need | Reference |
|---|---|
| vs TypeORM | vs-typeorm.md |
| vs Sequelize | vs-sequelize.md |
| vs Drizzle | vs-drizzle.md |
| vs Mongoose | vs-mongoose.md |
| vs Kysely | vs-kysely.md |
| Need | Reference |
|---|---|
| From TypeORM | migrate-from-typeorm.md |
| From Sequelize | migrate-from-sequelize.md |
| From Drizzle | migrate-from-drizzle.md |
| Pattern | Reason | Alternative |
|---|---|---|
Import from @prisma/client | v7 requires generated path | Import from ./generated/prisma/client |
prisma-client-js provider | Deprecated in v7 | Use prisma-client |
| No output path | Required in v7 | Set output in generator |
| MongoDB | Not supported in v7.0-7.3 | Stay on Prisma 6 |
| url in datasource | Deprecated | Use prisma.config.ts |