Skip to content
CommandImported

supabase-migration-assistant

Generate and manage Supabase database migrations with automated testing and validation

Imported description, not reviewed yet

This item came from its original repository and was only scanned automatically; no editor has written an Arabic description for it yet. Read its content yourself before you rely on it. This page is not indexed by search engines until it is reviewed.

Download

Files: 1 · Size: 3.2 KB

Download the ZIP

The file carries the license of the original source.

Install

After downloading, run the command in a terminal. unzip asks before it replaces any file that is there.

  • For this project

    It goes in: .claude/commands/

    mkdir -p .claude/commands && unzip ~/Downloads/supabase-migration-assistant.zip -d .claude/commands

  • For your account on the whole machine

    It goes in: ~/.claude/commands/

    mkdir -p ~/.claude/commands && unzip ~/Downloads/supabase-migration-assistant.zip -d ~/.claude/commands

Instructions

Supabase Migration Assistant

Generate and manage Supabase migrations with comprehensive testing and validation: $ARGUMENTS

Current Migration Context

  • Supabase project: MCP integration for migration management and validation
  • Migration files: !find . -name "*migrations*" -type d -o -name "*.sql" | head -5 existing migration structure
  • Schema version: Current database schema state and migration history
  • Local changes: !git diff --name-only | grep -E "\\.sql$|\\.ts$" | head -3 pending database modifications

Task

Execute comprehensive migration management with automated validation and testing:

Migration Type: Use $ARGUMENTS to specify table creation, schema alterations, data seeding, or migration rollback

Migration Management Framework:

  1. Migration Planning - Analyze schema requirements, design migration strategy, identify dependencies, plan rollback procedures
  2. Code Generation - Generate migration SQL files, create TypeScript types, implement safety checks, optimize execution order
  3. Validation Testing - Test migration on development data, validate schema changes, verify data integrity, check constraint violations
  4. Supabase Integration - Apply migrations via MCP server, monitor execution status, handle error conditions, validate final state
  5. Type Generation - Generate TypeScript types, update application interfaces, sync with client-side schemas, maintain type safety
  6. Rollback Strategy - Create rollback migrations, test rollback procedures, implement data preservation, validate recovery process

Advanced Features: Automated type generation, migration testing, performance impact analysis, team collaboration, CI/CD integration.

Safety Measures: Pre-migration backups, dry-run validation, rollback testing, data integrity checks, performance monitoring.

Output: Complete migration suite with SQL files, TypeScript types, test validation, rollback procedures, and deployment documentation.

Files

  • LICENSE1 KB
  • supabase-migration-assistant.md2.2 KB

What the automatic scan found

We scanned the files automatically when they were imported. This is what the scan pointed at. It does not mean the item is harmful, and it does not mean it is safe: read it yourself.

  • Needs a lookAllowed tools with no limits

    In file cli-tool/components/commands/database/supabase-migration-assistant.md

Comments (0)

No comments yet. Be the first.

Sign in to comment. Commenting comes at level 1 (Member).

Report

Similar items

  • CommandImported

    code-migrate

    Generate comprehensive migration plans and scripts for transitioning codebases between frameworks, languages, versions, or platforms with minimal disruption.

    MITFiles: 1

  • CommandImported

    create-database-migrations

    Create and manage database migrations with proper versioning and rollback support

    MITFiles: 1

  • CommandImported

    deps-upgrade

    Plan and execute safe, incremental dependency upgrades with minimal risk — including breaking-change migration paths and proper test verification.

    MITFiles: 1

  • CommandImported

    design-database-schema

    Design optimized database schemas with proper relationships, constraints, and performance considerations

    MITFiles: 1

  • CommandImported

    full-stack-feature

    Orchestrate end-to-end full-stack feature development across backend, frontend, database, and infrastructure layers

    MITFiles: 1

  • CommandImported

    legacy-modernize

    Orchestrate legacy system modernization using the strangler fig pattern with gradual component replacement

    MITFiles: 1