{"id":"6cdef348-4f2e-4231-bcce-386596c37503","shortId":"QXNzGu","kind":"skill","title":"513-frameworks-micronaut-db-migrations-flyway","tagline":"Use when you need to add or review Flyway database migrations in a Micronaut application — micronaut-flyway, db/migration scripts, flyway.datasources.* configuration, and alignment with JDBC or Micronaut Data. This should trigger for requests such as Add or review Flyway migratio","description":"# Micronaut — Database migrations (Flyway)\n\nApply Flyway migration guidelines for Micronaut.\n\n**What is covered in this Skill?**\n\n- `micronaut-flyway` with JDBC/Hikari and database drivers\n- Versioned SQL under `src/main/resources/db/migration`\n- `flyway.datasources.*` (per-datasource) configuration in YAML/properties\n- Tests with Testcontainers and real migration chains\n- Coordination with `@511-frameworks-micronaut-jdbc` and `@512-frameworks-micronaut-data`\n\n**Scope:** Apply recommendations based on the reference rules and good/bad examples.\n\n## Constraints\n\nBefore applying Flyway or SQL changes, ensure the project compiles. After improvements, run full verification.\n\n- **MANDATORY**: Run `./mvnw compile` or `mvn compile` before applying any change\n- **SAFETY**: If compilation fails, stop immediately\n- **VERIFY**: Run `./mvnw clean verify` or `mvn clean verify` after applying improvements\n- **BEFORE APPLYING**: Read the reference for detailed rules and good/bad patterns\n- **EDGE CASE**: If the user goal is ambiguous, stop and ask a clarifying question before editing files or running project-wide commands\n- **EDGE CASE**: If required context, files, credentials, or tools are missing, report the blocker explicitly and ask whether to proceed with setup or fallback guidance\n- **EDGE CASE**: If requested changes conflict with project constraints or safety boundaries, explain the conflict and ask for user confirmation on the preferred trade-off\n\n## When to use this skill\n\n- Add or review Flyway migrations in a Micronaut project\n- Configure micronaut-flyway or db/migration layout\n\n## Workflow\n\n1. **Read reference and assess project context**\n\nRead `references/513-frameworks-micronaut-db-migrations-flyway.md` and inspect the current project setup before proposing changes.\n\n2. **Gather scope and decide target improvements**\n\nIdentify requested outcomes, constraints, and the minimum safe set of changes to apply.\n\n3. **Apply framework-aligned changes**\n\nImplement or refactor configuration/code following the reference patterns and project conventions.\n\n4. **Run verification and report results**\n\nExecute appropriate build/tests and summarize what changed, what was verified, and any follow-up actions.\n\n## Reference\n\nFor detailed guidance, examples, and constraints, see [references/513-frameworks-micronaut-db-migrations-flyway.md](references/513-frameworks-micronaut-db-migrations-flyway.md).","tags":["513","frameworks","micronaut","migrations","flyway","cursor","rules","java","jabrena","agent-skills","ai-skills","claude"],"capabilities":["skill","source-jabrena","skill-513-frameworks-micronaut-db-migrations-flyway","topic-agent-skills","topic-ai-skills","topic-claude","topic-claude-code","topic-claude-code-skills","topic-claude-code-subagents","topic-claude-skills","topic-cursor-agent","topic-cursor-ai","topic-cursor-skills","topic-cursorai","topic-github-copilot"],"categories":["cursor-rules-java"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/jabrena/cursor-rules-java/513-frameworks-micronaut-db-migrations-flyway","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add jabrena/cursor-rules-java","source_repo":"https://github.com/jabrena/cursor-rules-java","install_from":"skills.sh"}},"qualityScore":"0.631","qualityRationale":"deterministic score 0.63 from registry signals: · indexed on github topic:agent-skills · 362 github stars · SKILL.md body (2,421 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-04-26T12:53:39.245Z","embedding":null,"createdAt":"2026-04-18T22:02:27.344Z","updatedAt":"2026-04-26T12:53:39.245Z","lastSeenAt":"2026-04-26T12:53:39.245Z","tsv":"'/mvnw':133,150 '1':267 '2':285 '3':305 '4':322 '511':93 '512':99 '513':1 'action':343 'add':13,44,250 'align':31,309 'ambigu':178 'appli':53,105,117,139,158,161,304,306 'applic':22 'appropri':329 'ask':181,210,235 'assess':271 'base':107 'blocker':207 'boundari':230 'build/tests':330 'case':172,195,220 'chain':90 'chang':121,141,223,284,302,310,334 'clarifi':183 'clean':151,155 'command':193 'compil':125,134,137,144 'configur':29,81,259 'configuration/code':314 'confirm':238 'conflict':224,233 'constraint':115,227,295,350 'context':198,273 'convent':321 'coordin':91 'cover':61 'credenti':200 'current':279 'data':36,103 'databas':17,50,71 'datasourc':80 'db':5 'db/migration':26,264 'decid':289 'detail':166,346 'driver':72 'edg':171,194,219 'edit':186 'ensur':122 'exampl':114,348 'execut':328 'explain':231 'explicit':208 'fail':145 'fallback':217 'file':187,199 'flyway':7,16,25,47,52,54,67,118,253,262 'flyway.datasources':28,77 'follow':315,341 'follow-up':340 'framework':3,95,101,308 'framework-align':307 'frameworks-micronaut-data':100 'frameworks-micronaut-db-migrations-flyway':2 'frameworks-micronaut-jdbc':94 'full':129 'gather':286 'goal':176 'good/bad':113,169 'guidanc':218,347 'guidelin':56 'identifi':292 'immedi':147 'implement':311 'improv':127,159,291 'inspect':277 'jdbc':33,97 'jdbc/hikari':69 'layout':265 'mandatori':131 'micronaut':4,21,24,35,49,58,66,96,102,257,261 'micronaut-flyway':23,65,260 'migrat':6,18,51,55,89,254 'migratio':48 'minimum':298 'miss':204 'mvn':136,154 'need':11 'outcom':294 'pattern':170,318 'per':79 'per-datasourc':78 'prefer':241 'proceed':213 'project':124,191,226,258,272,280,320 'project-wid':190 'propos':283 'question':184 'read':162,268,274 'real':88 'recommend':106 'refactor':313 'refer':110,164,269,317,344 'references/513-frameworks-micronaut-db-migrations-flyway.md':275,352,353 'report':205,326 'request':41,222,293 'requir':197 'result':327 'review':15,46,252 'rule':111,167 'run':128,132,149,189,323 'safe':299 'safeti':142,229 'scope':104,287 'script':27 'see':351 'set':300 'setup':215,281 'skill':64,249 'skill-513-frameworks-micronaut-db-migrations-flyway' 'source-jabrena' 'sql':74,120 'src/main/resources/db/migration':76 'stop':146,179 'summar':332 'target':290 'test':84 'testcontain':86 'tool':202 'topic-agent-skills' 'topic-ai-skills' 'topic-claude' 'topic-claude-code' 'topic-claude-code-skills' 'topic-claude-code-subagents' 'topic-claude-skills' 'topic-cursor-agent' 'topic-cursor-ai' 'topic-cursor-skills' 'topic-cursorai' 'topic-github-copilot' 'trade':243 'trade-off':242 'trigger':39 'use':8,247 'user':175,237 'verif':130,324 'verifi':148,152,156,337 'version':73 'whether':211 'wide':192 'workflow':266 'yaml/properties':83","prices":[{"id":"90431eb2-ad40-42ba-81fa-ad1a2ae14c0c","listingId":"6cdef348-4f2e-4231-bcce-386596c37503","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"jabrena","category":"cursor-rules-java","install_from":"skills.sh"},"createdAt":"2026-04-18T22:02:27.344Z"}],"sources":[{"listingId":"6cdef348-4f2e-4231-bcce-386596c37503","source":"github","sourceId":"jabrena/cursor-rules-java/513-frameworks-micronaut-db-migrations-flyway","sourceUrl":"https://github.com/jabrena/cursor-rules-java/tree/main/skills/513-frameworks-micronaut-db-migrations-flyway","isPrimary":false,"firstSeenAt":"2026-04-18T22:02:27.344Z","lastSeenAt":"2026-04-26T12:53:39.245Z"}],"details":{"listingId":"6cdef348-4f2e-4231-bcce-386596c37503","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"jabrena","slug":"513-frameworks-micronaut-db-migrations-flyway","github":{"repo":"jabrena/cursor-rules-java","stars":362,"topics":["agent-skills","ai-skills","claude","claude-code","claude-code-skills","claude-code-subagents","claude-skills","cursor-agent","cursor-ai","cursor-skills","cursorai","github-copilot","intellij-idea","java","prompting","system-prompts"],"license":"apache-2.0","html_url":"https://github.com/jabrena/cursor-rules-java","pushed_at":"2026-04-26T12:50:01Z","description":"A curated and opinionated collection of Skills and Agents to be used in modern SDLC workflows for Java Enterprise development with your favorite AI Agent harness.","skill_md_sha":"76b5efa539e4c8d9f1762862303743e3d183c54a","skill_md_path":"skills/513-frameworks-micronaut-db-migrations-flyway/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/jabrena/cursor-rules-java/tree/main/skills/513-frameworks-micronaut-db-migrations-flyway"},"layout":"multi","source":"github","category":"cursor-rules-java","frontmatter":{"name":"513-frameworks-micronaut-db-migrations-flyway","license":"Apache-2.0","description":"Use when you need to add or review Flyway database migrations in a Micronaut application — micronaut-flyway, db/migration scripts, flyway.datasources.* configuration, and alignment with JDBC or Micronaut Data. This should trigger for requests such as Add or review Flyway migrations in a Micronaut project; Configure micronaut-flyway or db/migration layout. Part of cursor-rules-java project"},"skills_sh_url":"https://skills.sh/jabrena/cursor-rules-java/513-frameworks-micronaut-db-migrations-flyway"},"updatedAt":"2026-04-26T12:53:39.245Z"}}