---
title: "prisma-upgrade-v7 skill: migrate Prisma ORM 6 to 7 with an agent"
canonical_url: https://cookiesforai.app/skills/prisma/prisma-upgrade-v7
last_updated: 2026-10-02T01:45:26+02:00
type: skill
summary: "prisma-upgrade-v7 is Prisma's agent skill for upgrading a project from Prisma ORM 6 to 7, covering every breaking change: the new generator, driver adapters, prisma.config.ts, ESM and removed features."
install: "npx skills add prisma/skills --skill prisma-upgrade-v7"
related:
  - "https://cookiesforai.app/skills/wshobson/database-migration"
  - "https://cookiesforai.app/skills/neondatabase/neon-postgres"
  - "https://cookiesforai.app/skills/supabase/supabase-postgres-best-practices"
  - "https://cookiesforai.app/skills/supabase/supabase"
---

# Prisma upgrade to v7

prisma-upgrade-v7 is Prisma's agent skill for upgrading a project from Prisma ORM 6 to 7, covering every breaking change: the new generator, driver adapters, prisma.config.ts, ESM and removed features.

| Fact | Value |
|---|---|
| Publisher | Prisma (official, own GitHub account) |
| Source | https://github.com/prisma/skills/tree/HEAD/prisma-upgrade-v7 |
| License | MIT |
| Repository stars | 68 on 2026-10-02 |
| Skill name | prisma-upgrade-v7 |
| Version | 7.6.0 (from its SKILL.md, https://github.com/prisma/skills/blob/HEAD/prisma-upgrade-v7/SKILL.md, read 2026-10-02) |
| Category | Databases |
| Skill last changed | 2026-09-29 |
| Page updated | 2026-10-02 |
| Facts checked | 2026-10-02 |

## Install

Install this skill with the skills CLI:

```
npx skills add prisma/skills --skill prisma-upgrade-v7
```

## Ask your coding agent

A skill can include scripts that run on your computer, so read its source first: https://github.com/prisma/skills/tree/HEAD/prisma-upgrade-v7

```text
Install the agent skill prisma-upgrade-v7 from github.com/prisma/skills.
```

## What it does

prisma-upgrade-v7 is an agent skill from Prisma that takes an existing project from Prisma ORM 6 to Prisma ORM 7. It ranks the breaking changes by impact: schema and generator changes, driver adapters and the module system are critical, while config and environment loading, removed features and Accelerate are high. Each area has its own reference file that the agent reads when it reaches that step.

The prisma-upgrade-v7 skill lays the upgrade out in ten steps. The agent updates the packages, chooses ESM or keeps CommonJS with moduleFormat set to cjs, updates tsconfig, switches the generator to prisma-client with an explicit output path, creates prisma.config.ts, installs a driver adapter such as @prisma/adapter-pg, and loads environment variables itself with dotenv. It then fixes imports and client setup and runs prisma generate.

The skill also replaces Prisma.validator with TypeScript's satisfies, moves $use middleware to Client Extensions, and notes that metrics were removed. It stops MongoDB projects early: Prisma 7 has no MongoDB connector, so those projects should stay on version 6 or move to Prisma 8 with the separate prisma-mongodb-upgrade skill.

## When to use it

- You want to upgrade a project from Prisma 6 to Prisma 7.
- After upgrading you get an error saying a driver adapter is required.
- Your imports from @prisma/client broke after switching to the prisma-client generator.
- You use Prisma middleware or Accelerate and need to know what changes in 7.

## When to pick something else

- MongoDB projects: use prisma-mongodb-upgrade from the same repository.
- New projects: Prisma's README says new setups now default to Prisma ORM 8, set up with its prisma-orm-setup skill.

## What it needs

- Node.js 20.19.0 or newer and TypeScript 5.4.0 or newer
- A SQL database such as PostgreSQL, MySQL or SQLite

## Which agents it works in

Prisma documents it for Any agent that reads SKILL.md files, through the skills CLI. The open skills CLI also installs it into 78 agents (listed with the CLI on 2026-10-01).

## License

MIT.

## Related

### Related skills for databases

- [Database migration](https://cookiesforai.app/skills/wshobson/database-migration): database-migration is an agent skill from Seth Hobson's wshobson/agents marketplace for writing schema and data migrations in Sequelize, TypeORM and Prisma, with zero-downtime patterns and rollback strategies.
- [Neon Postgres](https://cookiesforai.app/skills/neondatabase/neon-postgres): neon-postgres is Neon's agent skill for working with Postgres on Neon: connection strings, pooled or direct connections, migrations, branching, built-in diagnostics, autoscaling, scale to zero and search.
- [Postgres Best Practices](https://cookiesforai.app/skills/supabase/supabase-postgres-best-practices): Postgres Best Practices is Supabase's agent skill of Postgres rules for any Postgres database, ranked by impact: indexes, connection pooling, row level security and schema design.
- [Supabase](https://cookiesforai.app/skills/supabase/supabase): Supabase is Supabase's own agent skill for any Supabase task, with a security checklist for auth and row level security and a rule to check the current docs first.

