prisma-setup

Configures Next.js applications with Prisma Postgres using Prisma ORM v7 patterns.

5|Updated Feb 15, 2026
One-click install
npx skills add https://github.com/sujaykundu777/mission-control --skill prisma-setup-sujaykundu777
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prisma-setup
Source: https://github.com/sujaykundu777/mission-control/tree/main/.claude/skills/prisma-setup
Command: npx skills add https://github.com/sujaykundu777/mission-control --skill prisma-setup-sujaykundu777

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires prisma, @prisma/client, @prisma/adapter-pg, dotenv, tsx.

What problem does it solve? Setting up Prisma ORM v7 with Next.js involves breaking changes from earlier versions, and outdated code patterns cause client generation failures, import errors, and connection issues. This Skill enforces the correct v7 configuration so the database layer works on the first attempt. ## Core Features & Use Cases - Correct v7 Configuration: Enforces the prisma-client generator, custom output path, @prisma/adapter-pg driver adapter, and prisma.config.ts datasource setup while banning deprecated patterns like prisma-client-js and Accelerate URLs. - Complete Setup Workflow: Walks through dependency installation, npx prisma init, npx create-db for a real Prisma Postgres database, schema modeling, client generation, and schema push. - Verification & Testing: Provides a scripts/test-database.ts script, npm scripts (db:test, db:studio), and example API routes and server components with proper error handling. - Use Case: When bootstrapping a new Next.js app that needs a Postgres database, use this Skill to scaffold Prisma v7 correctly, create a cloud database, and verify the connection with a working test script. ## Quick Start Set up Prisma Postgres in my Next.js app following the prisma-setup guidelines and verify the connection with a test script.

Frequently Asked Questions about prisma-setup

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

FAQPage Schema
How do I set up Prisma with Next.js App Router?

Install prisma and tsx as dev dependencies plus @prisma/adapter-pg, @prisma/client, and dotenv, then run npx prisma init with a custom output path and npx create-db for a Prisma Postgres database. Create a global Prisma client singleton in lib/prisma.ts using the PrismaPg adapter, push the schema, and generate the client.

What changed in Prisma ORM v7 configuration?

Prisma v7 removes the engine property from prisma.config.ts, moves the datasource url out of schema.prisma into prisma.config.ts, and replaces the prisma-client-js generator with prisma-client using a custom output path. It also requires the @prisma/adapter-pg driver adapter for direct TCP connections.

Why does importing PrismaClient from @prisma/client fail in Prisma v7?

Prisma v7 generates the client to a custom output directory instead of node_modules, so the default @prisma/client import no longer resolves. You must import from the generated path including the /client suffix, such as ../app/generated/prisma/client.

Can I use Prisma Accelerate URLs with the Prisma v7 adapter setup?

No, this workflow does not use Accelerate. You must use standard TCP postgres:// connection strings returned by npx create-db, not prisma+postgres:// HTTP URLs, and you must not use accelerateUrl or the withAccelerate extension.

What Node.js version does Prisma ORM v7 require?

Prisma v7 requires Node.js 20.19 or higher; Node.js 18 is not supported. It also requires TypeScript 5.4.0 or higher, with 5.9.x recommended.