schema-consistency-checker

Community

Enforce database schema standards.

Authorzinohome
Version1.0.0
Installs0

System Documentation

What problem does it solve?

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

Core Features & Use Cases

  • Naming Convention Audits: Checks tables, columns, indexes, and foreign keys against defined patterns (e.g., PascalCase for tables, camelCase for columns).
  • Type Consistency Checks: Ensures data types, especially for IDs and foreign keys, are uniform across the schema.
  • Nullability Enforcement: Identifies critical fields that should not be nullable and flags missing NOT NULL constraints.
  • Constraint Validation: Detects missing foreign key constraints, check constraints, and unique constraints.
  • Performance Optimization: Flags foreign keys that lack corresponding indexes.
  • Timestamp Audits: Ensures tables include created_at and updated_at timestamps.
  • Use Case: A development team can integrate this skill into their CI/CD pipeline to automatically catch schema deviations before they are merged, preventing costly refactoring later.

Quick Start

Run the schema consistency checker against your database to identify any violations.

Dependency Matrix

Required Modules

@prisma/client

Components

scriptsreferences

💻 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: schema-consistency-checker
Download link: https://github.com/zinohome/CozyChat/archive/main.zip#schema-consistency-checker

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.