What problem does it solve?
This skill eliminates the high risk of production outages, data corruption, and service downtime caused by unplanned or unsafe database schema and data changes, a common pain point for engineering teams managing live production databases.
Core Features & Use Cases
- Cross-database and ORM support: Provides guidance for PostgreSQL, MySQL, and popular ORMs including Prisma, Drizzle, Django, TypeORM, and golang-migrate.
- Zero-downtime deployment patterns: Implements the expand-contract workflow for schema changes that do not interrupt live user traffic.
- Safe large-scale data migrations: Includes batched backfill logic to avoid full table locks when transforming data on large datasets.
- Use Case: For example, if you need to add a new non-null unique column to a 10 million row users table, this skill guides you through adding the column as nullable, backfilling data in small batches, then adding the non-null constraint without any service downtime.
Quick Start
Use the database-migrations skill to create a zero-downtime migration plan for adding a new indexed email column to your production users table.