flyway-or-liquibase-detection

flyway-or-liquibase-detection is a skill for Claude Code from loiane/specs-driven-development-spring-angular. It costs 0 tokens per session (830 once invoked), scanned A, original, MIT.

A project check that identifies whether a Java application uses Flyway or Liquibase, two tools for tracking database schema changes, and applies the matching file and version rules.

In plain words
What is it for?
Use it when designing or writing a database schema change, such as adding a table, index, view, or function.
Why use it?
It prevents mixing the two migration tools or placing changes in the wrong format. It also keeps database changes forward-only and records rollback planning for destructive changes.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when designing or writing a database schema change, such as adding a table, index, view, or function.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/loiane/specs-driven-development-spring-angular/flyway-or-liquibase-detection
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add loiane/specs-driven-development-spring-angular --skill flyway-or-liquibase-detection
Clone the repo
git clone --depth 1 https://github.com/loiane/specs-driven-development-spring-angular

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for flyway-or-liquibase-detection

README.md
[![agentmods](https://agentmods.dev/badge/skills/loiane/specs-driven-development-spring-angular/flyway-or-liquibase-detection/github.svg)](https://agentmods.dev/skills/loiane/specs-driven-development-spring-angular/flyway-or-liquibase-detection)
Your own site
<a href="https://agentmods.dev/skills/loiane/specs-driven-development-spring-angular/flyway-or-liquibase-detection"><img src="https://agentmods.dev/badge/skills/loiane/specs-driven-development-spring-angular/flyway-or-liquibase-detection/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for flyway-or-liquibase-detection

Your own site · 80×15
<a href="https://agentmods.dev/skills/loiane/specs-driven-development-spring-angular/flyway-or-liquibase-detection"><img src="https://agentmods.dev/badge/skills/loiane/specs-driven-development-spring-angular/flyway-or-liquibase-detection.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 830 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00830
Opus 5.5 $0.00000 $0.00332
Sonnet 5.5 $0.00000 $0.00166
Haiku 4.5 $0.00000 $0.00083

Measured 25d ago against content hash dab9ae3f00ab, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

flyway-or-liquibase-detection scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 25d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/flyway-or-liquibase-detection/SKILL.md · 79 lines

How it starts

The opening of the file, as written. The whole thing — 79 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Flyway or Liquibase detection

Detection

.github/scripts/detect-stack.sh reports one of:

  • flyway — flyway-core in pom.xml AND src/main/resources/db/migration/ exists.
  • liquibase — liquibase-core in pom.xml AND src/main/resources/db/changelog/ exists.
  • none — neither.
  • both — fatal. Refuse to proceed; ask the user to remove one.

Record the result in 03-design.md under ### Inputs from detect-stack.sh.

Flyway conventions

  • File path: src/main/resources/db/migration/V{version}__{description}.sql
  • Versioning: V1__init.sql, V2__add_gift_card_table.sql, V3__add_index_gift_card_code.sql
  • One migration per logical change. Never edit a checked-in migration; add a new one.
  • Repeatable migrations (views, functions): R__view_active_orders.sql.
  • Forward-only by default. If a migration is destructive, the design must include a ## Rollback section in 03-design.md.
-- V12__add_gift_card_table.sql
CREATE TABLE gift_card (
    id          UUID PRIMARY KEY,
    code        VARCHAR(64) NOT NULL UNIQUE,
    balance     NUMERIC(12,2) NOT NULL CHECK (balance >= 0),
    created_at  TIMESTAMPTZ NOT NULL DEFAULT now()
);
CREATE INDEX ix_gift_card_code ON gift_card(code);

Liquibase conventions

  • Master changelog: src/main/resources/db/changelog/db.changelog-master.yaml
  • Per-feature changeset file: db/changelog/changes/2026-04-18-gift-card.yaml
  • Include via <include file="changes/2026-04-18-gift-card.yaml"/>.
  • Each changeset has id, author, and is immutable once merged.
databaseChangeLog:
  - changeSet:
      id: gift-card-1
      author: spring-implementer
      changes:
        - createTable:
            tableName: gift_card
            columns:
              - column: { name: id, type: UUID, constraints: { primaryKey: true } }
              - column: { name: code, type: VARCHAR(64), constraints: { nullable: false, unique: true } }
              - column: { name: balance, type: NUMERIC(12,2), constraints: { nullable: false } }
              - column: { name: created_at, type: TIMESTAMPTZ, defaultValueComputed: now() }

Read the full file on GitHub · 79 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 25d ago Changed dab9ae3f00ab
  2. 3mo ago First seen · 79 lines · 0 tokens per session scan A a3cd5aae9bf8

Subscribe to this mod's changes

flyway-or-liquibase-detection is a skill published in the GitHub repository loiane/specs-driven-development-spring-angular (66 stars, last pushed 23d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 830 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

flyway-or-liquibase-detection compared with skills from other repositories

flyway-or-liquibase-detection next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
flyway-or-liquibase-detectionloiane/specs-driven-development-spring-angularSkill6623d agoMITA0Claude Code
055-design-parallel-changejabrena/plinthSkill4692d agoApache-2.0A94Claude Code, Codex
313-frameworks-spring-db-migrations-flywayjabrena/plinthSkill4692d agoApache-2.0A120Claude Code, Codex
316-frameworks-spring-mongodb-migrations-mongockjabrena/plinthSkill4692d agoApache-2.0A125Claude Code, Codex
413-frameworks-quarkus-db-migrations-flywayjabrena/plinthSkill4692d agoApache-2.0A136Claude Code, Codex
416-frameworks-quarkus-mongodb-migrations-mongockjabrena/plinthSkill4692d agoApache-2.0A135Claude Code, Codex
513-frameworks-micronaut-db-migrations-flywayjabrena/plinthSkill4692d agoApache-2.0A129Claude Code, Codex