check-migration

Community

Safely validate Prisma migrations before deploy

AuthorSumitRajpal
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This utility validates Prisma migrations for safety before applying to production by analyzing the migration SQL for destructive operations, providing a rollback plan, and checking for schema drift.

Core Features & Use Cases

  • Destructive operation detection and risk assessment: flags potential data-loss actions such as DROP TABLE, DROP COLUMN, or risky ALTER operations.
  • Index and performance considerations: checks for missing indexes on new foreign keys and commonly queried columns to minimize lock risks.
  • Drift and rollback support: reports drift via prisma migrate diff and generates a manual rollback plan to undo migrations if needed.

Quick Start

Run the migration safety check against the latest migration in prisma/migrations or a specified one to obtain a risk assessment.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: check-migration
Download link: https://github.com/SumitRajpal/nextjs-claude-architecture/archive/main.zip#check-migration

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.