supabase-migration-local

Generate timestamped Supabase SQL migration files for schema changes.

1|Updated Apr 17, 2026
One-click install
npx skills add https://github.com/esneiderbravo/hackaton --skill supabase-migration-local
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: supabase-migration-local
Source: https://github.com/esneiderbravo/hackaton/tree/main/.claude/skills/supabase-migration-local
Command: npx skills add https://github.com/esneiderbravo/hackaton --skill supabase-migration-local

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers create a new Supabase database migration by generating a timestamped SQL file in supabase/migrations/ and ensuring it is not executed automatically. The file is prepared for review and manual application, reducing the risk of unintended schema changes.

Core Features & Use Cases

  • Automatically generate a timestamped SQL migration file following the project's naming convention.
  • Include a description and SQL content, with an optional rollback section, for safe deployment.
  • Use cases include adding tables, altering columns, or creating indexes within a Supabase project.

Quick Start

Describe the desired schema change and this skill will generate a timestamped migration file in supabase/migrations.

Frequently Asked Questions about supabase-migration-local

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

FAQPage Schema
How do I generate a timestamped Supabase migration file safely?

To generate a timestamped Supabase migration safely, describe your desired schema change and SQL content to create a file in supabase/migrations/ that follows naming conventions and is prepared for manual review rather than automatic execution.

What is the best way to add a rollback to a Supabase SQL migration?

The best way to add a rollback to a Supabase SQL migration is to include an optional rollback section when generating the file, allowing you to safely revert schema changes like adding tables or altering columns during deployment.

Can I automatically alter tables and columns in Supabase without unintended schema changes?

You cannot automatically execute schema changes, but you can automatically generate a timestamped SQL migration file for altering tables and columns that is safely prepared for your manual review and application.

How do I enforce a naming convention for database migrations in a Supabase project?

To enforce a naming convention for database migrations in a Supabase project, use a migration generator that automatically timestamps and formats the SQL file in the supabase/migrations/ directory, capturing details for traceability.

Does generating a Supabase migration file automatically apply the SQL changes to my database?

Generating a Supabase migration file does not automatically apply the SQL changes to your database; the file is explicitly prepared for manual review and application to reduce the risk of unintended schema changes.

When do I need a timestamped SQL migration file for Supabase database schema changes?

You need a timestamped SQL migration file for Supabase database schema changes when adding or altering tables, columns, or indexes, ensuring the changes are traceable and safely separated from automatic execution.