prisma-8
Skill by prisma
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Install prisma-8
Built from the published package, never by AI.
git clone --depth 1 https://github.com/prisma/orm /tmp/orm && mkdir -p ~/.claude/skills && cp -r /tmp/orm/skills/prisma-8 ~/.claude/skills/prisma-8Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/prisma/orm /tmp/orm && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/orm/skills/prisma-8 ~/.gemini/antigravity-cli/skills/prisma-8Antigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives an AI assistant guidance for projects that use Prisma 8, formerly Prisma Next, with @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It routes each task to a reference file covering contract editing, migrations, queries, runtime wiring, build tool integration, the Supabase extension and error codes. The skill ships inside the installed Prisma packages, so it describes the version the project uses.
Prisma 8 is contract-first. You author a data contract in contract.prisma or a TypeScript builder, and Prisma emits contract.json and contract.d.ts. On SQL targets it provides a typed SQL builder (db.sql) and an ORM client (db.orm). Migrations are planned from the contract diff, reviewed, and can include a dataTransform in migration.ts. The skill is for developers working on Prisma 8 projects. It does not apply to Prisma ORM 7 or earlier.
Written from the project's SKILL.md and checked against it.
What it can do
- Contract editingCovers contract.prisma and contract.ts builders and the prisma contract emit command.
- Migration planningPlans migrations from the contract diff and covers reviewing and applying them.
- Data migrationsExplains writing a dataTransform in migration.ts for data changes.
- Typed queriesCovers writing queries with the db.orm and db.sql surfaces.
- Runtime wiringCovers wiring db.ts and middleware, and integrating a build tool.
- Supabase and RLSCovers using the Supabase extension and row-level security.
- Error code lookupExplains dotted error codes such as MIGRATION.HASH_MISMATCH.
- Version upgradesCovers upgrading Prisma 8 in an app or an extension package.
What you need
- A project on Prisma 8 with an @prisma/orm-* package installed
- prisma.config.ts that uses definePrismaConfig
Try asking
- Plan a migration after I change my contract.prisma file
- Write a typed db.orm query that lists posts with their author
- Explain the MIGRATION.HASH_MISMATCH error in my Prisma 8 project
Good to know
- Does not apply to Prisma ORM 7 or earlier, which use schema.prisma and @prisma/client.
- The skill version must match the installed @prisma/orm-* version. Run prisma skills sync when they differ.
- The skill says never to reset or drop a database to fix migration or contract problems.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/prisma-8/SKILL.md, skills/prisma-8/references/scripts/find-detection-hits.ts, skills/prisma-8/upgrading/app/upgrades/0.11-to-0.12/re-emit-closed-mongo-contracts.ts, skills/prisma-8/upgrading/app/upgrades/0.11-to-0.12/re-emit-domain-namespaced-contracts.ts, skills/prisma-8/upgrading/app/upgrades/0.11-to-0.12/re-emit-postgres-public-default.ts, skills/prisma-8/upgrading/app/upgrades/0.11-to-0.12/strip-migration-labels-hints.ts, skills/prisma-8/upgrading/app/upgrades/0.12-to-0.13/re-emit-mti-variant-link-columns.ts, skills/prisma-8/upgrading/app/upgrades/0.13-to-0.14/migration-op-factories-to-methods.ts, skills/prisma-8/upgrading/app/upgrades/0.13-to-0.14/uuid-preset-rename.ts. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md18 KB -
references/build-a-target-package.md11 KB -
references/build.md10 KB -
references/contract.md65 KB -
references/debug.md28 KB
Show all 148 files
-
references/feedback.md17 KB -
references/migration-model.md22 KB -
references/migration-review.md22 KB -
references/migrations.md108 KB -
references/queries-mongo.md18 KB -
references/queries-postgres.md57 KB -
references/queries.md25 KB -
references/quickstart.md34 KB -
references/runtime.md47 KB -
references/scripts/find-detection-hits.ts3 KB -
references/supabase.md21 KB -
references/upgrade-app.md34 KB -
references/upgrade-extension.md28 KB -
upgrading/app/upgrades/0.10-to-0.11/instructions.md2 KB -
upgrading/app/upgrades/0.11-to-0.12/instructions.md22 KB -
upgrading/app/upgrades/0.11-to-0.12/re-emit-closed-mongo-contracts.ts7 KB -
upgrading/app/upgrades/0.11-to-0.12/re-emit-domain-namespaced-contracts.ts6 KB -
upgrading/app/upgrades/0.11-to-0.12/re-emit-postgres-public-default.ts6 KB -
upgrading/app/upgrades/0.11-to-0.12/strip-migration-labels-hints.ts12 KB -
upgrading/app/upgrades/0.12-to-0.13/instructions.md17 KB -
upgrading/app/upgrades/0.12-to-0.13/re-emit-mti-variant-link-columns.ts8 KB -
upgrading/app/upgrades/0.13-to-0.14/instructions.md29 KB -
upgrading/app/upgrades/0.13-to-0.14/migration-op-factories-to-methods.ts10 KB -
upgrading/app/upgrades/0.13-to-0.14/uuid-preset-rename.ts1 KB -
upgrading/app/upgrades/0.14-to-0.15/instructions.md20 KB
And 118 more files on GitHub.
Alternatives to prisma-8
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Provides a PostgreSQL table design reference covering data types, indexing, constraints, partitioning and performance patterns. Built for developers who design or review PostgreSQL schemas.
Compare with hugging-face-datasets, db-repair or alloydb-basics
prisma-8: common questions
What is Prisma 8?
The source describes Prisma 8 as a contract-first data layer, formerly called Prisma Next. You edit a data contract and Prisma handles the migrations and generated artefacts.
Which databases does this skill cover?
The skill covers projects that depend on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. The source also lists @prisma/orm-mysql and @prisma/orm-mariadb in its pre-conditions.
Does this skill work with older Prisma versions?
No. The source says not to use it for Prisma ORM 7 or earlier, which use schema.prisma and @prisma/client.
How do I install prisma-8?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is prisma-8 free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is prisma-8 safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to prisma-8?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
