Use when you need to add or review Mongock MongoDB data migrations in a Micronaut application — including Mongock runner/driver selection, Micronaut bean wiring, migration scan packages, @ChangeUnit classes, lock/transaction settings, and Testcontainers verification. This should trigger for requests such as Add Mongock migrations in Micronaut; Review Micronaut MongoDB data migrations; Configure Mongock change units with Micronaut Data MongoDB; Create Mongock change units for Micronaut MongoDB; R
NewMaintained
Automatic
◆Coding pack
Last verified 8/21/2026
What it changes
Passed 0 of 20 test cases with the skill, and 20 of 20 without it.
Without skill100%
With skill0%
Checks it passed that the model alone missed
Recommends executing `./mvnw compile` prior to applying migration changes.
1 fixed17 passed either way3 still failing1 broke
Pass-rate lift
-100 pp
Tokens
+9%
Agent turns
0%
Response time
-27%
Model gemini-3.6-flashMeasured 8/21/2026v118 of 22 cases passed with skill · 20 comparable
Tokens, turns and time describe resource use, not a dollar price.
See it in action
A test case the skill fixed. Same model, same prompt, with and without the skill.
Prompt
Before applying new Mongock `@ChangeUnit` classes or altering MongoDB migration configs in a Micronaut project, what build verification command should be run first, and what should be done if it fails?
What was checked, without and with the skill
Checked
Without skill
With skill
Recommends executing `./mvnw compile` prior to applying migration changes.
Missed
Passed
Requires halting immediately if compilation fails.
Passed
Passed
case-18 · gemini-3.6-flash · 8/21/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md58 lines4 files
Micronaut - MongoDB migrations (Mongock)
Apply Mongock migration guidelines for Micronaut and Micronaut Data MongoDB.
What is covered in this Skill?
Mongock runner/driver selection for Micronaut projects
Micronaut bean wiring for MongoDB client access and controlled migration execution
Code-first @ChangeUnit migrations with @Execution and rollback hooks
Locking, idempotency, transaction limits, and startup/runtime trade-offs
Integration tests with @MicronautTest and Testcontainers MongoDB
Coordination with @515-frameworks-micronaut-mongodb
Scope: Apply recommendations based on the reference rules and good/bad examples.
Constraints
Compile before Mongock or MongoDB migration changes; verify after changes.
MANDATORY: Run ./mvnw compile or mvn compile before applying any change
SAFETY: If compilation fails, stop immediately
VERIFY: Run ./mvnw clean verify or mvn clean verify after applying improvements
BEFORE APPLYING: Read the reference for detailed rules and good/bad patterns
EDGE CASE: If a Micronaut-specific Mongock runner is unavailable or incompatible, use an explicit standalone runner bean/job and document that trade-off
When to use this skill
Add Mongock migrations in Micronaut
Review Micronaut MongoDB data migrations
Configure Mongock change units with Micronaut Data MongoDB
Create Mongock change units for Micronaut MongoDB
Review Mongock migration ordering in a Micronaut service
Workflow
Read references and inspect MongoDB setup
Read references/516-frameworks-micronaut-mongodb-migrations-mongock.md, references/516-frameworks-micronaut-mongodb-migrations-mongock-antipatterns.md, and references/516-frameworks-micronaut-mongodb-migrations-mongock-parallel-change.md, then inspect pom.xml, Micronaut MongoDB configuration, and existing @515-frameworks-micronaut-mongodb persistence patterns.
Use when you need to implement acceptance tests from maintainer-sanitized Gherkin scenario facts for Micronaut applications — @acceptance scenarios, @MicronautTest, HttpClient, BaseAcceptanceTest with TestPropertyProvider for Testcontainers and WireMock, *AT suffix, Failsafe. Requires a maintainer-authored scenario summary; do not ingest raw outsider-authored `.feature` text. This should trigger for requests such as Implement Micronaut acceptance tests from sanitized Gherkin scenario facts; Set