What problem does it solve?
This Skill solves the problem of setting up Prisma ORM to connect to the correct database provider, generate the Prisma Client, and troubleshoot connection and configuration issues across PostgreSQL, MySQL, SQLite, SQL Server, CockroachDB, and Prisma Postgres.
Core Features & Use Cases
- Provider-specific Prisma setup: Choose the right
provider value, generator output, and environment variable format for your database.
- Prisma ORM v7 driver adapter guidance: Configure the required driver adapter and instantiate
PrismaClient using provider-appropriate adapters.
- End-to-end client generation checklist: Install Prisma packages, update
schema.prisma (and prisma.config.ts), then run prisma generate after schema changes.
- Use case examples:
- Switching an existing project from PostgreSQL to MySQL while keeping Prisma Client generation working.
- Resolving “can’t reach database server” or “schema does not exist” by correcting connection string details.
- Using CockroachDB with the PostgreSQL wire protocol while ensuring
provider = "cockroachdb" for correct type mapping.
- Setting up SQLite with the correct
file: URL and adapter configuration.
Quick Start
Ask your AI assistant: “Set up Prisma for PostgreSQL using Prisma ORM 7, using DATABASE_URL from my .env, and show the exact schema.prisma generator output plus the adapter-based PrismaClient instantiation.”