supabase-migration

Manage Supabase PostgreSQL schema migrations with Drizzle ORM and TypeScript.

Updated Feb 21, 2026
One-click install
npx skills add https://github.com/titabash/gemini-hackathon-game --skill supabase-migration-titabash
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: supabase-migration
Source: https://github.com/titabash/gemini-hackathon-game/tree/main/.claude/skills/supabase-migration
Command: npx skills add https://github.com/titabash/gemini-hackathon-game --skill supabase-migration-titabash

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the process of creating, applying, and managing database schema migrations for Supabase PostgreSQL using Drizzle ORM, ensuring data integrity and consistency.

Core Features & Use Cases

  • Schema Definition: Define your database schema declaratively in TypeScript using Drizzle ORM.
  • Migration Generation: Automatically generate SQL migration files based on schema changes.
  • Database Application: Apply migrations to local development databases and production environments.
  • Type Generation: Generate TypeScript types for your database schema, enabling type-safe access in Edge Functions.
  • Use Case: When adding a new products table with columns like name, description, and price, this Skill will generate the necessary SQL and update your database schema.

Quick Start

Use the supabase-migration skill to generate and apply a new database migration for your schema changes.

Frequently Asked Questions about supabase-migration

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

FAQPage Schema
How do I manage Supabase database schema migrations using Drizzle ORM?

You can manage Supabase database schema migrations by declaratively defining your schema in TypeScript with Drizzle ORM, which then automatically generates and applies the corresponding SQL migration files to your PostgreSQL database.

Can I generate TypeScript types for Supabase Edge Functions from my database schema?

Yes, type generation is supported. The Skill generates TypeScript type definitions directly from your database schema, enabling type-safe data access within your Supabase serverless Edge Functions.

What is the best way to apply schema changes to a Supabase PostgreSQL database?

The best way to apply schema changes is to define your tables declaratively in TypeScript, generate SQL migration files automatically, and apply those migrations directly to your local development or production Supabase PostgreSQL database.

Does this approach support advanced PostgreSQL features like RLS policies and triggers?

Yes, the approach supports advanced PostgreSQL features. You can define custom SQL, Row Level Security (RLS) policies, and database triggers directly within your Drizzle ORM TypeScript schema definitions.

How do I add a new table to my Supabase database schema using TypeScript?

To add a new table, you define the table and its columns declaratively in TypeScript using Drizzle ORM, and the Skill will generate the necessary SQL migration file and update your Supabase PostgreSQL database schema accordingly.