What problem does it solve?
This Skill addresses the critical need for maintaining database schema integrity, ensuring consistency between code, migrations, and the live database, and verifying security policies.
Core Features & Use Cases
- Migration Validation: Checks migration files for correct ordering, naming, and adherence to ADD-ONLY policies.
- Schema Drift Detection: Identifies discrepancies between TypeScript types and actual database schema.
- Type Generation Verification: Ensures TypeScript types accurately reflect the database schema and are used correctly.
- Database Inspection: Performs a full inventory of database objects, including tables, columns, RLS policies, indexes, and triggers.
- Use Case: Before deploying a new feature that modifies the database, run this suite to catch potential migration errors, ensure type safety, and confirm that Row Level Security policies are correctly applied, preventing costly production issues.
Quick Start
Run the schema-db-suite to validate all database migrations and types.