schema-consistency-checker

Audit database schemas for naming, type, nullability, and constraint violations.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @prisma/client, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the common issue of inconsistent and error-prone database schemas by automatically auditing them against predefined best practices and naming conventions.

Core Features & Use Cases

  • Schema Auditing: Checks for naming convention violations, type inconsistencies, improper nullability, and missing constraints.
  • Violation Reporting: Generates a detailed report of all identified issues with severity levels (error, warning, info).
  • Fix Recommendations: Provides specific SQL or code-based recommendations for resolving each violation.
  • Auto-fix Migrations: Generates SQL migration scripts to automatically apply common fixes.
  • Use Case: Ensure all new database tables and columns adhere to the company's established naming standards and data integrity rules before they are deployed to production.

Quick Start

Run the schema consistency checker to audit the current database schema and generate a report of violations.

Frequently Asked Questions about schema-consistency-checker

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

FAQPage Schema
How do I check my database schema for naming convention violations and missing constraints?

Database schema consistency checking involves auditing schemas against predefined best practices using SQL queries against information_schema. It identifies naming convention violations, type inconsistencies, improper nullability, and missing constraints, producing a violations report with severity levels and recommended fixes.

Can I automatically generate SQL migration scripts to fix database schema inconsistencies?

You can automatically generate SQL migration scripts to fix database schema inconsistencies. The schema auditing process analyzes violations and outputs auto-fix migration scripts that apply common corrections for naming conventions, type mismatches, and missing constraints.

Does this schema auditing tool work with Prisma client for schema introspection?

Schema auditing works with the Prisma client for schema introspection and analysis. It utilizes Prisma client alongside SQL queries against information_schema to examine database structures and validate them against established naming and data integrity rules.

What is the best way to enforce database schema standards before deploying to production?

The best way to enforce database schema standards is to run an automated schema consistency checker that audits tables and columns against company naming standards and data integrity rules, generating a violations report and auto-fix migrations before production deployment.

What types of database schema violations are detected during a consistency audit?

A database schema consistency audit detects naming convention violations, type inconsistencies, improper nullability patterns, and missing constraints. The audit reports these issues with severity levels like error, warning, and info, alongside specific SQL or code-based recommendations for resolving each violation.