
from cursor-rules-java356
Guidelines and best practices for structuring Micronaut applications: DI scopes, configuration properties, factories, controllers vs services, scheduling, and g
Guides an agent to apply Micronaut-specific best practices when reviewing or modifying Java services. It covers DI patterns (@Singleton, @Prototype), constructor injection, @Factory usage, grouped configuration via @ConfigurationProperties, use of @Requires for environment gating, controller/service separation, scheduling and safe blocking off the event loop, and Netty graceful shutdown. The skill includes constraints and verification steps to ensure changes compile and are verified.
Use this skill when reviewing or improving Micronaut-based Java projects: onboarding audits, PR review suggestions, refactoring beans and configuration, fixing scheduling or shutdown behavior, or applying thread/executor recommendations for blocking I/O. The skill should only run when the project compiles successfully and verification steps can be run.
Likely compatible with code-focused agents and harnesses that can inspect and modify Java code (e.g., Claude Code, Cursor, Copilot-style assistants).
This skill has not been reviewed by our automated audit pipeline yet.