data-integrity-guardian

Review database migrations for reversibility, data loss, and privacy compliance risks.

1|Updated Apr 4, 2026
One-click install
npx skills add https://github.com/ybbms777/compound-engineering --skill data-integrity-guardian-ybbms777
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-integrity-guardian
Source: https://github.com/ybbms777/compound-engineering/tree/main/skills/agent-data-integrity-guardian
Command: npx skills add https://github.com/ybbms777/compound-engineering --skill data-integrity-guardian-ybbms777

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the risk of accidental data corruption, irreversible data loss during database migrations, and non-compliance with data privacy regulations that arise when modifying database schemas, data models, or persistent data code without rigorous integrity checks.

Core Features & Use Cases

  • Database Migration Safety Review: Identifies reversibility gaps, rollback risks, potential data loss scenarios, NULL handling issues, and long-running table lock risks in migration scripts.
  • Data Constraint & Integrity Validation: Verifies proper validations at model and database levels, foreign key relationship correctness, uniqueness constraint race condition prevention, and missing NOT NULL constraints.
  • Privacy Compliance Checks: Detects personally identifiable information (PII), verifies encryption of sensitive fields, and ensures alignment with GDPR/CCPA right-to-deletion and data retention requirements. Use Case: For example, when preparing to deploy a migration that adds a non-null column to a production table with millions of rows, use this Skill to identify potential data loss and lock issues before execution.

Quick Start

Use the data-integrity-guardian skill to review the database migration and associated model code for the new user preferences feature for data integrity risks and compliance gaps.

Frequently Asked Questions about data-integrity-guardian

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent irreversible data loss during database schema migration?

Prevent irreversible data loss during database schema migration by reviewing migration scripts for reversibility gaps, rollback risks, NULL handling issues, and long-running table lock scenarios before execution.

How does referential integrity validation work for foreign key relationships?

Referential integrity validation verifies foreign key relationship correctness, uniqueness constraint race condition prevention, and missing NOT NULL constraints at both the data model and database levels.

What is the best way to check database changes for GDPR and CCPA compliance?

Check database changes for GDPR and CCPA compliance by detecting personally identifiable information (PII), verifying sensitive field encryption, and validating right-to-deletion and data retention alignment.

How do I review persistent data operation code for transaction boundary correctness?

Review persistent data operation code for transaction boundary correctness by validating ACID compliance, proper data constraints, and rollback safety within database-related development workflows.

Does this data integrity review work for production database change risk assessment?

This data integrity review works for production database change risk assessment by identifying potential data loss, lock issues, and privacy non-compliance in schema migrations before deployment.

When should I not use automated data validation for database schema changes?

Avoid automated data validation when schema changes lack clear rollback paths, when migration scripts bypass standard transaction boundaries, or when persistent data operations bypass model-level constraints entirely.