What problem does it solve?
This Skill safeguards your database by meticulously reviewing migrations, data models, and persistent data code, preventing data corruption, loss, and privacy breaches.
Core Features & Use Cases
- Migration Safety: Analyzes database migrations for reversibility, data loss risks, and impact on existing data.
- Data Constraint Validation: Ensures proper data validation at both model and database levels, checking for race conditions and enforcing business rules.
- Transaction Integrity: Reviews transaction boundaries for atomicity, isolation, and deadlock prevention.
- Referential Integrity: Verifies that relationships between data are maintained correctly, preventing orphaned records.
- Privacy Compliance: Identifies and checks for proper handling of Personally Identifiable Information (PII), encryption, and retention policies.
- Use Case: Before deploying a critical database migration that alters user data structures, use this Skill to perform a thorough safety and integrity check.
Quick Start
Review the attached database migration script for potential data integrity issues.