Use when building or reviewing Micronaut applications — Micronaut.run bootstrap, @Singleton/@Prototype, @Factory beans, @ConfigurationProperties, environments, @Requires, @Controller vs services, @Scheduled, graceful shutdown, @ExecuteOn for blocking work, and Jakarta-consistent APIs. This should trigger for requests such as Review Java code for Micronaut application structure and beans; Apply best practices for Micronaut configuration, @Requires, and factories; Improve scheduling, shutdown, or
SkillScore77Maintained
Automatic
◆Coding pack
Last verified 8/20/2026
What it changes
Passed 14 of 18 test cases with the skill, and 11 of 18 without it.
Without skill59%
With skill77%
Checks it passed that the model alone missed
Specifies executing mvn compile before modifying files.
Stops execution immediately if initial compilation fails.
Uses jakarta.inject.Inject for dependency injection annotations.
and 2 more in the full report
4 fixed13 passed either way5 still failing0 broke
Pass-rate lift
+18 pp
Tokens
0%
Agent turns
0%
Response time
-33%
Model gemini-3.6-flashMeasured 8/20/2026v117 of 22 cases passed with skill · 18 comparable
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 4 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 4
Prompt
We want to refactor our configuration properties across all microservices to use @ConfigurationProperties. Before making any code modifications, what safety step must be executed, and what should happen if it fails?
What was checked, without and with the skill
Checked
Without skill
With skill
Specifies executing mvn compile before modifying files.
Missed
Passed
Stops execution immediately if initial compilation fails.
Missed
Passed
case-18 · gemini-3.6-flash · 8/20/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md59 lines2 files
Micronaut Core Guidelines
Apply Micronaut core guidelines for DI, configuration, HTTP adapters, and operations.
What is covered in this Skill?
Thin main with Micronaut.run(Application.class, args)
Bean scopes: @Singleton, @Prototype; request scope only when justified
Constructor injection with jakarta.inject.Inject
@Factory for third-party or explicit bean construction
@ConfigurationProperties (grouped settings) vs scattered @Property
@Requires and environments instead of env branching in domain code
Thin @Controller types delegating to @Singleton services
@Scheduled with explicit failure visibility
@ExecuteOn(TaskExecutors.BLOCKING) (or virtual-thread executors) for blocking I/O off the event loop
Netty graceful shutdown properties
AOP interceptors for cross-cutting concerns
Scope: Apply recommendations based on the reference rules and good/bad code examples.
Constraints
Before applying Micronaut changes, ensure the project compiles. If compilation fails, stop immediately. After applying improvements, run full verification.
MANDATORY: Run ./mvnw compile or mvn compile before applying any change
PREREQUISITE: Project must compile successfully before applying Micronaut core improvements
SAFETY: If compilation fails, stop immediately — compilation failure is a blocking condition
VERIFY: Run ./mvnw clean verify or mvn clean verify after applying improvements
BEFORE APPLYING: Read the reference for detailed rules, good/bad patterns, and constraints
When to use this skill
Review Java code for Micronaut application structure and beans
Apply best practices for Micronaut configuration, @Requires, and factories
Improve scheduling, shutdown, or threading in Micronaut services
Review Micronaut dependency injection scopes and factories
Configure Micronaut @Requires conditions for environments
Use when you need to design, review, or improve security in Micronaut applications — including micronaut-security authentication, @Secured and intercept-url-map rules, JWT/session strategies, SecurityService checks, CORS, CSRF awareness for browser apps, rejection handlers, and sensitive-data-safe logging. This should trigger for requests such as Add Micronaut security support; Review Micronaut security configuration; Improve API authorization in Micronaut; Add JWT security in Micronaut; Harden