Skip to content
Back to skills

Prisma Migrate

ASecurity

Create a Prisma migration for a schema change against the local database. Use after editing prisma/schema.prisma.

  • 20 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 7, 2026
databasessqlgitdatabase

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add howard36/probase --skill prisma-migrate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Prisma Migrate?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Prisma Migrate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/howard36-prisma-migrate/badge)](https://www.skillsdirectory.com/skills/howard36-prisma-migrate)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: prisma-migrate
description: Create a Prisma migration for a schema change against the local database. Use after editing prisma/schema.prisma.
disable-model-invocation: true
---

Migration name (from arguments, kebab-case; ask if missing): $ARGUMENTS

1. Confirm `prisma/schema.prisma` has the intended change and nothing else (`git diff prisma/schema.prisma`).
2. Generate and apply the migration against the local DB. The env wrapper is required; Prisma does not read `.env.local` on its own:
   ```
   npm run local -- prisma migrate dev --name $ARGUMENTS
   ```
3. Read the generated SQL under `prisma/migrations/<timestamp>_<name>/migration.sql` and check for destructive statements (`DROP COLUMN`, `DROP TABLE`, type changes on populated columns). Call these out explicitly in your reply.
4. If the change affects seed data, update `prisma/seed.mjs` and re-run `npm run local -- prisma db seed`.
5. Run `/verify`.

Remind the user in your reply: merging this PR to `main` runs `prisma migrate deploy` against production automatically. Never run migrations with `npm run prod -- ...` yourself.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in databases →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.