SkillsReviewed · prisma

Prisma CLI skill for Prisma ORM 7

This is an instruction skill that teaches an AI coding agent how to run the Prisma ORM 7 command line. It is written for developers who already have a Prisma 7 project or have explicitly chosen Prisma 7. Its main catch is that it covers only Prisma 7 and hands general setup, connection repair, Prisma 8 and Platform work to other skills. It contains a main SKILL.md, 19 command-reference files and agent-safety.md. The command references cover init, generate, migrate dev/deploy/reset/status/diff/resolve, db pull/push/seed/execute, dev, studio, mcp, validate, format, debug and complete. agent-safety.md explains the destructive commands that Prisma blocks for AI agents until the user consents.

Researched 13 Nov 2026

In short.

This is an instruction skill that teaches an AI coding agent how to run the Prisma ORM 7 command line. It is aimed at developers who already work in a Prisma 7 project or have explicitly chosen Prisma 7. Its main catch is that it is documentation only, covers only Prisma 7 and was not run or tested here. The captured folder contains SKILL.md (declared version 7.9.1, MIT), 19 command-reference files and agent-safety.md, which covers destructive commands. The skill tells the agent to use the project's own version-matched CLI. It shows the common commands with their options and describes the Prisma 7 prisma.config.ts configuration. It also includes a consent checkpoint for three destructive commands (migrate reset, db push --force-reset and db push --accept-data-loss) that Prisma blocks when it detects an AI agent. The skill excludes the Prisma Platform CLI. It covers prisma init for explicitly selected Prisma 7 projects but sends general setup, connection repair and Prisma 8 to a sibling skill, prisma-orm-setup, which was not reviewed.

Researched and written by an AI model and checked by a second AI model. How it works

Selected scope: the complete prisma-cli folder of the prisma/skills repository at revision a6f192959cf43b08aa330fe1ffca090267215812. This means SKILL.md and the 20 files under references/ (19 command references and agent-safety.md), all captured and read in full. The repository-level MIT LICENSE file lies outside the folder and was kept only as the related notice. Excluded: the sibling skills (prisma-orm-setup, prisma-compute, prisma-postgres-setup), the rest of the repository, and linked external pages such as Prisma documentation and release notes. Untested: no Prisma command, agent integration, MCP server, database or consent flow was run or observed. The skill's accuracy against the live Prisma CLI, supported versions and Prisma service pricing were not assessed.

The overview

What this resource is

The resource is the prisma-cli folder of the prisma/skills repository, captured at source revision a6f192959cf43b08aa330fe1ffca090267215812. The front matter of its SKILL.md names it prisma-cli, credits the author prisma, declares the MIT licence and gives metadata version 7.9.1. The description calls it a Prisma ORM 7 CLI reference for existing Prisma 7 applications or explicitly selected Prisma 7 workflows, covering prisma init, generate, migrate, db, dev, studio and mcp.

It is a Skill: content that an AI coding assistant loads. It contains Markdown instructions and reference pages, not an executable program. The folder holds SKILL.md and 20 files under references/. A repository-level MIT LICENSE file (Copyright (c) 2025 Prisma) sits outside the folder and was kept as the related notice.

Overall assessment

Based on the files read, this is a focused, practical command reference for an agent working in a Prisma 7 project. Its strengths: it draws clear scope boundaries (the ORM CLI versus the Platform CLI); it tells the agent to use the project's version-matched CLI rather than a floating prisma@latest; it separates development commands (migrate dev, db push) from production commands (migrate deploy); and it documents a consent checkpoint for commands that destroy data.

Its weaknesses: it is tied to one major version, and every claim comes from the skill's own text. Generated-client import paths also vary between examples (../generated/client in the seed example, ../generated/prisma/client elsewhere). These may reflect different generator configurations rather than errors, but they could fail to match a given project, so check them against your own generator output. No command was run, no agent loaded the skill, and nothing was compared with the live Prisma CLI, so the skill's accuracy against the real tool has not been checked.

Who it is for

The target reader is a developer, or a developer's AI coding agent, who needs the right command, flags and order of steps. That means someone working in an existing Prisma ORM 7 application, or starting a project where Prisma 7 has been explicitly selected. Beginners get plain explanations of what each command does and when not to use it; for example, db push is for prototyping, not production. Experienced developers get option tables, CI snippets, notes on exit codes and recipes for migrate diff.

A new project is covered only when Prisma 7 has been explicitly selected, through prisma init. SKILL.md sends other work to sibling skills: general setup, connection repair and Prisma 8 to prisma-orm-setup; Compute apps and workspace authentication to prisma-compute; and Platform projects and databases to prisma-postgres-setup. None of these sibling skills were captured or reviewed. The skill is also not a guide to the public-beta Platform CLI (@prisma/cli).

What it covers

SKILL.md groups the commands as follows: setup (init), generation (generate), validation (validate, format), development (dev), database operations (db pull, push, seed, execute), migrations (migrate dev, deploy, reset, status, diff, resolve) and utilities (complete, studio, mcp, version, debug). Nineteen of these commands have their own reference page. version has no dedicated reference page. Most pages give a description, an option table and examples, but complete.md and mcp.md have no option table. A separate page, agent-safety.md, covers the consent checkpoint for destructive commands.

Notable details in the references:

init lists the datasource providers postgresql, mysql, sqlite, sqlserver, mongodb and cockroachdb.

generate documents the prisma-client generator, which requires an output path, with moduleFormat for ESM or CommonJS and compilerBuild set to fast or small.

dev documents a local Prisma Postgres database with default ports 51213, 51214 and 51215, plus instance commands (ls, start, stop, rm).

migrate diff documents --from and --to sources, --script, and --exit-code for drift checks in CI.

migrate resolve covers baselining and recovering from failed migrations.

studio opens a local web browser for the database, and mcp starts Prisma's MCP server.

For Bun users, the skill says to run bunx --bun so that Prisma runs under Bun rather than Node.js.

Using it

What you need to use it

The skill itself needs an AI agent or assistant that can load skill folders. The files do not say which agents are supported, beyond noting that prisma init tries to install prisma/skills for agents it detects. The commands need the project's version-matched Prisma 7 CLI; SKILL.md says not to install a floating prisma@latest. Other requirements depend on the operation.

prisma init creates the project files itself: prisma/schema.prisma, prisma.config.ts, .env and .gitignore entries. prisma generate, validate and format work on the Prisma schema file, and format rewrites it in place. All three accept --schema or --config to point at other locations.

Commands that work with a database need its connection details. These commands include db pull, db push, db execute, migrate dev, deploy, reset, status and resolve, and studio. The connection is usually the datasource URL in prisma.config.ts, which the examples read from DATABASE_URL using dotenv. Some commands accept --url to override it. prisma db seed runs the seed command set in prisma.config.ts, such as tsx prisma/seed.ts, so you may need a TypeScript runner. migrate dev also needs a shadow database. prisma dev provides one automatically for local Prisma Postgres; other setups configure shadowDatabaseUrl.

The files do not state Prisma's own runtime requirements, such as supported Node.js versions or database server versions, so these are unknown. Prisma Studio in Prisma 7 is stated to target PostgreSQL, MySQL and SQLite first. MongoDB uses db push because it does not support migrations, and db execute does not work with MongoDB.

How it works

The skill consists of instructions only. SKILL.md is the entry point. It states the scope, lists when to apply the skill, groups the commands into categories and gives quick-reference command blocks, then lists the reference files for detail. An agent that loads the skill reads these instructions and then runs ordinary prisma commands in the user's project. The skill itself ships no scripts in the captured folder.

Two behaviours are worth understanding. The first is the version rule: use the project's version-matched CLI and do not install a floating prisma@latest. The second is the AI safety checkpoint. Prisma itself detects common AI-agent environments and blocks migrate reset, db push --force-reset and db push --accept-data-loss until the user has consented. The skill tells the agent to explain the data-loss impact and to ask immediately before running the command. When the agent runs the command as a subprocess, it passes the user's exact consent message in the PRISMA_USER_CONSENT_FOR_DANGEROUS_AI_ACTION environment variable. The skill says never to fabricate consent, reuse an old approval or hide the environment variables Prisma uses to detect agents. The blocking is Prisma's behaviour as the skill describes it; it was not observed here.

Setup

The captured files include no install command or README for the skill itself, so the steps to load it into a particular agent are unknown. In general, a skill folder has to be placed where the agent reads skills from; check your agent's documentation.

prisma init tries to install prisma/skills for detected agents. This is best-effort: init does not fail if it does not work. The --no-skills flag skips it, and the reference recommends that flag for minimal or controlled environments. For a project where Prisma 7 has been explicitly selected, the init reference lists these steps after prisma init: set DATABASE_URL in .env, define models in prisma/schema.prisma, run prisma dev or connect to a remote database, run prisma migrate dev, run prisma generate, and run prisma db seed if you want seed data. For general setup, connection repair or a Prisma 8 project, SKILL.md points the agent to prisma-orm-setup instead, which was not reviewed here.

Example

The skill describes a typical local development loop:

1. Start a local Prisma Postgres database with prisma dev --detach.

2. Add a field to a model in prisma/schema.prisma.

3. Run prisma migrate dev --name add_created_at to create and apply a migration.

4. Run prisma generate to refresh Prisma Client.

5. Run prisma db seed if you need seed data.

The skill stresses that in Prisma 7, migrate dev does not run generate or seed automatically; both are explicit follow-up steps.

The documented production path is: commit the generated migration files, run prisma migrate status to see pending migrations, then run prisma migrate deploy in CI or when the container starts. The skill advises taking a backup and testing in staging first. If a deploy fails, the documented recovery is to fix the cause, mark the migration with prisma migrate resolve and run deploy again. This description comes from the skill's text; none of it was run for this report.

Assessment & evidence

Limitations and risks

Scope: the skill applies only to Prisma ORM 7. It covers prisma init when Prisma 7 has been explicitly selected, but routes general setup, connection repair and Prisma 8 to prisma-orm-setup. The public-beta Platform package (@prisma/cli, binary prisma-cli) is explicitly out of scope. The reviewed files contain no guidance for those areas.

Safety coverage: the consent checkpoint names only three commands. Other commands in the same files can still change or destroy data. Examples include prisma db execute --stdin with a TRUNCATE statement, db pull --force, which replaces the schema file, and migrate dev, which can offer to reset the database when it detects drift. The files do not say whether these are covered by the agent consent block, so review such commands before an agent runs them. The MCP server is described as exposing migrate-status, migrate-dev and Studio tooling. It has no migrate-reset tool, but an agent connected to it can still apply development migrations.

Details to check against your project: generated-client import paths vary across examples. The seed example imports from ../generated/client, while the generate page and other examples import from ../generated/prisma/client. The generator output is ../generated in some schemas and ../generated/prisma in the init template. The examples may assume different generator configurations, so this is not necessarily an error, but the paths may not match your project; check imports against the output path in your own generator block.

Other gaps between pages: migrate-dev.md mentions accepting data loss with --accept-data-loss, but its option table does not list that flag. The sample output on the debug page shows version 7.3.0, while the skill declares 7.9.1. migrate status exits with code 0 even when migrations are pending, so scripts must parse its output or use migrate diff with --exit-code. Studio is described as a development-only tool that must never be exposed publicly. None of this was checked against the real CLI.

Why these conclusions

The assessment is based on reading every captured file in full. The scope statements come directly from the description and boundary section of SKILL.md. The safety description comes from SKILL.md, agent-safety.md, migrate-reset.md, db-push.md and mcp.md, which agree with each other: they name the same three commands, state the same consent rule and note that the MCP server has no migrate-reset tool.

The point about uncovered destructive commands is an inference, not a statement in the source. The checkpoint lists three commands, and other commands that can destroy data are documented without that label. The skill's accuracy against the live Prisma CLI was not assessed, because nothing was run and no outside documentation was compared.

Alternatives and neighbouring resources

The skill names its neighbouring skills: prisma-orm-setup for general setup, connection repair and Prisma 8; prisma-compute for Compute apps and workspace authentication; and prisma-postgres-setup for Platform projects and databases. Their content was not captured, so their quality is unknown. The mcp reference links to Prisma's documentation for the mcp command [https://docs.prisma.io/docs/cli/mcp], and migrate-resolve.md links to Prisma guides on baselining and production troubleshooting.

Without a skill, an agent can rely on its general knowledge and the CLI's own help output. This skill instead supplies the configuration and command behaviour it documents for Prisma 7. CLI settings live in prisma.config.ts: the schema path, the migrations path, the seed command and the datasource URL, loaded explicitly with dotenv. generate and db seed are explicit follow-up steps after migrate dev. The seed page notes that seeding is not run automatically by migrations in v7, and the migrate dev page warns not to rely on older CLI help that described generators as part of migrate dev. How well the skill works in practice was not tested. Skills or rule sets for ORMs other than Prisma are outside the scope of these files.

Evidence base

The review used 22 captured files at revision a6f192959cf43b08aa330fe1ffca090267215812. These are SKILL.md, the repository LICENSE and 20 files under references/: agent-safety.md and 19 command references (complete, db-execute, db-pull, db-push, db-seed, debug, dev, format, generate, init, mcp, migrate-deploy, migrate-dev, migrate-diff, migrate-reset, migrate-resolve, migrate-status, studio and validate). The sibling skills, the rest of the repository, and linked external pages such as Prisma documentation and release notes were not read.

All findings come from reading those files. Nothing was run: no Prisma command was executed, no database was touched and no agent was observed using the skill. Statements about behaviour describe what the skill says, not what was verified.

Access & freshness

Costs

The skill is published under the MIT licence, and the captured files state no price for it. The files mostly do not state the costs of the services the skill drives. prisma dev runs a local database on your machine, and no charge is mentioned. prisma init --db sets up a fully managed Prisma Postgres database on the Prisma Data Platform after you sign in through a browser. The pricing, free-tier limits and account requirements for that service are not in the files and are unknown. Costs for your own database hosting, CI minutes or AI agent usage are also unknown and depend on your setup.

Rights and licence

The repository LICENSE is the MIT License, Copyright (c) 2025 Prisma. It permits using, copying, modifying, merging, publishing, distributing, sublicensing and selling copies, provided the copyright and permission notice are included in all copies. The software is provided as is, without warranty. SKILL.md also declares the MIT licence in its front matter.

The licence applies to the skill text. The files say nothing about the licence terms of the Prisma ORM CLI, Prisma Studio, Prisma Postgres or the Prisma Data Platform, or about use of the Prisma trademark. These were not assessed and should be checked separately before you rely on them.

Freshness

The files were captured on 2026-11-13 at the revision above. SKILL.md declares metadata version 7.9.1, and agent-safety.md and complete.md cite the Prisma ORM 7.9.0 release. The example output on the debug page shows 7.3.0, which appears to be a sample rather than a statement of the supported version.

The files do not give the commit date of the revision or the latest Prisma release, so it is unknown whether newer Prisma versions have changed these commands. The skill is tied to the Prisma 7 line and the CLI keeps changing, so compare the skill's version with your project's Prisma version (run prisma version) before relying on option details.

Suggested next steps

Before adopting: run prisma version to confirm your project is on Prisma 7, and decide whether you also need the sibling skills for general setup, connection repair, Prisma 8 or Platform work. Try the skill first on a throwaway or local database, such as one started with prisma dev, to see how your agent follows the migration and consent guidance.

While using it: review destructive commands yourself before they run, including prisma db execute, db pull --force and db push. Back up before running migrations against any database that matters. PRISMA_USER_CONSENT_FOR_DANGEROUS_AI_ACTION should hold only the exact message the user gave; never fill it with invented text. Use prisma init --no-skills if you do not want skills installed automatically. Pin the Prisma CLI version in the project rather than using prisma@latest.

Evidence for this report

LICENSEnotice · checked 2026-11-13
prisma-cli/SKILL.mdselected · checked 2026-11-13
prisma-cli/references/agent-safety.mdselected · checked 2026-11-13
prisma-cli/references/complete.mdselected · checked 2026-11-13
prisma-cli/references/db-execute.mdselected · checked 2026-11-13
prisma-cli/references/db-pull.mdselected · checked 2026-11-13
prisma-cli/references/db-push.mdselected · checked 2026-11-13
prisma-cli/references/db-seed.mdselected · checked 2026-11-13
prisma-cli/references/debug.mdselected · checked 2026-11-13
prisma-cli/references/dev.mdselected · checked 2026-11-13
prisma-cli/references/format.mdselected · checked 2026-11-13
prisma-cli/references/generate.mdselected · checked 2026-11-13
prisma-cli/references/init.mdselected · checked 2026-11-13
prisma-cli/references/mcp.mdselected · checked 2026-11-13
prisma-cli/references/migrate-deploy.mdselected · checked 2026-11-13
prisma-cli/references/migrate-dev.mdselected · checked 2026-11-13
prisma-cli/references/migrate-diff.mdselected · checked 2026-11-13
prisma-cli/references/migrate-reset.mdselected · checked 2026-11-13
prisma-cli/references/migrate-resolve.mdselected · checked 2026-11-13
prisma-cli/references/migrate-status.mdselected · checked 2026-11-13
prisma-cli/references/studio.mdselected · checked 2026-11-13
prisma-cli/references/validate.mdselected · checked 2026-11-13