supabase-migration

Create and validate Supabase SQL migration files with naming conventions.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/ninyawee/dotfiles --skill supabase-migration-ninyawee
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: supabase-migration
Source: https://github.com/ninyawee/dotfiles/tree/main/dot_claude/saved_skills/supabase-migration
Command: npx skills add https://github.com/ninyawee/dotfiles --skill supabase-migration-ninyawee

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a robust toolkit for managing Supabase database migrations, ensuring consistency, adherence to naming conventions, and efficient schema evolution.

Core Features & Use Cases

  • Migration Generation: Create new SQL migration files with proper naming conventions.
  • Schema Management: Write and validate schema changes, including tables, functions, indexes, and RLS policies.
  • Convention Enforcement: Automatically checks for adherence to strict naming and versioning rules.
  • Use Case: When developing a new feature that requires a new table and associated RLS policies, use this Skill to generate the migration file, define the schema according to best practices, and ensure it's ready for deployment.

Quick Start

Use the supabase-migration skill to create a new migration file for adding a users table.

Frequently Asked Questions about supabase-migration

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

FAQPage Schema
How do I create a Supabase migration file for a new SQL table?

You can generate a Supabase migration file for a new SQL table using the Python-based CLI tool, which automatically enforces strict naming conventions. This ensures your table schema adheres to project best practices before deployment.

What is the best way to manage RLS policies in Supabase migrations?

The best way to manage RLS policies in Supabase migrations is by generating dedicated policy files through a CLI tool. This approach validates your row level security schema changes against strict rules to ensure consistent access control.

How do I enforce naming conventions for SQL schema migrations?

You enforce naming conventions for SQL schema migrations by running automated linting and validation checks on your migration files. This ensures adherence to strict versioning rules for tables, functions, and RLS policies.

Can I use a Python CLI to validate Supabase database schema changes?

Yes, you can use a Python CLI to validate Supabase database schema changes. The tool facilitates the creation and linting of SQL migration files, checking that all alterations and function definitions meet strict validation standards.

Do I need any dependencies to run automated linting on Supabase migration files?

No external dependencies are required to run automated linting on Supabase migration files. The Python-based CLI operates independently to validate SQL syntax and enforce strict naming conventions without additional environment setup.