What problem does it solve? Feature branches often accumulate multiple Drizzle migration directories during development, cluttering the schema history and making reviews harder. This Skill consolidates all migrations introduced by the current branch into a single migration.sql and snapshot.json pair before merging, without touching migrations already on main. ## Core Features & Use Cases - Branch Migration Detection: Identifies migration directories added relative to main using git diff and untracked file listing, verifying none exist on main. - Database State Handling: Checks whether branch migrations were applied locally and rebuilds a main-only database by resetting the Docker Compose volume when needed. - Regeneration and Verification: Deletes branch-owned migrations, rebuilds packages with Turbo, regenerates one migration via db:generate, preserves hand-written SQL backfills, and validates with db:migrate and persistence tests. - Use Case: Before merging a PR that added four incremental Drizzle migrations, run this Skill to collapse them into one clean migration directory and confirm the persistence test suite passes. ## Quick Start Use the squash-migrations skill to combine this branch's Drizzle migrations into a single migration and snapshot pair, then verify it against the local database.