← スキル一覧に戻る

migration-workflow
by Jeduardo622
⭐ 0🍴 2📅 2026年1月25日
SKILL.md
name: migration-workflow description: Create, validate, and apply Supabase migrations with idempotent SQL, RLS checks, and types regeneration. Use when the user mentions migrations, db diff, schema changes, or type generation.
Migration Workflow
Quick Start
- Identify schema change intent and target tables.
- Create a new migration using the documented workflow.
- Validate idempotency and RLS policy coverage.
- Apply migration to hosted Supabase.
- Regenerate types and verify.
Steps
- Follow
docs/DATABASE_PIPELINE.mdanddocs/supabase_branching.mdfor the approved flow. - Prefer repo scripts when available:
scripts/apply-single-migration.mjsscripts/apply-remote-migrations.mjs
- Ensure migration SQL uses
IF NOT EXISTSand is safe to re‑run. - After applying: regenerate types in
src/lib/generated/database.types.ts.
Checks
- RLS enabled on new tables.
- Policies tested or verified.
- No Docker‑dependent Supabase commands.
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です