# prisma-orm-v7-skills

This skill guides Prisma ORM 7 upgrades and troubleshooting, with a checklist of changes to account for before regenerating Prisma Client.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 1000 installs · ★ 23
- Author: gocallum
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/gocallum/nextjs16-agent-skills/tree/HEAD/skills/prisma-orm-v7-skills/SKILL.md
- Updated: 2026-01-21
- HTML: https://affpapa.org/en/nevibecode/skills/prisma-orm-v7-skills

## What it does

The skill covers Prisma ORM 7 migration requirements, including ESM, the `prisma-client` generator with an explicit `output`, and CLI settings in `prisma.config.ts`. It also explains that client creation needs a driver adapter and that environment variables must be loaded explicitly. Prisma CLI no longer loads `.env` files on its own.

Generation and seeding are now explicit steps: `prisma migrate dev` and `prisma db push` do not generate the client automatically. The skill also addresses replacing `prisma.$use(...)` with client extensions and handling Prisma Accelerate URLs. MongoDB is not supported in Prisma ORM 7, so an application that depends on it needs to stay on version 6.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add gocallum/nextjs16-agent-skills --skill prisma-orm-v7-skills -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/prisma-orm-v7-skills/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/prisma-orm-v7-skills/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add gocallum/nextjs16-agent-skills --skill prisma-orm-v7-skills -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/prisma-orm-v7-skills/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add gocallum/nextjs16-agent-skills --skill prisma-orm-v7-skills -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/prisma-orm-v7-skills/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install gocallum/nextjs16-agent-skills prisma-orm-v7-skills
```

2. **Manually: put the files in place**
- File: `.github/skills/prisma-orm-v7-skills/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add gocallum/nextjs16-agent-skills --skill prisma-orm-v7-skills -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/gocallum/nextjs16-agent-skills --path skills/prisma-orm-v7-skills
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/prisma-orm-v7-skills/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add gocallum/nextjs16-agent-skills --skill prisma-orm-v7-skills -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/gocallum/nextjs16-agent-skills/tree/HEAD/skills/prisma-orm-v7-skills/SKILL.md

## When to use it
- check a project for Prisma ORM 7 migration requirements
- update the client generator and generated import path
- move datasource settings into `prisma.config.ts`
- find why a migration did not generate Prisma Client
- adapt middleware and seeding workflows for version 7

## Example prompts
- Review my project for Prisma ORM 7 migration issues and outline the required changes.
- Explain how to update the Prisma Client generator and imports for version 7.
- Why did `prisma migrate dev` leave Prisma Client ungenerated, and what should I run?

## Similar
- [xlsx](https://affpapa.org/en/nevibecode/skills/xlsx.md) — skill · 187223 installs
- [google-agents-cli-observability](https://affpapa.org/en/nevibecode/skills/google-agents-cli-observability.md) — skill · 511300 installs
- [caveman-evidence-review](https://affpapa.org/en/nevibecode/skills/caveman-evidence-review.md) — skill · 104500 installs
- [migration](https://affpapa.org/en/nevibecode/skills/migration.md) — skill · 103900 installs
- [performance-optimization](https://affpapa.org/en/nevibecode/skills/performance-optimization.md) — skill · 65200 installs
- [supabase](https://affpapa.org/en/nevibecode/skills/supabase.md) — skill · 8 installs

From the same set: [gocallum/nextjs16-agent-skills](https://affpapa.org/en/nevibecode/by/gocallum/nextjs16-agent-skills.md) — 6 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
