mcpbeat Sign in

Prisma Database Setup Prisma Client Setup Skill for Cursor

Prisma Client Setup. Reference when using this Prisma feature.

378 tokens
context cost
the whole folder, loaded on every use
2
files
instructions only
0
copies elsewhere
how many repositories repackaged it
8
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/prisma/cursor-plugin --skill prisma-database-setup-prisma-client-setup

What comes with it

121 bytes besides the instruction
metadata.json

The instruction itself

6 sections, as written by the author

Prisma Client Setup

Generate and instantiate Prisma Client for any database provider.

1. Install dependencies

npm install prisma --save-dev
npm install @prisma/client

2. Add generator block

In prisma/schema.prisma:

generator client {
  provider = "prisma-client"
  output   = "../generated"
}

Prisma v7 requires an explicit output path and will not generate into node_modules by default.

3. Generate Prisma Client

npx prisma generate

Re-run prisma generate after every schema change to keep the client in sync.

4. Instantiate Prisma Client

import { PrismaClient } from '../generated/client'
import { PrismaPg } from '@prisma/adapter-pg'

const adapter = new PrismaPg({ connectionString: process.env.DATABASE_URL })
const prisma = new PrismaClient({ adapter })

If you change the generator output, update the import path to match. In Prisma ORM 7, a driver adapter is required — replace PrismaPg with the adapter for your database.

5. Use a single instance

Each PrismaClient instance creates a connection pool. Reuse a single instance per app process to avoid exhausting database connections.

How to use it

Copy the folder

Take prisma/prisma-database-setup-prisma-client-setup from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.

Install what it needs

The instructions reference npm, npx. Without those the skill loads but fails at the first command.