Java database migration safety

From VincentChuWaiChow/vanguard-frontier-agentic · View interactive version

Java database migration safety is an AI agent skill from the GitHub repository VincentChuWaiChow/vanguard-frontier-agentic. Use this skill when statically reviewing a Flyway or Liquibase schema-migration PR for rolling or blue-green deploy safety — immutable applied-migration discipline (checksum/history-table drift on an edited already-applied migration), expand-contract phasing for column/table drops and renames, destr

How to use this skill

Skill file

java-database-migration-safety

Purpose

This skill statically reviews Flyway/Liquibase schema migrations for deploy safety under rolling and blue-green rollout, where two application versions run against one shared schema at the same time. A migration is only safe if it never edits an already-applied versioned migration, follows expand-contract phasing for any column or table drop or rename, keeps destructive DDL out of the release that still uses the shape being removed, avoids long-locking DDL on large tables without an online/concurrent variant, keeps repeatable migrations idempotent, preserves migration ordering across every environment, and states a rollback or backfill plan. The review catches checksum/history drift, premature drops paired with live usage, unphased renames, unsafe NOT NULL additions, lock-risk DDL, out-of-order migrations, and non-idempotent repeatable scripts before they reach a mixed-version production rollout.

Trigger conditions

When not to use

Lean operating rules

References

Load these only when needed:

Response minimum

Return, at minimum:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.