1. Habit
  2. Skills
  3. Prisma CLI skill
prisma · 381K installs

Prisma CLI skill
Runs by itself, schema file changed.

Schema valid, migrations in sync.

Install the Prisma CLI skill and make it a habit: follow https://gethabit.dev/skills/prisma/prisma-cli.md

  1. 1Copy
  2. 2Paste into Claude Code, Codex or Cursor
  3. 3It runs by itself

381K installs74 starsMIT licenceSource on GitHub ↗

Prisma CLI

by prisma · 381K installs

The skill

The prisma cli skill is a reference for the Prisma ORM 7 command line: init, generate, migrate, db, dev, studio and mcp, with a consent checkpoint before destructive commands.

Only when you ask.

The habit

Schema valid, migrations in sync.

↻ Runs by itselfschema file changed

How the habit works.
You don't have to.

Three questionsWhen does it start? How does it check its work? What does it remember?

One run, step by step.
Then it stops.

Stop ruleStops after one schema change per run; no destructive command without fresh consent.

  1. 01

    Use project CLI

    The agent uses the project's version-matched prisma command, never a floating latest install.

  2. 02

    Validate

    It runs prisma validate and prisma format and checks for a diff.

  3. 03

    Check migrations

    It runs prisma migrate status, and prisma migrate dev --create-only when a new migration is needed.

  4. 04

    Generate client

    It runs prisma generate so the client matches the schema.

  5. 05

    Ask before data loss

    For migrate reset or db push --force-reset it reads references/agent-safety.md, explains the data loss and asks you first.

  6. 06

    Log

    It writes the status and results into the run log.

What it may do.
Nothing more.

Safe by defaultIt writes only in its own folder and asks you before anything goes out.

Is it for you?
Use it when it fits.

Quick checkRead both lists. If the left one sounds like you, the Prisma CLI skill helps.

Use it when

  • ✓ You run Prisma migrations
  • ✓ You regenerate Prisma Client
  • ✓ You use the local prisma dev database

Skip it when

  • – You work on Prisma 8
  • – You need the Prisma Platform CLI

Questions

Prisma CLI skill, answered.

Will it reset my database?

Not on its own. Prisma blocks destructive commands from agents until you give explicit consent, and the loop asks each time.

Does it work for Prisma 8?

No. This skill covers Prisma ORM 7. For Prisma 8 or setup, the skill points to prisma-orm-setup.

I use Bun. Anything different?

Yes. Add the --bun flag, for example bunx --bun prisma generate.

How do I install the Prisma CLI skill?

Copy the prompt at the top into your agent. It installs the skill from prisma/skills and sets up the habit. Or run npx skills add prisma/skills --skill prisma-cli.

Is the Prisma CLI skill free?

Yes. It is published under MIT. Habit is free too.

Prisma CLI. Now as a habit.

Install the Prisma CLI skill and make it a habit: follow https://gethabit.dev/skills/prisma/prisma-cli.md

  • Free
  • No account
  • Undo in one line

All prisma skills →More code skills →

Works in

  • Claude Code
  • Codex
  • Cursor
  • ChatGPT
  • Claude app

Made by prisma, published under MIT. Habit links to the original and never changes it. Is this your skill?

Copying didn't work here. Select the line and copy it by hand.