Audit database schema migration skills for zero-downtime lock and rollback safety
Compare Prisma, Alembic, and raw SQL migration skills tested against table-lock hazards, data loss, and reversible rollbacks.
Four safety checks every database migration skill must pass
- 01
Detect blocking DDL locks on large tables
Verify the skill flags non-concurrent index creation, NOT NULL additions without NOT VALID, and volatile column defaults.
- 02
Enforce expand-and-contract multi-step plans
Safe skills split column renames or type changes into backward-compatible deploy phases rather than single-shot ALTER statements.
- 03
Validate downgrade script symmetry
Check benchmark pass rates for executing up-then-down migrations against populated staging snapshots without schema drift.
- 04
Inspect data backfill batching logic
Ensure skills separate schema DDL from chunked background data backfills to protect replication lag.
Questions and answers
How are SQL migration skills tested for production lock risk?
Benchmarks execute generated migrations against seeded Postgres and MySQL containers while inspecting pg_locks and lock modes acquired during DDL statements.
Which ORMs and migration frameworks are covered?
Comparisons cover raw SQL, Flyway, Liquibase, Alembic, Prisma, Drizzle, and Rails ActiveRecord migrations.
Do these skills rewrite risky migrations or just flag them?
Rankings distinguish read-only CI lint skills from authoring skills that refactor unsafe DDL into multi-phase expand-contract migrations.
Related tasks in this category
See all in Coding, Git & Repo Engineering Skills-
Compare Git pull request review skills by bug catch rate and noise
Check side-by-side defect recall and false-positive rates for PR review skills across Claude Code, GitHub Actions, and GPT runners.
-
Rank multi-file codebase refactoring skills on compile and test pass rates
See which repo-wide refactoring skills preserve type safety, imports, and green test suites across 50+ touched files.
-
Pick unit test generation skills ranked by mutation kill score, not line coverage
Avoid tautological mocks that only mirror buggy implementation code. Compare test authoring skills by real mutation scores.
-
Find CI/CD build failure triage skills that isolate root causes from 10k-line logs
Compare skills that parse noisy GitHub Actions, GitLab CI, and Jenkins logs to distinguish flaky runners from broken code.
-
Compare OpenAPI and GraphQL SDK scaffolding skills on type fidelity and auth handling
Evaluate agent skills that turn messy API specs into idiomatic typed clients with retries, pagination, and webhook signature checks.
-
Test automated dependency upgrade skills on major-version breaking changes
Dependabot opens the PR, but breaking API changes stall merges. Compare skills that read changelogs and patch call sites safely.