Use when you need to add or review Mongock MongoDB data migrations in a Spring Boot application — including Maven coordinates, Spring Data MongoDB drivers, migration scan packages, @ChangeUnit classes, lock/transaction settings, and Testcontainers verification. This should trigger for requests such as Add Mongock migrations in Spring Boot; Review Spring MongoDB data migrations; Configure Mongock change units for Spring Data MongoDB. Part of cursor-rules-java project
59
67%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./skills/316-frameworks-spring-mongodb-migrations-mongock/SKILL.mdApply Mongock migration guidelines for Spring Boot and Spring Data MongoDB.
What is covered in this Skill?
mongock.migration-scan-package configuration and startup execution@ChangeUnit migrations with @Execution and rollback hooks@315-frameworks-spring-mongodbScope: Apply recommendations based on the reference rules and good/bad examples.
Compile before Mongock or MongoDB migration changes; verify after changes.
./mvnw compile or mvn compile before applying any change./mvnw clean verify or mvn clean verify after applying improvementsRead references/316-frameworks-spring-mongodb-migrations-mongock.md and inspect pom.xml, Spring Boot version, MongoDB configuration, and existing @315-frameworks-spring-mongodb persistence patterns.
Select Mongock coordinates compatible with the active Spring Data MongoDB generation, configure migration scan packages, and decide startup vs controlled-job execution.
Implement/refactor @ChangeUnit classes with idempotent operations, explicit ordering, rollback hooks, and safe lock/transaction settings.
Execute build/tests, including Testcontainers-backed MongoDB migration checks where feasible, and summarize outcomes and follow-up risks.
For detailed guidance, examples, and constraints, see references/316-frameworks-spring-mongodb-migrations-mongock.md.
b73c9d3
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.