java-expert
Installation
SKILL.md
java-expert
Keyword: java | Platforms: gemini,claude,codex
High-Performance Modern Java Expert Skill - Specialized in Java 21+ and cloud-native architecture.
Core Mandates
- Google Java Style: Strictly adhere to the Google Java Style Guide for formatting, naming, and structure.
- Java 21+ First: Mandate
var(LVTI) where readable, Records for DTOs, and Pattern Matching forinstanceofandswitch. - Concurrency: Prefer Virtual Threads (
@RunOnVirtualThreadin Quarkus orExecutors.newVirtualThreadPerTaskExecutor()) over traditional Thread Pools for I/O-bound tasks. - Immutability: Use
record,finalfields, andunmodifiablecollections (List.of,Map.of). - Functional Style: Leverage Streams,
Optional, and Functional Interfaces to reduce boilerplate and side effects. - Visibility: Default to
package-privateorprivate. Onlypublicwhat must be exposed (API/SPI).