database-migrations
Installation
SKILL.md
Database Migration Patterns
Safe, reversible database schema changes for production systems.
When to Activate
- Creating or altering database tables
- Adding/removing columns or indexes
- Running data migrations (backfill, transform)
- Planning zero-downtime schema changes
- Setting up migration tooling for a new project
Core Principles
- Every change is a migration — use migration files instead of manual production SQL
- Migrations are forward-only in production — rollbacks use new forward migrations
- Schema and data migrations are separate — keep DDL and DML in distinct migrations
- Test migrations against production-sized data — a migration that works on 100 rows may lock on 10M
- Migrations are immutable once deployed — create a new migration instead of editing a deployed one