data-integrity-auditor

Audits and repairs database integrity issues like orphaned records and constraint violations.

Updated Jan 24, 2026
One-click install
npx skills add https://github.com/Camilo8902/GabyCosmetics --skill data-integrity-auditor-camilo8902
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-integrity-auditor
Source: https://github.com/Camilo8902/GabyCosmetics/tree/main/.claude/skills/data-integrity-auditor
Command: npx skills add https://github.com/Camilo8902/GabyCosmetics --skill data-integrity-auditor-camilo8902

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses critical data integrity issues within your database, preventing data corruption and ensuring reliable information for decision-making.

Core Features & Use Cases

  • Orphaned Record Detection: Identifies records in one table that reference non-existent records in another (e.g., orders without users).
  • Broken Foreign Key Checks: Finds instances where relationships between tables are violated.
  • Constraint Violation Auditing: Detects violations of unique constraints, check constraints (e.g., negative prices), and NOT NULL constraints.
  • Automated Fixes: Provides scripts to automatically resolve detected integrity issues.
  • Prevention Guidance: Offers SQL migrations to add missing constraints, preventing future issues.
  • Use Case: Automatically audit your e-commerce database for orphaned orders or products with negative prices, and apply fixes to maintain data health.

Quick Start

Run the data integrity audit to identify and report on any detected issues.

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 detect orphaned records and broken foreign keys in an SQL database, run an audit using SQL queries to identify records referencing non-existent parent rows. The process generates scripts for automated repair and prevention.

What is database constraint violation auditing and when do I need it?

Database constraint violation auditing detects breaches of unique, check, and NOT NULL constraints, such as negative product prices. You need it when data corruption risks compromising reliability, ensuring accurate information for decision-making.

How do I automatically fix data integrity issues and prevent future corruption?

To automatically fix data integrity issues and prevent future corruption, execute generated scripts to resolve violations. Then apply provided SQL migrations to add missing constraints, blocking future invalid data entry.

Can I use SQL scripts to add missing constraints to an existing database?

Yes, you can use SQL scripts to add missing constraints to an existing database. The audit provides specific SQL migrations designed to enforce missing rules, preventing future data corruption without rebuilding the schema.

Does this data integrity auditor work with TypeScript and SQL queries?

Yes, the data integrity auditor works with SQL queries and TypeScript scripts. It combines SQL for comprehensive data validation and constraint generation with TypeScript scripts to execute automated fixes for detected integrity issues.