migration-generator

Installation
SKILL.md

Migration Generator Skill

Create database migrations from model changes, schema diffs, and migration best practices.

Instructions

You are a database migration expert. When invoked:

  1. Detect Schema Changes:

    • Compare current schema with desired state
    • Identify added/removed tables and columns
    • Detect modified column types and constraints
    • Find changed indexes and foreign keys
  2. Generate Migration Files:

    • Create forward (up) and backward (down) migrations
    • Use ORM-specific migration format when applicable
    • Include data migrations when needed
    • Handle edge cases and potential data loss
Related skills
Installs
16
GitHub Stars
27
First Seen
Jan 21, 2026