# Agent Skills (/docs/ai/tools/skills)

Location: AI > AI Tools > Agent Skills

AI coding agents often struggle with Prisma 7 -they generate outdated v6 patterns, hallucinate APIs, and miss breaking changes like ESM-only support and required driver adapters. **Prisma Skills** fix this by giving your agent accurate, version-specific knowledge it can reference automatically.

Skills are packaged instructions that follow the open [Agent Skills](https://agentskills.io/) format. Once installed, your agent uses them whenever it detects a relevant task -no prompting required.

Install [#install]

Add all Prisma skills to your project:

  

#### bun

```bash
bunx skills add prisma/skills
```

#### pnpm

```bash
pnpm dlx skills add prisma/skills
```

#### yarn

```bash
yarn dlx skills add prisma/skills
```

#### npm

```bash
npx skills add prisma/skills
```

Or install only the ones you need:

  

#### bun

```bash
bunx skills add prisma/skills --skill prisma-client-api
```

#### pnpm

```bash
pnpm dlx skills add prisma/skills --skill prisma-client-api
```

#### yarn

```bash
yarn dlx skills add prisma/skills --skill prisma-client-api
```

#### npm

```bash
npx skills add prisma/skills --skill prisma-client-api
```

> [!NOTE]
> Skills are compatible with any agent that supports the [Agent Skills](https://agentskills.io/) format, including Claude Code, Cursor, and others.

Available skills [#available-skills]

prisma-cli [#prisma-cli]

Complete reference for all Prisma CLI commands in v7.

Covers `init`, `generate`, `dev`, `migrate dev`, `migrate deploy`, `db push`, `db pull`, `db seed`, `studio`, and more. Use this when your agent needs to run Prisma commands, set up projects, or manage migrations.

prisma-client-api [#prisma-client-api]

Comprehensive Prisma Client API reference for v7.

Covers CRUD operations (`findMany`, `create`, `update`, `delete`), query options (`select`, `include`, `omit`, `orderBy`), filter operators, transactions (`$transaction`), raw queries (`$queryRaw`, `$executeRaw`), and client methods (`$connect`, `$disconnect`, `$extends`).

prisma-upgrade-v7 [#prisma-upgrade-v7]

Step-by-step migration guide from Prisma v6 to v7.

Covers ESM module configuration, required driver adapters, the new `prisma.config.ts` file, manual environment variable loading, and removed features (middleware, metrics, deprecated CLI flags). Essential for upgrading existing projects.

prisma-database-setup [#prisma-database-setup]

Guides for configuring Prisma with different database providers.

Covers PostgreSQL, Prisma Postgres, MySQL/MariaDB, SQLite, MongoDB, SQL Server, and CockroachDB. Use this when setting up a new project or switching databases.

prisma-postgres [#prisma-postgres]

Prisma Postgres workflows across Console, CLI, Management API, and SDK.

Covers `npx create-db`, Console operations, programmatic provisioning via the Management API, and the `@prisma/management-api-sdk`. Use this when creating or managing Prisma Postgres databases.

Available skills for Prisma Next [#available-skills-for-prisma-next]

[Prisma Next](/orm/next) ships its own skill set, versioned with the product. Projects scaffolded with `create-prisma` install them automatically; add them to an existing project with:

  

#### bun

```bash
bunx skills add prisma/prisma-next/skills
```

#### pnpm

```bash
pnpm dlx skills add prisma/prisma-next/skills
```

#### yarn

```bash
yarn dlx skills add prisma/prisma-next/skills
```

#### npm

```bash
npx skills add prisma/prisma-next/skills
```

| Skill                           | What your agent uses it for                                                                          |
| ------------------------------- | ---------------------------------------------------------------------------------------------------- |
| `prisma-next`                   | Route a general Prisma Next question to the right skill below                                        |
| `prisma-next-quickstart`        | First-touch setup and orientation after scaffolding                                                  |
| `prisma-next-contract`          | Edit the schema: models, relations, enums, namespaces, extensions, then emit the contract            |
| `prisma-next-queries`           | Write queries in the right lane: the ORM API, the SQL query builder, or the MongoDB pipeline builder |
| `prisma-next-runtime`           | Wire `db.ts`, middleware, and environment configuration                                              |
| `prisma-next-migrations`        | Author migrations: `db update` vs `migration plan`, and filling in data transforms                   |
| `prisma-next-migration-review`  | Review migrations on deploy and reconcile concurrent migration work                                  |
| `prisma-next-build`             | Integrate with the build tool (the Vite contract-emit plugin today)                                  |
| `prisma-next-debug`             | Read structured error envelopes (`PN-*` codes) and route to the fix                                  |
| `prisma-next-upgrade`           | Move a project between Prisma Next releases                                                          |
| `prisma-next-extension-upgrade` | Upgrade extension packs alongside the core                                                           |
| `prisma-next-feedback`          | File a bug or feature request, or route a question to the Prisma Discord                             |

The Prisma Next docs reference these in each page's "Prompt your coding agent" section, with prompts that map to the page you are reading.

Useful commands [#useful-commands]

List available skills before installing:

  

#### bun

```bash
bunx skills add prisma/skills --list
```

#### pnpm

```bash
pnpm dlx skills add prisma/skills --list
```

#### yarn

```bash
yarn dlx skills add prisma/skills --list
```

#### npm

```bash
npx skills add prisma/skills --list
```

List skills currently installed in your project:

  

#### bun

```bash
bunx skills list
```

#### pnpm

```bash
pnpm dlx skills list
```

#### yarn

```bash
yarn dlx skills list
```

#### npm

```bash
npx skills list
```

Example prompts [#example-prompts]

Once skills are installed, your agent will use them automatically. Try prompts like:

* *"Set up Prisma with PostgreSQL in this project"*
* *"Upgrade this project from Prisma 6 to 7"*
* *"Write a query to find all users with their posts"*
* *"Run migrations for production"*
* *"Create a new Prisma Postgres database"*

Learn more [#learn-more]

* [Prisma Skills on skills.sh](https://skills.sh/prisma/skills) - browse available skills and install instructions
* [GitHub repository](https://github.com/prisma/skills) - source code, contribution guidelines, and skill structure
* [Agent Skills format](https://agentskills.io/) - the open standard behind skills

## Related pages

- [`ChatGPT`](https://www.prisma.io/docs/ai/tools/chatgpt): Learn how to add the Prisma MCP server to ChatGPT to manage your Prisma Postgres databases
- [`Codex`](https://www.prisma.io/docs/ai/tools/codex): Learn how to install the Prisma Codex plugin and use Prisma MCP from Codex
- [`Cursor`](https://www.prisma.io/docs/ai/tools/cursor): Learn tips and best practices for using Prisma ORM with the Cursor AI code editor
- [`GitHub Copilot`](https://www.prisma.io/docs/ai/tools/github-copilot): Learn about the features available with GitHub Copilot and Prisma ORM, plus best practices and tips
- [`MCP server`](https://www.prisma.io/docs/ai/tools/mcp-server): Manage Prisma Postgres databases using LLMs with the Prisma Model-Context-Protocol (MCP) Server