What problem does it solve? Applying database migrations manually risks concurrent execution conflicts, partial application, and no recovery path when something goes wrong. This Skill wraps migration execution in advisory locks, automatic snapshots, and transaction safety so schema changes are controlled and reversible. ## Core Features & Use Cases - Advisory Lock Protection: Acquires a PostgreSQL advisory lock via pg_try_advisory_lock to prevent concurrent migrations from corrupting the schema. - Automatic Snapshots: Creates schema-only pg_dump snapshots before and after the migration, plus an optional diff patch for review. - Transaction-Safe Execution: Runs migrations with ON_ERROR_STOP so failures roll back automatically without partial application. - Use Case: You have a new SQL migration file for your Supabase database. Run this Skill to apply it safely, get before/after snapshots stored in supabase/snapshots, and receive a rollback command if anything needs to be undone. ## Quick Start Apply the migration file at supabase/migrations/20240101_add_users.sql to my database with snapshots and locking enabled.