migrate-db

Generate rollback-ready UP and DOWN database migration scripts across common frameworks.

1|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/anshul-garg27/claude-enhancement-suite --skill migrate-db-anshul-garg27
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: migrate-db
Source: https://github.com/anshul-garg27/claude-enhancement-suite/tree/main/.claude/skills/migrate-db
Command: npx skills add https://github.com/anshul-garg27/claude-enhancement-suite --skill migrate-db-anshul-garg27

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the safe creation and management of database migrations across popular tooling, ensuring UP/DOWN scripts exist and can be rolled back without data loss.

Core Features & Use Cases

  • Framework detection: identifies the migration tool in use (Drizzle, Prisma, Alembic, Flyway, Django, Knex, etc.).
  • Generate safe migrations: produces UP scripts and corresponding DOWN scripts with rollback safety.
  • Validation & safety: analyzes changes for data safety, potential data loss, and locking concerns; provides guidance on best practices.
  • Deliverables: outputs migration files ready for deployment and clear rollback steps.

Quick Start

Provide a migration description and let the skill generate a safe UP/DOWN migration for your project's migration framework.

Frequently Asked Questions about migrate-db

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

FAQPage Schema
How do I generate safe database migrations with rollback scripts?

To generate safe database migrations, provide a migration description and the tool identifies your framework to produce corresponding UP and DOWN scripts with safety validations and rollback guidance.

How does automatic framework detection work for database migration tools?

Automatic framework detection works by analyzing your project to identify the active database migration tool, supporting Drizzle, Prisma, Alembic, Flyway, Django, Knex, and raw SQL workflows.

Can I use this to create rollback-ready migrations for Prisma and Alembic?

Yes, you can use this to create rollback-ready migrations for Prisma and Alembic. It detects the specific framework in use and generates the appropriate deployment-ready UP and DOWN scripts.

What is the best way to prevent data loss during database schema migrations?

The best way to prevent data loss during database schema migrations is to analyze changes for data safety and locking concerns, generating paired UP and DOWN scripts that ensure safe rollback capabilities.

How do I validate potential data loss risks before applying a database migration?

You validate potential data loss risks by analyzing migration changes for data safety and locking concerns, which provides guidance on best practices and ensures rollback safety before deployment.