new-migration

Generate Supabase SQL migration scripts with RLS, indexes, and timestamps.

Updated May 30, 2026
One-click install
npx skills add https://github.com/buitrankimlong/thongtincty --skill new-migration-buitrankimlong
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-migration
Source: https://github.com/buitrankimlong/thongtincty/tree/main/.claude/skills/new-migration
Command: npx skills add https://github.com/buitrankimlong/thongtincty --skill new-migration-buitrankimlong

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sqlalchemy, psycopg2, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automatically generates a Supabase SQL migration file, complete with standard RLS (Row Level Security), indexes, and timestamps, streamlining the process of adding new tables or altering existing schema.

Core Features & Use Cases

  • Migration Generation: Automatically create a migration script for adding or altering a table in Supabase.
  • Standardization: Ensures that every migration script follows a standardized format for easy management and rollback.
  • Use Case: Ideal for database administrators or developers looking to maintain consistency across multiple migrations in their Supabase project.

Quick Start

Use the new-migration skill to generate a migration script for a new 'projects' table in the Supabase database.

Frequently Asked Questions about new-migration

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

FAQPage Schema
How do I generate a Supabase SQL migration script with Row Level Security?

This Skill generates a Supabase SQL migration script that automatically includes standard Row Level Security policies, indexes, and timestamp columns for new or altered database tables.

How do I automate database migrations for adding new tables in Supabase?

Automate database migrations by using this Skill to output a structured SQL file for adding or altering tables. It ensures consistent schema management and streamlined rollback capabilities across your Supabase environment.

Does this Supabase migration generator require PostgreSQL for execution?

Yes, this Supabase migration generator requires PostgreSQL for execution. It also depends on SQLAlchemy and psycopg2 libraries to function properly within your database automation workflow.

What is the best way to standardize SQL migration scripts across a Supabase project?

The best way to standardize SQL migration scripts is to use this Skill, which enforces a consistent format for every migration file by automatically injecting required RLS, indexes, and timestamps into the generated SQL.

Can I modify existing database schema using this Supabase migration script generator?

Yes, you can modify existing database schema using this Supabase migration script generator. It supports generating SQL scripts for both creating new tables and altering existing ones while maintaining standardized security and indexing.

What should I not use this automated Supabase migration generator for?

You should not use this automated Supabase migration generator for databases outside of PostgreSQL or Supabase environments, as it is specifically tailored to output SQL compatible with Supabase Row Level Security and schema standards.