Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

new-migration

БесплатноБез исполняемых скриптовНе проверен

Scaffold a new Supabase migration file with the numbering and RLS structure this repo already follows.

lbragileот lbragile★ 192 звезды на GitHub

Об этом скилле

New migration

TabMerger migrations live in supabase/migrations/, numbered sequentially (001_initial_schema.sql … 010_grant_table_privileges.sql) — always a new file, never an edit to an existing one (enforced by the protect-migrations.py hook).

Steps

  1. List supabase/migrations/ to find the highest number in use; the new file is N+1, zero-padded to 3 digits.
  2. Ask the user for a short snake_case description if not given (e.g. add_tab_notes_column).
  3. Create supabase/migrations/<NNN>_<description>.sql. If the migration adds a table, include:
    • create table ...
    • alter table ... enable row level security;
    • explicit create policy statements for each access pattern (select/insert/update/delete) — never leave RLS enabled with no policies, and never disable RLS
    • an index on any new foreign-key column
  4. For real schema work, delegate to the database agent instead of writing SQL directly here — this skill only sets up the file/numbering so the agent doesn't have to re-derive the convention.
  5. Before applying, suggest running the migration-reviewer agent.

Установить new-migration в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл new-migration?

Scaffold a new Supabase migration file with the numbering and RLS structure this repo already follows.

Как установить скилл new-migration?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл new-migration запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить new-migration с