Migration Auditor is a skill that analyzes database migration files and produces a structured audit report before those migrations are deployed. Point it at migration files from Rails, Django, Laravel, Prisma, Drizzle, Knex, TypeORM, Sequelize, Flyway, Liquibase, or raw SQL and it checks more than 30 conditions organized around destructive operations, locking hazards, data integrity risks, index issues, migration ordering, environment-specific behavior, and transaction safety.
Checks are engine-specific, which matters because PostgreSQL, MySQL/MariaDB, and SQLite behave differently under DDL. For example, it detects ADD COLUMN NOT NULL DEFAULT on PostgreSQL versions below 11, where the operation is dangerous, versus 11 and above where fast defaults make it safe. It flags CREATE INDEX statements missing CONCURRENTLY, which block writes on large tables, and rewrites them. On MySQL it identifies ALTER TABLE operations that trigger a full table copy and suggests pt-online-schema-change or gh-ost instead. It also validates that rollback methods genuinely reverse their forward migration rather than being empty stubs, and catches foreign key constraints added without NOT VALID on PostgreSQL, which causes a locking full validation scan.
Each identified issue receives a pass, warn, or fail classification along with corrected migration code. When multiple migration files are submitted together, the report includes a recommended deploy order. The skill distinguishes between migrations that are safe on a small development database and those that will lock a large production table for minutes.