
If you've ever deployed a Drizzle migration that tightened a constraint before backfilling the data, you know the pain. This skill codifies the two-step dance: generate a custom migration for your backfill SQL first, then generate the schema change, and verify the ordering in Drizzle's journal before you push. It's opinionated about keeping data fixes in migration history rather than hiding them in startup scripts, and it walks you through the classify, backfill, constrain workflow with concrete bun commands. Useful when you're removing enum values, changing defaults, or any time old rows need massaging before new rules apply. Created by Pedro Nauck.
$ npx -y skills add pedronauck/skills --skill drizzle-safe-migrations --agent claude-codeInstalls into .claude/skills of the current project.
Use this skill to run database migrations in a way that is auditable, deployment-safe, and consistent with Drizzle's migration model.
bun run db:generate below is an example, not a required script name.bun run db:generate -- --custom --name <name>) and edit only that custom SQL file.Sponsors