migration-generator

Generate forward and backward migration files for SQL databases and ORMs.

27|4|Updated Oct 20, 2025
One-click install
npx skills add https://github.com/CuriousLearner/devkit --skill migration-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: migration-generator
Source: https://github.com/CuriousLearner/devkit/tree/main/skills/migration-generator
Command: npx skills add https://github.com/CuriousLearner/devkit --skill migration-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the complex and error-prone process of creating database migration scripts, ensuring consistency and safety across different database systems and ORMs.

Core Features & Use Cases

  • Automated Schema Changes: Generates up and down migration files for various database operations like adding/removing tables, columns, and indexes.
  • ORM Integration: Supports popular ORMs like Prisma, TypeORM, Alembic, and Django migrations.
  • Data Migrations: Handles backfilling data and complex data transformations safely.
  • Zero-Downtime Strategies: Provides patterns for safe schema changes in production environments.
  • Use Case: You've updated your application's user model and need to add a new last_login timestamp column. This Skill can generate the necessary SQL or ORM-specific migration files, including handling existing rows and ensuring reversibility.

Quick Start

Use the migration-generator skill to create a new migration for adding a 'last_login' column to the 'users' table.

Frequently Asked Questions about migration-generator

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

FAQPage Schema
How do I generate database migration scripts for schema changes across different ORMs?

Database migration scripts for schema changes are generated automatically for ORMs like Prisma, TypeORM, Alembic, and Django. The tool creates forward and backward migration files to ensure safe and reversible database evolution across multiple SQL databases.

What is the best way to handle data backfilling during a zero-downtime database migration?

Data backfilling during a zero-downtime database migration is handled using provided patterns for safe schema changes in production. The mechanism generates scripts that safely transform existing data without locking tables or causing service interruptions.

Can I create reversible up and down migration files for Prisma and TypeORM?

Yes, you can create reversible up and down migration files for Prisma and TypeORM. The generation process supports creating forward and backward migration files to facilitate adding, removing, or modifying tables, columns, and indexes safely.

Does this database migration generator support Alembic and Django frameworks?

Yes, this database migration generator supports Alembic and Django frameworks. It integrates with these popular ORMs to automate the creation of complex migration scripts for various SQL database operations and data transformations.

How do I add a new column to an existing SQL database table without causing downtime?

To add a new column without causing downtime, the generator implements zero-downtime deployment strategies. It produces migration scripts that safely handle existing rows and schema modifications for production SQL databases.