esneiderbravo/quinecta/supabase-migration-local

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Whenever a developer needs to create a new Supabase database migration for this project. Generates a timestamped SQL migration file in supabase/migrations/ — never executes it directly. Triggers on: "create a migration", "add a migration", "new migration", "add a supabase migration", "create a db migration", "migration for [table/change]".

Install

npx vskill@latest install esneiderbravo/quinecta/supabase-migration-local

SKILL.md

supabase-migration-local — Create Supabase Migration File

Create a new timestamped SQL migration file in supabase/migrations/. Never execute it. The developer applies it manually via the Supabase SQL editor or supabase db push after review.

Trigger

Developer needs a schema change:

create a migration to add a profiles table
add a supabase migration for the orders table
new migration: add index on users.email

Inputs

Collect before creating the file:

  1. Description of the change (required) — e.g., "add profiles table", "add email index on users"
  2. SQL content (required) — the actual SQL to include; ask if not provided
  3. Include rollback? (optional, default: yes) — whether to add a commented-out -- rollback: section

File Naming Convention

supabase/migrations/YYYYMMDDHHMMSS_short-slug.sql
  • Use the current timestamp at creation time
  • Slug: lowercase, hyphen-separated, max 5 words
  • Examples:
  • 20260424194500_add-profiles-table.sql
  • 20260424201200_add-email-index-users.sql
  • 20260424215000_add-orders-rls-policy.sql

File Structure

Each migration file must follow this template:

sql
-- Migration: YYYYMMDDHHMMSS_short-slug
-- Description: [human-readable description]
-- Created: YYYY-MM-DD
-- ⚠️ DO NOT execute this file directly from code or CI.
-- Apply manually via the Supabase SQL editor or `supabase db push` after review.
-- ============================================================
-- UP
-- ============================================================
[SQL statements here]
-- ============================================================
-- ROLLBACK (run manually if you need to revert)
-- ============================================================
-- [rollback SQL here, commented out for safety]

Rules

  1. Never execute — only create the file. State this explicitly to the user.
  2. Immutable once committed — if a migration is already committed, create a new one to amend it; never modify the existing file.
  3. One concern per file — if the request spans multiple unrelated changes, split into separate migration files.
  4. Always include RLS — if creating or altering a table, include the appropriate ALTER TABLE ... ENABLE ROW LEVEL SECURITY and policy statements.
  5. Reference existing migrations — check supabase/migrations/ for the existing baseline before writing dependent SQL.

Output

After creating the file:

  1. Show the full file path and name
  2. Show the file content
  3. Remind the user: _"Apply this manually via the Supabase SQL editor or supabase db push — do not run it automatically."_

Folder Structure Reference

supabase/
migrations/
20260424000000_initial.sql ← baseline (already exists)
YYYYMMDDHHMMSS_new-change.sql ← new files go here

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/esneiderbravo/quinecta/supabase-migration-local/badge)](https://verified-skill.com/skills/esneiderbravo/quinecta/supabase-migration-local)

Something wrong with this skill or its page? Tell us.