data-integrity-guardian

Review database migrations for rollback safety, constraints, and PII risks.

12|2|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/jikig-ai/soleur --skill data-integrity-guardian-jikig-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-integrity-guardian
Source: https://github.com/jikig-ai/soleur/tree/main/.openhands/skills/data-integrity-guardian
Command: npx skills add https://github.com/jikig-ai/soleur --skill data-integrity-guardian-jikig-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill protects production data by identifying risks in database migrations, schema changes, and application code that manipulates persistent data to prevent data loss, corruption, and privacy violations.

Core Features & Use Cases

  • Migration Safety Review: Evaluate reversibility, idempotence, long-running operations, and rollback strategies for planned migrations.
  • Constraint and Transaction Validation: Verify NOT NULL constraints, foreign keys, uniqueness handling, transaction boundaries, and isolation-level risks that could cause corruption or deadlocks.
  • Privacy and Compliance Checks: Detect PII, recommend encryption, retention, anonymization, and audit trail requirements to meet GDPR/CCPA obligations.
  • Use Case: Before deploying a major schema migration that splits a user table and rekeys identifiers, run this Skill to identify potential orphaned records, long locks, and steps to migrate existing data safely.

Quick Start

Review the attached migration and model files for rollback safety, referential integrity, transaction boundaries, and PII risks and provide concrete remediation steps and migration strategies.

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 data loss during database schema migrations?

Preventing data loss during database schema migrations requires evaluating rollback safety, idempotence, and transaction boundaries. Reviewing referential integrity and null constraints before deployment protects persistent data against corruption and orphaned records.

What is rollback safety in database migration and how does it work?

Rollback safety in database migration is the ability to reverse schema changes without losing data. It works by evaluating transaction scopes, cascade behaviors, and null handling to ensure failed deployments can cleanly revert to a prior stable state.

How do I check PII compliance for database schema changes?

Checking PII compliance for database schema changes involves detecting personally identifiable information in new data models and evaluating encryption, retention, anonymization, and audit trail requirements to meet GDPR and CCPA privacy obligations.

How do I handle NOT NULL constraints and foreign keys during data migration?

Handling NOT NULL constraints and foreign keys during data migration requires validating transaction boundaries and isolation levels. Checking uniqueness handling and cascade behaviors prevents deadlocks and referential integrity failures in production environments.

What is the best way to review transaction boundaries for production data migrations?

The best way to review transaction boundaries for production data migrations is analyzing transaction scopes and isolation-level risks. Validating constraint handling and cascade behaviors prevents deadlocks and ensures data integrity during staging and production deployments.

When should I not use schema migration without referential integrity checks?

Schema migration without referential integrity checks should be avoided when deploying changes that split tables or rekey identifiers. Skipping constraint validation risks orphaned records, long locks, and privacy violations in production environments.