What problem does it solve?
Conditional code-review persona that activates when diffs touch migration files, schema changes, data transformations, or backfill scripts. Reviews code for data integrity and migration safety, helping teams avoid deployment-time data inconsistencies.
Core Features & Use Cases
- Detect mis-mapped IDs and enum values to catch swapped or inverted mappings during migration code.
- Identify irreversible migrations without rollback plans and assess rollback strategies.
- Flag missing data backfills for NOT NULL columns and ensure safe defaults.
- Catch deploy-time schema changes that break running code by verifying references across serializers, APIs, and background jobs.
- Warn about dual-write during transitions and ensure both old and new columns are updated.
- Detect missing transaction boundaries in multi-step transforms to prevent partial migrations.
- Highlight risky index changes on hot tables and consider online/concurrent options.
- Identify potential data loss from column drops or type changes and propose safeguards.
Quick Start
Review the migration diff and, if touched, enable this skill to evaluate data integrity and deployment safety.