migrate-db

Community

Safely apply Supabase database migrations

Authorclenisa
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill automates the safe application of Supabase schema migrations across ReturnPro and OptimalOS instances, preventing manual SQL edits and inconsistent database states.

Core Features & Use Cases

  • Instance resolution: Maps logical instance names to their project directories for ReturnPro and OptimalOS.
  • Migration file management: Optionally create timestamped migration files from provided SQL content before applying.
  • Safe deployment: List pending migrations, run dry-run inspections, push schema changes using supabase db push --linked, verify application, and log activity.
  • Use case: Prepare and apply a budget schema change to ReturnPro by creating the migration file, reviewing pending migrations in dry-run, and then applying the change.

Quick Start

Run the migrate-db skill to push pending migrations to the ReturnPro instance in dry-run mode to verify pending changes before applying.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: migrate-db
Download link: https://github.com/clenisa/optimal-cli/archive/main.zip#migrate-db

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.