What problem does it solve?
This Skill addresses the challenge of maintaining consistent, readable, and maintainable Java code, particularly within Spring Boot applications, by providing clear standards and best practices.
Core Features & Use Cases
- Enforces Naming Conventions: Guides on PascalCase, camelCase, and UPPER_SNAKE_CASE.
- Promotes Immutability: Advocates for records and final fields to reduce side effects.
- Optimizes Optional and Stream Usage: Provides guidance on effective functional programming patterns.
- Standardizes Exception Handling: Recommends domain-specific exceptions and fail-fast strategies.
- Guides Project Structure: Offers a typical Maven/Gradle layout for Spring Boot projects.
- Use Case: When developing a new microservice, use this Skill to ensure all Java code adheres to established best practices for naming, immutability, and error handling, leading to a more robust and maintainable codebase.
Quick Start
Apply the java-coding-standards skill to ensure the provided Java code follows best practices for naming and immutability.