A collection of skills for AI coding agents working with Prisma ORM. Skills are packaged instructions that extend agent capabilities for database development.
Skills follow the Agent Skills format and are compatible with npx skills add.
Reference for Prisma ORM 7 CLI commands. For Prisma Compute app deployment, use prisma-compute.
Use when:
- Running Prisma ORM 7/database commands
- Setting up explicitly selected Prisma 7 projects (
prisma init) - Managing migrations and database schema
- Generating Prisma Client
Commands covered:
init,generate,dev(local Prisma Postgres)migrate dev,migrate deploy,migrate resetdb push,db pull,db seed,db executestudio,mcp
Step-by-step migration guide from Prisma v6 to v7, covering all breaking changes.
Use when:
- Upgrading existing projects to Prisma 7
- Troubleshooting v7 compatibility issues
- Understanding what changed in v7
Topics covered:
- ESM-first module configuration plus CommonJS fallback
- Driver adapter requirements
- New
prisma.config.tsfile - Manual environment variable loading
- Generated client entrypoints (
client,browser,models,enums) Prisma.validatortosatisfiesmigration- Removed features (middleware, metrics, CLI flags)
- Special handling for Accelerate users
Decision and migration guide for MongoDB projects on Prisma v6, which have no path to Prisma 7.
Use when:
- A MongoDB project asks about upgrading Prisma versions
- Evaluating a move from Prisma v6 to Prisma 8
- Preventing an impossible "upgrade MongoDB to v7" plan
Topics covered:
- The version landscape (v6 terminal for MongoDB; v7 has no connector; Prisma 8 is the successor path)
- Stay-on-v6 vs migrate-now decision table with no-go signals
- Schema/contract, client API, and migrations mapping between v6 and Prisma 8
- No-data-moves cutover verification checklist
Comprehensive Prisma Client API reference.
Use when:
- Writing Prisma Client queries
- Understanding query options (select, include, where)
- Working with transactions
- Using raw SQL queries
Topics covered:
- PrismaClient constructor and configuration
- CRUD operations (findMany, create, update, delete)
- Query options (select, include, omit, orderBy, pagination)
- Filter operators and conditions
- Transactions ($transaction)
- Raw queries ($queryRaw, $executeRaw)
- Client methods ($connect, $disconnect, $extends)
Implementation guide for Prisma SQL driver adapter development.
Use when:
- Implementing a new SQL driver adapter
- Modifying
SqlDriverAdapterorTransactionbehavior - Wiring migration-aware adapter factories
- Debugging adapter type mapping or transaction issues
Topics covered:
- Required adapter interfaces and contracts
- Transaction lifecycle protocol (including nested transactions)
SqlQueryargument mapping andSqlResultSetmappingColumnTypeEnummapping strategy- Error conversion to
DriverAdapterError/MappedError - Unit and E2E verification checklist
Set up an application with Prisma ORM 8 using the version-matched prisma-8 skill shipped by prisma/orm.
Also keeps existing Prisma 6/7 applications on their version, with provider references for Prisma 7 SQL (PostgreSQL, MySQL, SQLite, SQL Server, CockroachDB, Prisma Postgres) and Prisma 6 MongoDB.
Use when: setting up Prisma in an application, connecting its database, or troubleshooting a connection. Major upgrades are separate tasks.
prisma-database-setup is a deprecated compatibility name that loads prisma-orm-setup.
Reuse or provision a Prisma Postgres database, connect it to the application, and verify a query. Hands Prisma ORM configuration to prisma-orm-setup, and honors explicit driver, alternative ORM, or database-only choices.
Use when: connecting Prisma Postgres through v0/Vercel Marketplace, Console, Platform CLI, MCP, create-db, or the Management API. Marketplace guidance is a reference in this skill, not a separate skill.
Prisma Compute deployment and hosting workflows centered on the Prisma Platform CLI, with create-prisma covered as the new-project scaffold path, plus framework readiness, SDK automation, and operational debugging.
Use when:
- Creating a new Prisma app with optional Compute deploy
- Deploying or redeploying an existing app to Prisma Compute
- Checking framework deploy readiness for Hono, Elysia, Next.js, TanStack Start, Astro, Nuxt, Svelte, Nest, Turborepo, or custom/prebuilt artifacts
- Managing Compute app logs, deployments, environment variables, branches, and domains
- Building programmatic Compute integrations with SDK/API tooling
Workflows covered:
@prisma/cli app build/run/deploy- Generated
compute:deployscripts create-prisma --deployfor new project scaffolds- Framework-specific build output requirements
@prisma/compute-sdkand Management API App/Deployment concepts- Troubleshooting auth, env, build, deploy, log, and port issues
Install all skills:
npx skills add prisma/skillsOr install specific skills:
npx skills add prisma/skills --skill prisma-cli
npx skills add prisma/skills --skill prisma-upgrade-v7
npx skills add prisma/skills --skill prisma-mongodb-upgrade
npx skills add prisma/skills --skill prisma-client-api
npx skills add prisma/skills --skill prisma-driver-adapter-implementation
npx skills add prisma/skills --skill prisma-orm-setup
npx skills add prisma/skills --skill prisma-postgres-setup
npx skills add prisma/skills --skill prisma-computeList available skills:
npx skills add prisma/skills --listList installed skills:
npx skills listSkills are automatically available once installed. The agent will use them when relevant tasks are detected.
Examples:
Help me run Prisma migrations in production
Upgrade my project from Prisma 6 to Prisma 7
How do I use transactions in Prisma?
Each skill contains:
SKILL.md- Main instructions with YAML frontmatter (name, description, metadata)references/(optional) - Individual reference files with detailed explanations and code examples
New ORM setups default to Prisma ORM 8. Install prisma-orm-setup and prisma-postgres-setup for the default Prisma Postgres workflow. prisma-orm-setup also keeps existing Prisma 6/7 applications on their version; repairing a connection does not require an upgrade. Detailed Prisma 8 APIs come from the installed package-owned prisma-8 skill after prisma skills sync.
The existing prisma-cli, prisma-client-api, driver adapter, and earlier-version upgrade skills retain their existing scope; do not use their legacy recipes for Prisma 8 setup.
The prisma-compute skill tracks the active Prisma Compute launch flow and instructs agents to verify the current Prisma Platform CLI and create-prisma command surfaces before acting.
If you're upgrading from Prisma 6, use the prisma-upgrade-v7 skill for migration-specific guidance.
See AGENTS.md for guidelines on creating and modifying skills.
MIT