lovable-cloud-migration-sync

Synchronize Lovable-created duplicate Supabase migrations with originals via PR.

4|1|Updated Mar 11, 2026
One-click install
npx skills add https://github.com/jcdendrite/claude-config --skill lovable-cloud-migration-sync
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lovable-cloud-migration-sync
Source: https://github.com/jcdendrite/claude-config/tree/main/plugins/lovable-cloud/skills/lovable-cloud-migration-sync
Command: npx skills add https://github.com/jcdendrite/claude-config --skill lovable-cloud-migration-sync

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents Lovable Cloud from leaving your database in a mismatched state by cleaning up duplicate migrations that Lovable created but did not apply from the original commit set.

Core Features & Use Cases

  • Identifies unsynced migrations by detecting which migration files were authored by Lovable’s bot versus others (Claude Code or engineers), and validating application status via Supabase type artifacts.
  • Verifies Lovable duplicate equivalence by diffing each Lovable-created duplicate migration against its original while allowing only acceptable cosmetic/idempotency deltas (never security-critical or logic-changing differences).
  • Executes a safe reconciliation pipeline that runs a full local database reset, verifies the project with your defined test/verify command, and only then deletes the original migrations and prepares the replacement via PR.

Quick Start

Ask your AI agent to run the Lovable migration sync workflow that identifies unapplied originals, diffs duplicates for security-preserving equivalence, runs supabase db reset and your verify command, then deletes the original migration SQL files and opens a PR.

Frequently Asked Questions about lovable-cloud-migration-sync

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I sync duplicate Supabase migrations created by Lovable?

To sync duplicate Supabase migrations, you must detect unapplied original migration files, verify their equivalence against Lovable-created duplicates, run a local database reset, execute your verify command, and replace originals via PR only after tests pass.

Why does Lovable Cloud leave my database in a mismatched state?

Lovable Cloud leaves your database in a mismatched state because it only executes Supabase migrations it created, skipping original migrations authored by engineers or other bots, which causes logic and security drift without proper duplicate synchronization.

How do I verify Lovable duplicate migrations are safe to replace originals?

You verify Lovable duplicate migrations are safe by diffing each duplicate against its original to check for security-critical or logic-changing differences, ensuring only acceptable cosmetic or idempotency deltas exist before replacement.

Can I delete original Supabase migration files before running database reset?

No, you must not delete original Supabase migration files before running database reset and verify commands, because deletion is only permitted after a PASS result to prevent logic and security drift during the reconciliation pipeline.

What is the correct workflow for Lovable migration sync reconciliation?

The correct Lovable migration sync workflow requires dependency-ordered inspection of migration files, non-regenerated PR-comment usage, executing supabase db reset through the correct session path, running verify commands, and deleting originals only after PASS.

Does this migration sync workflow support projects not using Supabase?

No, this migration sync workflow is specifically designed for projects using Supabase migrations where Lovable Cloud enforces safety during migrations, requiring dependency-ordered inspection and local database reset capabilities.