
prisma-cli-validate
✓ Official★ 8by prisma · part of prisma/cursor-plugin
prisma validate. Reference when using this Prisma feature.
🔥🔥✓ VerifiedFreeQuick setup
🧩 One of 7 skills in the prisma/cursor-plugin package — works on its own, and pairs well with its siblings.
prisma validate. Reference when using this Prisma feature.
Inspect the full instructions your agent will receiveExpandCollapse
This is the exact playbook injected into your agent when the skill activates — shown here so you can audit it before installing. You don't need to read it to use the skill.
name: prisma-cli-validate description: prisma validate. Reference when using this Prisma feature. license: MIT metadata: author: prisma version: "7.0.0"
prisma validate
Validates your Prisma schema file.
Command
Copy & paste — that's it
prisma validate [options]What It Does
- Parses the
schema.prismafile - Checks for syntax errors
- Validates model definitions, relations, and types
- Reports any errors or warnings without generating code
Options
| Option | Description |
|---|---|
--schema | Path to schema file |
--config | Custom path to your Prisma config file |
Examples
Validate default schema
Copy & paste — that's it
prisma validateValidate specific schema
Copy & paste — that's it
prisma validate --schema=./custom/schema.prismaUse in CI
Run validate in your CI pipeline to catch schema errors early:
Copy & paste — that's it
- name: Validate Schema
run: npx prisma validateCopy & paste — that's it
- name: Validate Schema
run: npx prisma validateRun this in your project — your agent picks the skill up automatically.
Common Errors
- Missing
@relationfields - Invalid types
- Duplicate model names
- Syntax errors (missing braces, etc.)