review-migrations
Review Alembic migrations for production safety. Checks zero-downtime, CONCURRENTLY for indexes, expand-contract for renames, downgrade presence. Conditional — only when migrations exist.
Files1
View on GitHubSKILL.mdskills/review-migrations/SKILL.md
GitHubReview Migrations
When to run
Only when the REQ includes changes to backend/alembic/versions/.
Otherwise, skip this step entirely.
Input
- Migration files in
backend/alembic/versions/ - Frozen schema from Phase 3
Process
- List all migration files changed/created in this cycle
- For each migration, apply the safety checklist in
migration-reviewer.md - Produce findings with severity
- Verify downgrade() is implemented
- Estimate execution time on production data size
Output
Produce a review report with verdict APPROVED / APPROVED_WITH_NOTES / CHANGES_REQUIRED.
See .claude/agents/migration-reviewer.md for the full output format.
Rules
- BLOCKER on one-shot destructive change
- HIGH on NOT NULL without default
- MEDIUM on CREATE INDEX without CONCURRENTLY for large tables
- Downgrade is mandatory
- Run [[verify-output]] before returning