supabase-migration-deep-dive
使用断树图模式执行Supabase的重大重构和迁移策略。在迁移到或从Supabase迁移、执行主要版本升级或将现有集成迁移到Supabase时使用。通过如“迁移supabase”、“supabase迁移”、“切换到supabase”、“supabase重平台”、“supabase升级主要版本”等短语触发。
📖 中文导读:使用断树图模式执行Supabase的重大重构和迁移策略。在迁移到或从Supabase迁移、执行主要版本升级或将现有集成迁移到Supabase时使用。通过如“迁移supabase”、“supabase迁移”、“切换到supabase”、“supabase重平台”、“supabase升级主要版本”等短语触发。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: supabase-migration-deep-dive description: | Execute Supabase major re-architecture and migration strategies with strangler fig pattern. Use when migrating to or from Supabase, performing major version upgrades, or re-platforming existing integrations to Supabase. Trigger with phrases like "migrate supabase", "supabase migration", "switch to supabase", "supabase replatform", "supabase upgrade major". allowed-tools: Read, Write, Edit, Bash(npm:), Bash(node:), Bash(kubectl:*) version: 1.0.0 license: MIT author: Jeremy Longshore jeremy@intentsolutions.io
Supabase Migration Deep Dive
Prerequisites
- Current system documentation
- Supabase SDK installed
- Feature flag infrastructure
- Rollback strategy tested
Instructions
Step 1: Assess Current State
Document existing implementation and data inventory.
Step 2: Build Adapter Layer
Create abstraction layer for gradual migration.
Step 3: Migrate Data
Run batch data migration with error handling.
Step 4: Shift Traffic
Gradually route traffic to new Supabase integration.
Output
- Migration assessment complete
- Adapter layer implemented
- Data migrated successfully
- Traffic fully shifted to Supabase
Error Handling
See {baseDir}/references/errors.md for comprehensive error handling.
Examples
See {baseDir}/references/examples.md for detailed examples.