prisma-upgrade-v7

Migrates Prisma ORM projects from v6 to v7 across all breaking changes.

Updated Aug 1, 2026
One-click install
npx skills add https://github.com/jpmartirez/kilatis --skill prisma-upgrade-v7-jpmartirez
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prisma-upgrade-v7
Source: https://github.com/jpmartirez/kilatis/tree/main/frontend/.windsurf/skills/prisma-upgrade-v7
Command: npx skills add https://github.com/jpmartirez/kilatis --skill prisma-upgrade-v7-jpmartirez

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Upgrading from Prisma ORM v6 to v7 introduces breaking changes around the new prisma-client generator, mandatory driver adapters, prisma.config.ts, explicit environment loading, and new generated client entrypoints, and this Skill guides the full migration without missing any step. ## Core Features & Use Cases - Step-by-step migration path: Covers package updates, ESM or CommonJS module format selection, TypeScript configuration, schema generator changes, and client instantiation. - Driver adapter setup: Provides configuration for PostgreSQL, MySQL, SQLite, Neon, SQL Server, PlanetScale, Turso, D1, and Prisma Postgres adapters. - Removed feature replacements: Shows how to replace $use middleware with Client Extensions, Prisma.validator with TypeScript satisfies, and removed CLI flags with prisma.config.ts options. - Use Case: A team upgrading a Next.js app to Prisma 7 hits "Cannot find module" errors after regenerating the client; the Skill walks them through fixing the generator output path, imports, and adapter instantiation. ## Quick Start Ask the assistant to upgrade my project from Prisma 6 to Prisma 7 and fix the resulting import and driver adapter errors.

Frequently Asked Questions about prisma-upgrade-v7

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I upgrade Prisma from v6 to v7?

Update @prisma/client and prisma packages to version 7, switch the generator provider to prisma-client with an explicit output path, create prisma.config.ts, install a driver adapter for your SQL database, update client imports and instantiation, then run prisma generate.

What is a Prisma driver adapter and why is it required in v7?

A driver adapter connects Prisma Client to your database using native Node.js drivers instead of a bundled engine binary. In Prisma v7, adapters like @prisma/adapter-pg or @prisma/adapter-mariadb are required for all SQL providers.

Does Prisma 7 support MongoDB?

No, Prisma 7 has no MongoDB connector and no MongoDB driver adapter. MongoDB projects should stay on the latest Prisma 6.x release or migrate to Prisma Next instead of following the v7 SQL migration path.

Why do I get Cannot find module errors after upgrading Prisma?

This usually means the generator output path does not match your import path, or prisma generate was not run after the schema change. Verify the output field in the generator block and regenerate the client.

How do I replace Prisma middleware removed in v7?

The $use middleware API was removed in Prisma v7. Replace it with Client Extensions using $extends with a query component, which supports the same patterns such as logging, soft deletes, and query timing.

Can I use Prisma Accelerate with driver adapters in v7?

No, driver adapters expect direct database connection strings and fail with prisma:// or prisma+postgres:// URLs. For Accelerate, pass the URL via accelerateUrl on PrismaClient and apply the withAccelerate extension instead.