java-coding-standards

Enforce Java 17+ coding standards for Spring Boot services.

Updated Feb 21, 2026
One-click install
npx skills add https://github.com/AndyHsuTW/everything-llm-workspace --skill java-coding-standards-andyhsutw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: java-coding-standards
Source: https://github.com/AndyHsuTW/everything-llm-workspace/tree/main/.agents/skills/java-coding-standards
Command: npx skills add https://github.com/AndyHsuTW/everything-llm-workspace --skill java-coding-standards-andyhsutw

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the challenge of maintaining consistent, readable, and maintainable Java code within Spring Boot services by providing clear guidelines on naming conventions, immutability, error handling, and project structure.

Core Features & Use Cases

  • Standardized Naming: Enforces PascalCase for classes/records and camelCase for methods/fields.
  • Immutability: Promotes the use of records and final fields for safer state management.
  • Effective Optional Usage: Guides on returning and utilizing Optional to handle potential null values gracefully.
  • Stream Best Practices: Recommends concise stream pipelines for transformations.
  • Exception Handling: Advocates for domain-specific unchecked exceptions and wrapping technical ones.
  • Project Structure: Outlines a standard Maven/Gradle project layout.
  • Code Smells Avoidance: Identifies and suggests alternatives for common code smells like long parameter lists and deep nesting.
  • Logging & Null Handling: Provides examples for effective logging and null-safe coding.
  • Testing Expectations: Sets standards for testing frameworks and practices.

Quick Start

Apply the Java coding standards to the provided code snippet.

Frequently Asked Questions about java-coding-standards

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the best practices for handling null values in Java Spring Boot services?

Effective null handling in Java Spring Boot involves using `Optional` to gracefully manage potential null returns and applying null-safe coding practices to ensure readable and maintainable code.

How do I structure a Maven or Gradle project for a Java 17 Spring Boot service?

Standardizing a Spring Boot project layout involves organizing your Maven or Gradle structure according to outlined conventions, ensuring consistent architecture across your Java 17+ services.

When should I use Java records and final fields for state management?

You should use Java records and final fields to enforce immutability, which provides safer state management and reduces side effects within your Spring Boot services.

What is the recommended approach to exception handling in Java Spring Boot?

Exception handling in Java Spring Boot should advocate for throwing domain-specific unchecked exceptions and wrapping technical exceptions to maintain clear error boundaries.

How do I avoid common code smells like deep nesting in Java streams?

Avoiding code smells in Java streams requires writing concise stream pipelines for transformations and refactoring long parameter lists or deep nesting into more readable structures.

Does this Java coding standards guide cover testing expectations for Spring Boot?

Yes, the Java coding standards set specific testing expectations and standards for testing frameworks to ensure your Spring Boot services remain readable, maintainable, and robust.