What problem does it solve?
This Skill prevents brittle Prisma 7 setups and production incidents by guiding you through correct schema modeling, migrations, client generation, and high-stakes query and transaction patterns.
Core Features & Use Cases
- Prisma 7 schema + modeling: define models, relations, indexes, enums, and safe defaults for production workloads.
- Migrations with drift protection: generate and deploy migrations safely using
prisma.config.ts, shadow DB, and custom SQL when Prisma can’t express constraints.
- Correct client usage at runtime: write efficient queries (
select vs include), safe raw SQL ($queryRaw), robust transactions ($transaction + P2034 retry), and edge/runtime-friendly adapters (PrismaPg/Neon/LibSQL/D1).
- Operational hardening: troubleshoot generated client issues, pool exhaustion (
P2024), ESM/CJS mismatch, adapter peer-dep mismatches, and common anti-patterns.
Quick Start
Ask your AI assistant: “Help me migrate my existing Prisma 6 project to Prisma 7 by moving datasource URL into prisma.config.ts, wiring the correct driver adapter, and updating the generator output/imports.”