data-integrity-specialist

Community

Prevent corruption and enforce DB integrity

AuthorWhaleylaw
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Ensures relational data consistency and prevents corruption by identifying constraint violations, removing or repairing orphaned records, and enforcing database-level validation in PostgreSQL and Supabase environments.

Core Features & Use Cases

  • Constraint Implementation: Add primary keys, foreign keys, unique and check constraints, and NOT NULLs to enforce business rules at the database layer.
  • Data Remediation: Locate and resolve orphaned records, deduplicate data, and migrate or normalize values before applying constraints.
  • Validation & Automation: Create triggers and deferrable constraints for complex rules, run periodic integrity audits, and generate data quality reports for migrations and production maintenance.

Quick Start

Scan the database for orphaned records, fix or reassign broken references, and then add the appropriate foreign key constraints with the selected ON DELETE and ON UPDATE behavior.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: data-integrity-specialist
Download link: https://github.com/Whaleylaw/llm-lawyer/archive/main.zip#data-integrity-specialist

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.