Use when you need data access with Micronaut Data — @MappedEntity, CrudRepository/PageableRepository, @Query with parameters, @Transactional services, projections, @Version, and @MicronautTest with TestPropertyProvider and Testcontainers. For raw java.sql access without generated repositories, use @511-frameworks-micronaut-jdbc. This should trigger for requests such as Review or implement Micronaut Data repositories and entities; Add transactions, pagination, or projections in Micronaut persiste
NewMaintained
Automatic
◆Coding pack
Last verified 8/20/2026
What it changes
Passed 0 of 18 test cases with the skill, and 18 of 18 without it.
Without skill100%
With skill0%
0 fixed16 passed either way4 still failing2 broke
Pass-rate lift
-100 pp
Tokens
-20%
Agent turns
0%
Response time
-56%
Model gemini-3.6-flashMeasured 8/20/2026v116 of 22 cases passed with skill · 18 comparable
Tokens, turns and time describe resource use, not a dollar price.
What's inside
The instructions your model reads when the skill loads.
SKILL.md58 lines2 files
Micronaut Data Guidelines
Apply Micronaut Data patterns for relational repositories and safe SQL.
What is covered in this Skill?
@MappedEntity, @Id, @GeneratedValue, @MappedProperty for column mapping
Scope: Apply recommendations based on the reference rules and good/bad code examples.
Constraints
Compile before persistence changes; verify the full build after.
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 examples
EDGE CASE: If the user goal is ambiguous, stop and ask a clarifying question before editing files or running project-wide commands
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
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
When to use this skill
Review or implement Micronaut Data repositories and entities
Add transactions, pagination, or projections in Micronaut persistence layer
Model Micronaut Data entities and repositories
Review Micronaut Data transactions and pageable queries
Improve projections or optimistic locking with Micronaut Data
Use when you need to write unit tests for Micronaut applications — Mockito-first with @ExtendWith(MockitoExtension.class), @MicronautTest with @MockBean, HttpClient @Client(/) assertions, @Property overrides, @ParameterizedTest, and *Test vs *IT naming. For framework-agnostic Java use @131-java-testing-unit-testing. This should trigger for requests such as Add or improve unit tests in a Micronaut project; Reduce unnecessary @MicronautTest usage with Mockito-first tests; Write Mockito-first unit