What problem does it solve?
This Skill safeguards data integrity by meticulously reviewing database migrations, data models, and persistent data code for potential safety, privacy, and compliance issues.
Core Features & Use Cases
- Database Migration Review: Ensures migrations are safe, reversible, idempotent, and do not cause data loss or performance degradation.
- Data Constraint Validation: Verifies the presence and correctness of data validations, uniqueness constraints, and foreign key relationships.
- Transaction Boundary Analysis: Assesses the proper use of transactions for atomic operations, isolation levels, and deadlock prevention.
- Referential Integrity Checks: Guarantees that relationships between data are maintained, preventing orphaned records and dangling references.
- Privacy Compliance: Identifies and checks for the proper handling of Personally Identifiable Information (PII), encryption, and data retention policies.
- Use Case: Review a new database migration script to ensure it safely adds a new column to a critical table without impacting existing data or causing downtime.
Quick Start
Use the data-integrity-guardian skill to review the attached database migration script for safety and compliance.