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.