prisma-migrations

Automate Prisma schema migrations with version-controlled change management.

1|Updated Jan 24, 2026
One-click install
npx skills add https://github.com/mattbutlerengineering/mattbutlerengineering --skill prisma-migrations-mattbutlerengineering
Or copy as Structured Prompt for Agentโ–ผ
Please help me install this Agent Skill.
Skill: prisma-migrations
Source: https://github.com/mattbutlerengineering/mattbutlerengineering/tree/main/.claude/skills/prisma-migrations
Command: npx skills add https://github.com/mattbutlerengineering/mattbutlerengineering --skill prisma-migrations-mattbutlerengineering

SYSTEM DOCUMENTATION & REQUIREMENTS

๐Ÿ’ก This Skill includes references (resource) components.

What problem does it solve?

This skill helps you manage database schema changes with Prisma Migrate so development and production stay consistent and deployments are predictable.

Core Features & Use Cases

  • Create migration files safely in development: Generates versioned migrations from your updated schema.prisma and applies them to your dev database.
  • Deploy migrations safely to production/CI: Uses migrate deploy to apply only pending migrations without creating new ones.
  • Handle real-world edge cases: Covers baselining existing databases, CI/CD patterns, and troubleshooting issues like failed migrations and schema drift.
  • Production guardrails: Prevents the risky workflow of running prisma migrate dev in production.

Quick Start

Apply production-ready database updates by running migrate deploy against your production database with DATABASE_URL set for the target environment.

Frequently Asked Questions about prisma-migrations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy Prisma migrations safely in a CI/CD pipeline?โ–ผ

To deploy Prisma migrations safely in CI/CD, run prisma migrate deploy against your target environment database. This command applies pending migration files without generating new ones, ensuring predictable production database schema changes.

What is the difference between prisma migrate dev and prisma migrate deploy?โ–ผ

Prisma migrate dev generates new migration files and applies them to your development database, while migrate deploy only applies existing pending migrations to production. Using migrate dev in production is a risky workflow that this process explicitly prevents.

How do I baseline an existing database that predates Prisma Migrate?โ–ผ

Baselining a database that predates Prisma Migrate involves marking existing schema state as applied in the _prisma_migrations table. This synchronizes your migration history so future Prisma database deployments can track and apply pending changes accurately.

Why did my Prisma database migration fail in production?โ–ผ

Prisma database migration failures in production often stem from schema drift or running prisma migrate dev instead of migrate deploy. Troubleshooting involves checking migration status and resolving inconsistencies between your schema.prisma and the _prisma_migrations table.

How do I create version-controlled migration files from my updated Prisma schema?โ–ผ

To create version-controlled migration files from an updated schema.prisma, run prisma migrate dev in your development environment. This generates the migration files and applies them locally to ensure your database schema changes are consistent.