What problem does it solve?
This Skill prevents production data corruption by providing a focused review workflow for database migrations, backfills, and any code that transforms live data, with emphasis on validating mappings and detecting swapped or inverted values.
Core Features & Use Cases
- Mapping Verification: Compare assumed mappings in code against live production values and require exact SQL queries that prove correctness.
- Migration Safety Checks: Validate up/down behavior, scoped UPDATEs, batching/throttling, dual-write strategies, and documented rollback procedures.
- Observability & Detection: Define post-deploy verification queries, metrics, and alerts to detect anomalies immediately after migration.
- Use Case: Use when a PR changes IDs, enums, or migrates data across columns and you need a reproducible verification plan plus rollback guardrails.
Quick Start
Review the migration in this pull request, list every affected table and mapping, provide SQL queries that verify production values, and supply a rollback or dual-write plan.