generate-migration

Generate reversible database migrations for schema changes across ORMs and SQL tools.

1|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/sitharaj88/claude-skills --skill generate-migration-sitharaj88
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-migration
Source: https://github.com/sitharaj88/claude-skills/tree/main/skills/generate-migration
Command: npx skills add https://github.com/sitharaj88/claude-skills --skill generate-migration-sitharaj88

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the creation of database migration files, ensuring schema changes are applied safely and reversibly across different database tools and ORMs.

Core Features & Use Cases

  • ORM/Tool Agnostic: Supports Prisma, Drizzle, TypeORM, Sequelize, Alembic, Django, Flyway, Goose, and raw SQL.
  • Schema Change Handling: Manages table creation, column modifications, indexes, and data migrations.
  • Safety Checks: Includes checks for non-destructive changes, performance, and reversibility.
  • Use Case: When you need to add a new email column to your users table, this skill will generate the appropriate migration file for your project's ORM.

Quick Start

Use the generate-migration skill to add a unique index to the email column on the users table.

Frequently Asked Questions about generate-migration

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

FAQPage Schema
How do I generate reversible database migrations for schema modifications?

To generate reversible database migrations for schema modifications, this skill analyzes your project's ORM configuration files and existing migration patterns to automatically produce safe, reversible migration files for table alterations, column changes, and index creation.

Can I use this to generate migrations for Prisma, Django, or raw SQL projects?

Yes, you can generate migrations for Prisma, Django, and raw SQL projects. The skill is ORM and tool agnostic, supporting Prisma, Drizzle, TypeORM, Sequelize, Alembic, Django, Flyway, Goose, and raw SQL by detecting your project's specific configuration files.

What's the best way to add a unique index to an existing email column in a users table?

The best way to add a unique index to an existing email column is to request the migration generation for your specific ORM. The skill will analyze your schema and output the appropriate migration file with built-in safety and performance checks.

Does this skill include safety checks for non-destructive database schema changes?

Yes, this skill includes safety checks for non-destructive database schema changes. It validates performance impacts, ensures reversibility, and applies safety checks to handle table alterations, column modifications, index creation, and data migration tasks securely.

How do I create a database migration when adding a new column to an existing table?

To create a database migration when adding a new column to an existing table, the skill detects your project's migration tool configuration, analyzes existing migration patterns, and generates the appropriate migration file with automatic safety and performance validations.

Do I need to manually specify my ORM tool before generating a database migration?

No, you do not need to manually specify your ORM tool before generating a database migration. The skill automatically detects project-specific ORM or migration tool configuration files to determine the correct syntax for your database schema changes.