data-integrity-guardian

Review database migrations and data models for integrity and compliance.

3|1|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/i3ringit/antigravity-cortex --skill data-integrity-guardian
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-integrity-guardian
Source: https://github.com/i3ringit/antigravity-cortex/tree/main/.agent/skills/data-integrity-guardian
Command: npx skills add https://github.com/i3ringit/antigravity-cortex --skill data-integrity-guardian

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill acts as a data integrity guardian, auditing migrations, data models, and governance rules to prevent data loss, preserve referential integrity, and ensure compliance with privacy regulations.

Core Features & Use Cases

  • Migration safety reviews: evaluate reversibility, rollback safety, idempotency, and potential data loss.
  • Constraint and integrity validation: verify NOT NULL constraints, foreign keys, unique constraints, and race conditions; ensure business rules are consistently enforced.
  • Transactional integrity and governance: ensure atomic operations, proper isolation, and robust rollback handling; apply across complex multi-step migrations.
  • Privacy and compliance support: identify PII, ensure data minimization, maintain audit trails, and support GDPR/CCPA data requests.

Quick Start

  • To begin, provide the migration script and related schema details to the data-integrity-guardian and request a safety review.
  • Example: User asks: "Please review the add_status_to_orders migration for safety and data integrity." Assistant responds with a structured assessment covering reversibility, constraints, and privacy considerations.

Frequently Asked Questions about data-integrity-guardian

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

FAQPage Schema
How do I ensure database migrations don't cause data loss?

Migration safety reviews evaluate reversibility, rollback capability, and idempotency to prevent data loss. The data-integrity-guardian audits migration scripts for potential issues before deployment, checking for constraint violations, incomplete rollbacks, and unsafe schema changes that could corrupt or delete data.

What should I check for referential integrity in database schema changes?

Referential integrity validation verifies foreign keys, NOT NULL constraints, unique constraints, and race conditions are preserved during migrations. The guardian ensures business rules remain consistently enforced across schema modifications and identifies constraints that could be violated by data transformations.

How do I handle privacy compliance in database migrations?

Privacy and compliance support identifies personally identifiable information, ensures data minimization, maintains audit trails, and facilitates GDPR and CCPA data requests. The guardian reviews migrations to confirm sensitive data is handled according to regulatory requirements and organizational policies.

Can I audit transactional integrity across multi-step migrations?

Yes. The guardian validates atomic operations, proper isolation levels, and robust rollback handling for complex multi-step migrations. It ensures transactional boundaries are maintained and that partial failures are handled safely without leaving data in inconsistent states.

What's the best way to review a migration before applying it to production?

Provide the migration script and related schema details to receive a structured assessment covering reversibility, constraint validation, transactional safety, and compliance considerations. This proactive review identifies risks and ensures the migration meets safety and governance requirements before deployment.