Skill
Database Migration Safety
Plans schema changes that run without downtime: expand and contract steps, safe backfills, lock checks and a tested rollback for each migration.
database-migration-safety/SKILL.md
1Assume the old and the new application code run at the same time during the deploy.
2Steps
31. Read the migration and find the table size and traffic. Name the lock each statement takes (`ACCESS EXCLUSIVE` blocks all reads and writes).
42. Split risky changes using expand and contract:
5- Expand: add the new column as nullable with no default, or add the new table. Deploy code that writes both old and new.
Claude CodeCodex
{ }
Database Migration Safety
SkillDatabases
Free