
Prisma 8 Contract-First Guide
Guides an agent through Prisma 8 data contracts, migrations, queries and debugging
- Repository
- prisma/orm
- Stars
- 47,663
- Licence
- Apache-2.0
- Files
- 8 files
What it does
When installed, this skill tells an AI agent how to work with Prisma 8, a data layer where you describe your database structure in a data contract file, Prisma generates artifacts from it, and migrations are planned from the difference between contract versions. The agent is told to check that the project is actually on Prisma 8 and matches the skill version, to never reset or drop a database to fix problems, and to open the matching reference file (contract, migrations, queries, runtime, Supabase, upgrades, debugging) before writing code, rather than relying on memory of older Prisma versions.
Great for
- Developers with an existing Prisma 8 project (@prisma/orm-postgres, -sqlite or -mongo) who want an agent to edit contracts, plan migrations or write queries correctly
- Teams upgrading a Prisma 8 app or extension package who want guided steps
- Developers evaluating or first adopting Prisma 8 who want a walkthrough
Skip it if
- Projects on Prisma ORM 7 or earlier (schema.prisma and @prisma/client); the skill says its instructions would break such a project
- Production databases where an agent might run migrations or database update commands without human review; migration and update steps change real data
- Anyone unable to verify the agent's output, since the reference files were not included in this assessment and their accuracy is unconfirmed
Try asking
- “Add a new model with a relation and index to my contract.prisma and plan the migration”
- “Why am I getting MIGRATION.HASH_MISMATCH when I deploy?”
- “Write a query with db.orm for users created in the last week”
- “Upgrade my app from Prisma 8 rc.20 to the current version”
Install in 3 steps
- 1
Download the skill
The ZIP contains the 8 original files, the Apache-2.0 licence and an attribution note.
prisma-8.zip - 2
Add it to your agent
Claude Code (all projects)
mkdir -p ~/.claude/skills && unzip prisma-8.zip -d ~/.claude/skills/Claude Code / Agent SDK (this project only)
mkdir -p .claude/skills && unzip prisma-8.zip -d .claude/skills/Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.
- 3
Ask for the task
No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.
Get better results
- Let the agent run prisma skills sync first if the skill version differs from your installed packages
- Review every migration.ts and migration plan before applying it to any shared or production database
- Keep a backup and use a non-production database when trying the migration or db update commands
What's inside
- references/build.md
- references/contract.md
- references/debug.md
- references/feedback.md
- references/migration-model.md
- references/migration-review.md
- references/queries-mongo.md
- SKILL.md
Redistributed unmodified from prisma/orm under the Apache-2.0 licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.