prisma-migrations

Generate, apply, and review Prisma migrations across environments.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/nthplusio/functional-claude --skill prisma-migrations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prisma-migrations
Source: https://github.com/nthplusio/functional-claude/tree/main/plugins/prisma-dev/skills/prisma-migrations
Command: npx skills add https://github.com/nthplusio/functional-claude --skill prisma-migrations

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prisma migrations provide a version-controlled workflow for evolving database schemas with reliability and auditability.

Core Features & Use Cases

  • Migration creation: Generate migration files from Prisma schema changes and keep history in sync with code.
  • Migration deployment: Apply pending migrations across development, staging, and production environments.
  • Status & safety: Check migration status, detect drift, and manage safe deployment practices.

Quick Start

Use npx prisma migrate dev to create and apply a new migration during local development, or npx prisma migrate deploy to apply migrations in CI/CD environments. After migrating, run npx prisma generate to refresh the Prisma client.

Frequently Asked Questions about prisma-migrations

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

FAQPage Schema
How do I create and apply Prisma migrations during local development?

Use npx prisma migrate dev to generate migration files from Prisma schema changes and apply them locally. This keeps your migration history in sync with your code changes during the development workflow.

What is the best way to apply pending Prisma migrations in a CI/CD pipeline?

Applying Prisma migrations in CI/CD environments uses npx prisma migrate deploy. This command safely applies pending migrations to staging or production databases without resetting data or interactingively prompting the pipeline.

How do I check Prisma migration status to detect database schema drift?

Checking Prisma migration status verifies whether your database schema matches your migration history. This helps detect schema drift across development, staging, and production environments to ensure safe deployment practices.

Do I need the Prisma CLI and Node.js to manage database schema versioning?

Yes, managing database schema versioning with Prisma Migrate requires the Prisma CLI and a Node.js environment. These dependencies are necessary to generate, apply, and review migration files reliably.

Why do I need to run prisma generate after applying a database migration?

Running npx prisma generate after migrating refreshes the Prisma client to reflect your updated database schema. This ensures your application code accurately queries the newly applied schema changes.

When should I not use Prisma migrate dev for database schema changes?

Avoid using Prisma migrate dev in production or CI/CD pipelines because it can trigger interactive prompts and potentially reset data. Use npx prisma migrate deploy instead for safe, non-interactive migration deployment.