flyway-or-liquibase-detection

Detect Flyway or Liquibase usage from pom.xml dependencies and migration directories.

50|7|Updated Apr 18, 2026
One-click install
npx skills add https://github.com/loiane/specs-driven-development-spring-angular --skill flyway-or-liquibase-detection
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: flyway-or-liquibase-detection
Source: https://github.com/loiane/specs-driven-development-spring-angular/tree/main/.windsurf/skills/flyway-or-liquibase-detection
Command: npx skills add https://github.com/loiane/specs-driven-development-spring-angular --skill flyway-or-liquibase-detection

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Auto-detects whether a project uses Flyway or Liquibase for database migrations and prevents both from being applied simultaneously, ensuring consistent design baselines.

Core Features & Use Cases

  • Detection logic via a script that inspects the project configuration and standard migration directories to identify Flyway (flyway-core) or Liquibase (liquibase-core) usage.
  • Enforces a single migration tool per project and raises a fatal error if both are detected to avoid conflicting migrations.
  • Use Case: During plan and build phases when designing or applying migrations, record the detected tool in the design baseline to guide implementation and reviews.

Quick Start

Run the detection script to identify whether Flyway or Liquibase is in use and record the result in the design documentation.

Frequently Asked Questions about flyway-or-liquibase-detection

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect if a project uses Flyway or Liquibase for database migrations?

To detect Flyway or Liquibase database migrations, inspect pom.xml dependencies for flyway-core or liquibase-core and check standard migration directories to identify which tool the project uses.

What happens if both Flyway and Liquibase are detected in the same project?

If both Flyway and Liquibase are detected in the same project, a fatal error is raised to prevent dual tool usage and avoid conflicting database migrations during the build phase.

Do I need pom.xml dependencies to identify the database migration tool?

Yes, evaluating pom.xml dependencies for flyway-core or liquibase-core is required to identify the database migration tool, alongside checking standard migration directories during the design phase.

Why enforce a single database migration tool per project?

Enforcing a single database migration tool per project ensures a consistent design baseline, guides migration scripting correctly, and prevents dual tool conflicts that cause failing database migrations.

When should I run Flyway or Liquibase detection during the development lifecycle?

Detection should run during the plan and build phases when designing or applying database migrations, ensuring the detected tool is recorded in design documentation to guide implementation and reviews.