database-migrations-management

Installation
SKILL.md

Database Migrations

Use this skill when

  • Writing and reviewing schema migrations
  • Applying migrations to production safely
  • Rolling back and repairing migrations

Do not use this skill when

  • Ad-hoc DDL in production
  • Schema design from scratch (use its own skill)

Instructions

  1. Every schema change is a reviewable, numbered migration.
  2. Prefer additive changes; avoid destructive or long-locking DDL.
  3. Use expand-and-contract for large tables (backfill, then swap).
  4. Run migrations in CI against a migrated-staged test DB.
  5. Set timeouts and avoid full-table rewrites during peak.
  6. Provide a tested rollback or forward-fix path.
  7. Mirror production shape before release.
Installs
1
First Seen
Oct 22, 2026