What problem does it solve?
This skill provides a standardized approach to writing Java code in Spring Boot services, reducing cognitive load and increasing readability by enforcing naming conventions, immutability, proper Optional usage, streams, robust exception handling, and consistent package layouts.
Core Features & Use Cases
- Naming conventions and packaging to improve navigability and collaboration.
- Immutability-first guidelines using records and final fields.
- Safe Optional usage to clearly express absence and avoid nulls.
- Streams best practices for clear and efficient data processing.
- Robust exception handling with domain-specific errors and meaningful messages.
- Project layout recommendations for Maven/Gradle structures and module boundaries.
- Use Case: Refactor a Spring Boot service like MarketService to adopt immutable DTOs and consistent error handling.
Quick Start
- Inspect a Spring Boot module and enforce the Java coding standards to generate a conformity report.
- Example prompt: Analyze src/main/java/com/example/app to enforce the java-coding-standards and propose concrete fixes.