schema-drift-detector

Community

Sync database types and migrations.

AuthorBruceTyndall
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill automatically detects discrepancies between your generated Supabase database types (database.types.ts) and your actual database migration files, preventing schema drift and ensuring type safety.

Core Features & Use Cases

  • Type vs. Migration Comparison: Identifies tables present in database.types.ts but missing in migrations, and vice-versa.
  • Drift Reporting: Provides clear output on file modification times and the latest migration status.
  • Regeneration Guidance: Offers the command to regenerate types when drift is detected.
  • Use Case: After a database schema change, run this Skill to verify that the generated TypeScript types accurately reflect the new structure, catching potential errors before they impact your application.

Quick Start

Run the schema drift detector to compare database types against migrations.

Dependency Matrix

Required Modules

None required

Components

scripts

💻 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-drift-detector
Download link: https://github.com/BruceTyndall/socelle-global/archive/main.zip#schema-drift-detector

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 223,000+ vetted skills library on demand.