Skip to content
CommandImported

supabase-schema-sync

Synchronize database schema with Supabase using MCP integration

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-schema-sync.zip -d .claude/commands

  • For your account on the whole machine

    It goes in: ~/.claude/commands/

    mkdir -p ~/.claude/commands && unzip ~/Downloads/supabase-schema-sync.zip -d ~/.claude/commands

Instructions

Supabase Schema Sync

Synchronize database schema between local and Supabase with comprehensive validation: $ARGUMENTS

Current Supabase Context

  • MCP connection: Supabase MCP server with read-only access configured
  • Local schema: !find . -name "schema.sql" -o -name "migrations" -type d | head -3 local database files
  • Project config: !find . -name "supabase" -type d -o -name ".env*" | grep -v node_modules | head -3 configuration files
  • Git status: !git status --porcelain | grep -E "\\.sql$|\\.ts$" | head -5 database-related changes

Task

Execute comprehensive schema synchronization with Supabase integration:

Sync Action: Use $ARGUMENTS to specify pull from remote, push to remote, diff comparison, or schema validation

Schema Synchronization Framework:

  1. MCP Integration - Connect to Supabase via MCP server, authenticate with project credentials, validate connection status
  2. Schema Analysis - Compare local vs remote schema, identify structural differences, analyze migration requirements, assess breaking changes
  3. Sync Operations - Execute pull/push operations, apply schema migrations, handle conflict resolution, validate data integrity
  4. Validation Process - Verify schema consistency, validate foreign key constraints, check index performance, test query compatibility
  5. Migration Management - Generate migration scripts, track version history, implement rollback procedures, optimize execution order
  6. Safety Checks - Backup critical data, validate permissions, check production impact, implement dry-run mode

Advanced Features: Automated conflict resolution, schema version control, performance impact analysis, team collaboration workflows, CI/CD integration.

Quality Assurance: Schema validation, data integrity checks, performance optimization, rollback readiness, team synchronization.

Output: Complete schema sync with validation reports, migration scripts, conflict resolution, and team collaboration updates.

Files

  • LICENSE1 KB
  • supabase-schema-sync.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-schema-sync.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