What problem does it solve? Database changes are among the riskiest operations in production systems: a careless migration can lock tables, corrupt data, or be impossible to roll back. This Skill enforces disciplined review of schemas, migrations, indexes, transactions, and query plans so production data stays protected before any change ships. ## Core Features & Use Cases - Migration Safety Review: Enforces expand-contract phasing, online DDL techniques (e.g., CREATE INDEX CONCURRENTLY, lock_timeout, NOT VALID constraints), and mandatory rollback plans for every migration. - Query Plan and Isolation Guidance: Provides deep references for reading Postgres EXPLAIN output and choosing correct transaction isolation levels, including write-skew and serialization-failure handling. - Data Integrity Rules: Requires DB-level uniqueness constraints, supporting indexes for foreign keys and query predicates, and batched, resumable, reversible backfills. - Use Case: Before deploying a migration that adds a column with a default to a large Postgres table, use this Skill to verify the DDL is metadata-only or plan a batched backfill, confirm lock behavior, and document the rollback path. ## Quick Start Use the database skill to review my Postgres migration for locking, rollout, and rollback risks before I deploy it.