data-integrity-auditor

Detect orphaned records, broken foreign keys, and constraint violations in relational databases.

5|Updated Dec 31, 2025
One-click install
npx skills add https://github.com/patricio0312rev/skillset --skill data-integrity-auditor-patricio0312rev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-integrity-auditor
Source: https://github.com/patricio0312rev/skillset/tree/main/templates/db-management/data-integrity-auditor
Command: npx skills add https://github.com/patricio0312rev/skillset --skill data-integrity-auditor-patricio0312rev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Detects data integrity issues including orphaned records, broken foreign key relationships, constraint violations, and provides automated fix migrations. Use for "data integrity", "orphaned records", "broken relationships", or "data quality".

Core Features & Use Cases

  • Detect orphaned records across related tables and surface remediation steps.
  • Identify broken foreign key relationships and constraint violations to prevent data corruption.
  • Provide automated fix migrations and guidance for safe data repair.
  • Optional preventive measures via migration scripts to enforce constraints.

Quick Start

Run the data-integrity-auditor to audit your database and generate an actionable remediation plan.

Frequently Asked Questions about data-integrity-auditor

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

FAQPage Schema
How do I find orphaned records and broken foreign keys in my SQL database?

To find orphaned records and broken foreign keys in a SQL database, run an audit script that validates relational constraints and surfaces data quality gaps. This generates an actionable report detailing constraint violations and remediation steps.

Can I automatically fix data integrity issues and generate repair migrations using Prisma?

Yes, you can automatically fix data integrity issues using Prisma queries and TypeScript. The process generates automated fix migrations and preventive scripts to safely repair broken relationships and enforce constraints across your database.

What is data integrity auditing and when do I need it for my ORM?

Data integrity auditing identifies orphaned records, broken relationships, and constraint violations within a database. You need it during migrations, testing phases, or when preventing data corruption across relational tables managed by an ORM.

Does the data quality audit work with TypeScript and Prisma-based queries?

Yes, the data quality audit works with TypeScript and Prisma queries. It implements validation checks and optional fixes specifically designed to locate data quality gaps within environments using relational databases and the Prisma ORM.

What's the best way to prevent data corruption from broken foreign key relationships?

The best way to prevent data corruption from broken foreign keys is to implement preventive migration scripts that enforce constraints. Regular integrity audits validate relationships and provide actionable findings to guide safe data repair.