migration-reviewlisted
Install: claude install-skill paureis/pau-skills
# Migration review
A pre-flight review of a database migration. The question is never "is the SQL valid": the tool will tell you that.
The question is what this exact statement does to a table of this size, on this engine version, while the old code is
still serving traffic, and what is lost if it has to be undone.
Scope, from the arguments: $ARGUMENTS
Reference files, read when you reach their step:
- `${CLAUDE_SKILL_DIR}/LOCKS.md`: statement-by-statement risk table per engine (lock taken,
rewrite or scan, safe alternative), plus how migration tools wrap statements in transactions
- `${CLAUDE_SKILL_DIR}/PATTERNS.md`: expand/contract recipes (rename a column, change a type,
add NOT NULL, split a table, add a foreign key, add a unique constraint, drop a column) and batched backfills
- `${CLAUDE_SKILL_DIR}/SIZING.md`: queries for row counts, table sizes, write rates and long
transactions on PostgreSQL, MySQL, SQL Server and SQLite; run-time estimates; what to watch during the run
## Do not
- **Do not run the migration, or any part of it, against a shared, staging-used-by-others or production database.**
Not to "check the lock", not inside a transaction you plan to roll back (on PostgreSQL the lock is real until the
rollback; on MySQL DDL commits implicitly and cannot be rolled back at all).
- Do not run even read-only catalog queries against production without the user's explicit permission for that
connection. Prefer handing the user the queries from `SIZING.m