AgentSkillsCN

supabase-migrations

管理和应用数据库迁移脚本。当用户输入“新建迁移”、“列出迁移”、“升级迁移”或“修复迁移状态”等短语时,可触发此技能。

SKILL.md
--- frontmatter
name: supabase-migrations
description: Manage and apply database migration scripts. Triggered by phrases like "new migration", "list migrations", "up migrations", or "repair migration status".

Supabase Migrations Skill

Goal

Automate and manage the migration lifecycle.

Instructions

  1. Open the relevant rule file:
  2. Use migration new to generate file templates before making schema changes.
  3. Check 00_global_policy.md before running migration repair.
  4. Verify application of migrations using migration list.

Examples

  • "Create a new migration file" -> Use supabase migration new
  • "Show pending migrations" -> Use supabase migration list
  • "Apply migrations to local database" -> Use supabase migration up