supabase-migrate

Generate Supabase SQL migration files with project-specific table, trigger, RLS, and index conventions.

1|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/aditya30103/ContentDeck --skill supabase-migrate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: supabase-migrate
Source: https://github.com/aditya30103/ContentDeck/tree/main/.claude/skills/supabase-migrate
Command: npx skills add https://github.com/aditya30103/ContentDeck --skill supabase-migrate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the creation of SQL migration files for Supabase projects, ensuring consistency and adherence to established project conventions for database schema changes.

Core Features & Use Cases

  • Automated SQL Generation: Creates migration files with correct table, trigger, RLS, and index patterns.
  • Convention Adherence: Follows specific patterns for UUIDs, timestamps, user IDs, and source detection.
  • Use Case: When adding a new feature that requires database changes, use this Skill to generate the necessary SQL migration file, including all required components like RLS policies and indexes, ensuring it fits seamlessly into the existing project structure.

Quick Start

Use the supabase-migrate skill to add a new table for user profiles with email and name columns.

Frequently Asked Questions about supabase-migrate

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

FAQPage Schema
How do I generate Supabase SQL migration files for new database tables?

To generate Supabase SQL migration files, you need a tool that automates creating `sql/migrate_*.sql` scripts adhering to project conventions for tables, triggers, RLS, and indexes. It ensures seamless schema evolution by applying correct UUID and timestamp patterns.

What conventions should a Supabase Postgres schema migration follow for UUIDs and RLS?

A Supabase Postgres schema migration should follow conventions for UUID primary keys, timestamps, user_id foreign keys, source detection functions, and RLS policies. Adhering to these established patterns ensures database schema consistency and automated policy enforcement across the project.

How do I add a new table with Row Level Security policies to an existing Supabase project?

To add a new table with RLS policies to an existing Supabase project, generate a migration file that includes table definitions, triggers, indexes, and the required RLS policy statements. This ensures the new schema changes fit seamlessly into the existing project structure.

Can I automate creation of SQL files for Supabase schema changes like triggers and indexes?

Yes, you can automate the creation of SQL files for Supabase schema changes. Automated SQL generation creates migration files with the correct table, trigger, RLS, and index patterns, facilitating schema evolution without manual syntax formatting.

Does automated Supabase migration generation work with existing Postgres database schemas?

Automated Supabase migration generation works with existing Postgres database schemas by detecting project-specific patterns for UUIDs, timestamps, and user IDs. It ensures that newly generated `migrate_*.sql` files comply with established source detection and RLS conventions.