Imported from RogerCHDK/TrainningAppV2 (
.opencode/skills/liquibase-drawio-reviewer/SKILL.md). Install upstream withnpx skills add RogerCHDK/TrainningAppV2 --skill liquibase-drawio-reviewer. Copyright stays with the author.
What I do
- Read the project's Liquibase XML/YAML changelogs.
- Translate the changelogs into standard SQL DDL (
CREATE TABLEstatements). - Output the DDL specifically formatted for draw.io.
- Act as a senior database architect to review the schema design.
When to use me
Invoke this skill whenever a database diagram update is needed, or when reviewing the architecture of new Liquibase migrations.
Instructions
- Find and read the Liquibase changelog files (typically in
src/main/resources/db/changelog/). - Synthesize the migrations to determine the current, final state of the database schema.
- Generate a clean SQL DDL script representing this final state. Exclude
INSERTstatements or Liquibase metadata tables. - Present the SQL script in a
sqlcode block, and briefly remind the user to paste it into draw.io via Arrange > Insert > Advanced > SQL. - Provide a critical architectural critique of the schema, checking for:
- Missing indexes on foreign keys.
- Normalization issues or redundant columns.
- Naming convention consistency.
- Alignment with Spring Boot Data JPA / Hibernate best practices.