Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
prisma avatar

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)
At a glance

prisma-cli-format capabilities & compatibility

Capabilities
what it does semantic repairs · use in editor and ci note
Use cases
database · refactoring
From the docs

What prisma-cli-format says it does

Adds missing back-relations
SKILL.md
modifies the file in place
SKILL.md
npx skills add https://github.com/prisma/cursor-plugin --skill prisma-cli-format

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs13
repo stars8
Last updatedFebruary 9, 2026
Repositoryprisma/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

SKILL.mdMarkdownGitHub ↗

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

OptionDescription
--schemaPath to schema file
--configCustom path to your Prisma config file

Examples

Format default schema

prisma format

Format specific schema

prisma format --schema=./custom/schema.prisma

Behavior

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

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.

Databasesdatabases

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.