create-migration

Generate Supabase migration scaffolds with RLS policies and indexing.

1|Updated Dec 13, 2025
One-click install
npx skills add https://github.com/SomtechSolutionMAxime/somtech-pack --skill create-migration-somtechsolutionmaxime
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-migration
Source: https://github.com/SomtechSolutionMAxime/somtech-pack/tree/main/.claude/skills/create-migration
Command: npx skills add https://github.com/SomtechSolutionMAxime/somtech-pack --skill create-migration-somtechsolutionmaxime

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill creates a robust Supabase migration scaffold that includes an initial table, RLS policies, and indexing, reducing setup errors and accelerating secure schema changes.

Core Features & Use Cases

  • Generate a migration template with an id, user_id, created_at columns, and built-in RLS policies for select/insert/update/delete operations.
  • Provide guidance for applying the migration via MCP Supabase workflow and updating the PRD modules.

Quick Start

Prompt the system to generate a new Supabase migration scaffold for the target table.

Frequently Asked Questions about create-migration

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

FAQPage Schema
How do I create a Supabase migration with RLS policies included?

To create a Supabase migration with RLS policies, generate a scaffold containing an initial table with id, user_id, and created_at columns, alongside built-in row-level security rules for select, insert, update, and delete operations.

What is the best way to scaffold secure CRUD tables in Supabase?

Scaffolding secure CRUD tables in Supabase requires generating a migration template with predefined RLS policies and indexing, which reduces setup errors and accelerates secure schema changes across your database environments.

How do I apply a Supabase migration using the MCP workflow?

You apply a Supabase migration using the MCP workflow by generating the migration scaffold and then following the provided guidance to deploy it via the MCP Supabase deployment workflow while updating your PRD modules.

Does the Supabase migration scaffold include row-level security for all operations?

Yes, the Supabase migration scaffold includes row-level security configurations for all CRUD operations. The generated template ensures policy consistency by applying select, insert, update, and delete RLS policies directly to the target table.

Why are RLS policies important when setting up Supabase database migrations?

RLS policies are important when setting up Supabase database migrations because they enforce data access control at the database level. Including them in a scaffold prevents security misconfigurations during initial table creation and subsequent schema updates.

Can I ensure policy consistency across different Supabase environments using a migration scaffold?

Yes, you can ensure policy consistency across different Supabase environments by applying the same migration scaffold. This template standardizes RLS policy generation and deployment, maintaining uniform security rules throughout your development and production setups.