CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

generate-flyway

The workflow requires confirming the schema design, creating a new versioned migration, and never editing an already-applied migration. It also calls for a rollback note, corresponding JPA updates, and output containing the migration path and contents, plus an ADR note for structural changes.

Quality

82%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Role: Skill — Flyway migration generator

Skill: generate-flyway

Trigger: user asks to add/change a DB column, table, or index in any module.

Method

  1. Confirm the change was designed via skill schema-design / rule schema.md (aggregate ownership clear).
  2. Never modify an already-applied migration. Always create a new versioned file: V{next_number}__{snake_case_description}.sql
  3. Write the migration to be backward-compatible with the currently-deployed app version (additive first, cleanup in a later migration) — this is what makes zero-downtime deploys possible.
  4. Include a rollback note as a SQL comment even though Flyway doesn't auto-rollback.
  5. Update the corresponding JPA entity / value type in the same PR, and flag if the change affects any existing repository query.
  6. Output: the migration file path + contents, plus a one-line note for the ADR if this is a structural (not additive) change.
Repository

chandrakanthbalaraman/spring-boot-microservices

Path

.cursor/skills/generate-flyway/SKILL.md

Last updated
First committed
Purpose
DevelopmentDatabase management
Form
Workflow

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.