What problem does it solve?
This Skill prevents production data breakage by auditing whether schema, migration, persistence, imports, deletes, or background jobs preserve existing rows, constraints, and related child data.
Core Features & Use Cases
- NOT NULL & backfill safety checks: Detects new NOT NULL columns added without defaults or backfill steps that would fail on existing data.
- Orphan and cascade risk analysis: Flags deletes/destroys/removals that can leave orphaned child rows or external side effects (files, cache, webhook subscriptions).
- Uniqueness enforcement review: Finds cases where code assumes uniqueness but the database schema does not enforce it.
- Seed/fixture drift detection: Compares fixtures against the updated schema to catch missing/removed required fields.
- Destructive migration warnings: Highlights irreversible operations like DROP COLUMN/TABLE/TRUNCATE to prompt backup and rollback planning.
Quick Start
Run the code-check-data-integrity scan after you modify a migration, schema, delete/destroy logic, or background job that affects persisted state.