java-coding-standards

Installation
Summary

Coding standards for readable, maintainable Java 17+ in Spring Boot services.

  • Covers naming conventions (PascalCase for classes, camelCase for methods, UPPER_SNAKE_CASE for constants), immutability patterns with records and final fields, and Optional usage with map/flatMap
  • Establishes best practices for streams, exception handling with domain-specific exceptions, and type-safe generics
  • Includes project structure guidance (Maven/Gradle layout), formatting rules, and code smells to avoid (long parameter lists, deep nesting, static mutable state)
  • Recommends null handling with annotations, logging patterns, and testing expectations (JUnit 5, AssertJ, Mockito)
SKILL.md

Java Coding Standards

Standards for readable, maintainable Java (17+) code in Spring Boot and Quarkus services.

When to Use

  • Writing or reviewing Java code in Spring Boot or Quarkus projects
  • Enforcing naming, immutability, or exception handling conventions
  • Working with records, sealed classes, or pattern matching (Java 17+)
  • Reviewing use of Optional, streams, or generics
  • Structuring packages and project layout
  • [QUARKUS]: Working with CDI scopes, Panache entities, or reactive pipelines

How It Works

Framework Detection

Before applying standards, determine the framework from the build file:

Related skills
Installs
4.7K
GitHub Stars
179.7K
First Seen
Feb 12, 2026