database-types-generator

Regenerate and validate TypeScript database types against Supabase schema migrations.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/BruceTyndall/socelle-global --skill database-types-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-types-generator
Source: https://github.com/BruceTyndall/socelle-global/tree/main/.agents/skills/database-types-generator
Command: npx skills add https://github.com/BruceTyndall/socelle-global --skill database-types-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Ensures that your TypeScript database types accurately reflect your Supabase schema migrations, preventing runtime errors and improving developer confidence.

Core Features & Use Cases

  • Automatic Type Regeneration: Generates database.types.ts from Supabase schema.
  • Freshness Validation: Verifies that type definitions are up-to-date with the latest migrations.
  • Use Case: After adding a new table or modifying an existing one in Supabase, run this skill to automatically update your application's type definitions and confirm they match the current schema.

Quick Start

Run the database-types-generator skill to regenerate and validate database types.

Frequently Asked Questions about database-types-generator

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

FAQPage Schema
How do I generate TypeScript types from Supabase schema migrations?

To generate TypeScript types from Supabase schema migrations, run this skill to automatically regenerate the database.types.ts file and ensure your application code accurately reflects the current database schema.

Why do I get runtime errors when my Supabase schema changes?

Runtime errors often occur because your TypeScript database types are out of sync with your Supabase schema migrations, so regenerating your type definitions restores type safety and prevents mismatch errors.

What is the best way to validate database type freshness against Supabase?

The best way to validate database type freshness is to use a skill that checks your TypeScript type definitions against the latest Supabase schema migrations to verify they are up-to-date.

Can I use database-types-generator without any external dependencies?

Yes, you can use this skill without external dependencies because it operates independently to regenerate database type definitions and validate their freshness directly against your Supabase schema migrations.

When should I regenerate database types in my development workflow?

You should regenerate database types in your development workflow immediately after adding a new table or modifying an existing one in Supabase, ensuring your TypeScript definitions maintain accurate type safety with the updated schema.