
Prisma Cli Format
- 13 installs
- 8 repo stars
- Updated February 9, 2026
- prisma/cursor-plugin
prisma-cli-format formats and repairs Prisma schema files.
About
The prisma-cli-format skill documents prisma format as Prettier-like formatting plus semantic schema repairs. It fixes indentation and spacing, adds missing back-relations on the opposite side of relations, fills missing relation fields and references arguments, and sorts fields and attributes opinionatedly. Runs in place on default or custom --schema paths with optional --config. Editor extensions often format on save while CLI format suits CI checks and large refactors after manual edits. Formats schema.prisma indentation and spacing in place. Adds missing back-relations and relation arguments. Sorts fields and attributes opinionatedly. Supports custom schema and config paths. Useful for CI formatting checks and bulk refactors. Formatted schema with consistent relations and spacing. User runs prisma format after schema edits or refactors. Developers cleaning up hand-edited Prisma schemas. Build-phase backend work normalizing Prisma schema files.
- Formats schema.prisma indentation and spacing in place.
- Adds missing back-relations and relation arguments.
- Sorts fields and attributes opinionatedly.
- Supports custom schema and config paths.
- Useful for CI formatting checks and bulk refactors.
Prisma Cli Format by the numbers
- 13 all-time installs (skills.sh)
- Ranked #627 of 911 Databases skills by installs in the Skillselion catalog
- Data as of Aug 4, 2026 (Skillselion catalog sync)
prisma-cli-format capabilities & compatibility
- Capabilities
- what it does semantic repairs · use in editor and ci note
- Use cases
- database · refactoring
What prisma-cli-format says it does
Adds missing back-relations
modifies the file in place
npx skills add https://github.com/prisma/cursor-plugin --skill prisma-cli-formatAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 13 |
|---|---|
| repo stars | ★ 8 |
| Last updated | February 9, 2026 |
| Repository | prisma/cursor-plugin ↗ |
How do I format schema.prisma with Prisma CLI?
Format schema.prisma in place with indentation fixes, relation back-relations, and sorted fields.
Who is it for?
Developers cleaning up hand-edited Prisma schemas.
Skip if: Skip when schema is unchanged and already formatted.
When should I use this skill?
User runs prisma format after schema edits or refactors.
What you get
Formatted schema with consistent relations and spacing.
Files
prisma format
Formats your Prisma schema file.
Command
prisma format [options]What It Does
- Fixes formatting (indentation, spacing)
- Adds missing back-relations (e.g., adds the other side of a relation)
- Adds missing relation arguments (e.g.,
fields,references) - Sorts fields and attributes (opinionated)
Options
| Option | Description |
|---|---|
--schema | Path to schema file |
--config | Custom path to your Prisma config file |
Examples
Format default schema
prisma formatFormat specific schema
prisma format --schema=./custom/schema.prismaBehavior
prisma format modifies the file in place. It is equivalent to "Prettier for Prisma schemas" but also has semantic understanding to fix/add missing schema definitions.
Use in Editor
Most Prisma editor extensions (VS Code, WebStorm) run prisma format automatically on save. This command is useful for:
- CI pipelines (check formatting)
- CLI-based workflows
- Fixing large schema refactors
{
"name": "prisma-cli-format",
"version": "7.0.0",
"author": "prisma",
"license": "MIT"
}Related skills
FAQ
What does prisma-cli-format do?
prisma-cli-format formats and repairs Prisma schema files.
When should I use prisma-cli-format?
User runs prisma format after schema edits or refactors.
Is this skill safe to install?
Review the Security Audits panel on this page before installing in production.