db-migration

Detect migration tools and orchestrate safe database migrations with dry-run previews, backups, and rollback.

20|4|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/algans/skillgen --skill db-migration-algans
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: db-migration
Source: https://github.com/algans/skillgen/tree/main/skills/db-migration
Command: npx skills add https://github.com/algans/skillgen --skill db-migration-algans

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Run database migrations safely across any ORM or migration tool with automatic detection, dry-run previews, destructive change warnings, mandatory backups, and rollback support.

Core Features & Use Cases

  • Automatic detection of the migration tool (Prisma, Knex, Sequelize, TypeORM, Drizzle, Alembic, Django, Rails)
  • Safety gates for destructive changes with explicit confirmation and rollback readiness
  • Full migration lifecycle: status checks, analysis, backup, dry-run, apply, verify, and rollback

Quick Start

Trigger automatic tool detection and review the dry-run preview before applying any migrations.

Frequently Asked Questions about db-migration

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

FAQPage Schema
How do I safely run database migrations across different ORMs?

Database migration safety is enforced through automatic tool detection, dry-run previews, destructive change warnings, mandatory production backups, and rollback support across supported ORMs like Prisma, TypeORM, and Django.

Can I use this to manage Prisma or TypeORM migrations with rollback support?

Yes, it supports managing Prisma, TypeORM, Knex, Sequelize, Drizzle, Alembic, Django, and Rails migrations, providing full lifecycle coverage from status checks and dry-runs to applying changes and executing rollbacks.

How do I preview destructive database schema changes before applying them?

You can preview destructive database schema changes using the built-in dry-run feature, which analyzes pending migrations and triggers explicit confirmation warnings before any potentially harmful schema modifications are applied.

Does this database migration tool work with both Sequelize and Alembic?

Yes, this database migration tool works with both Sequelize and Alembic, automatically detecting either framework to orchestrate the full migration lifecycle including backups, dry-runs, and rollbacks without manual configuration.

What is the best way to automate production database backups before running migrations?

The best way to automate production database backups before running migrations is to use a lifecycle manager that enforces mandatory backups as a prerequisite step, ensuring you can reliably restore data if a schema deployment fails.

Why do I need a dry-run preview for Rails or Django database migrations?

You need a dry-run preview for Rails or Django database migrations to identify potentially destructive changes and verify schema safety before execution, preventing accidental data loss during production deployments.