supabase-workflow
Installation
SKILL.md
Database Migrations
Creating New Migrations
CRITICAL: Always use npx supabase migration new <name> to create migration files. Never create them manually.
npx supabase migration new descriptive_migration_name
This creates a properly timestamped migration file in supabase/migrations/.
Applying Migrations
When changes are already applied to the database (e.g., via direct SQL execution), mark the migration as applied without re-running:
# Mark migration as applied (skip execution)
npx supabase migration repair --status applied <timestamp>
Related skills