java-coding-standards

Enforce Java coding standards for Spring Boot services.

1.8k|303|Updated Jan 27, 2026
One-click install
npx skills add https://github.com/xu-xiang/everything-claude-code-zh --skill java-coding-standards-xu-xiang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: java-coding-standards
Source: https://github.com/xu-xiang/everything-claude-code-zh/tree/main/skills/java-coding-standards
Command: npx skills add https://github.com/xu-xiang/everything-claude-code-zh --skill java-coding-standards-xu-xiang

SYSTEM DOCUMENTATION & REQUIREMENTS

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.

Frequently Asked Questions about java-coding-standards

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

FAQPage Schema
What are the Java coding standards for Spring Boot services?

To enforce Java coding standards in Spring Boot, inspect your module to generate a conformity report and propose concrete fixes for naming, immutability, Optional handling, and project layout based on prescriptive guidelines and templates.

How do I handle Optional in Java Spring Boot to avoid nulls?

Handle Optional in Java Spring Boot by applying safe usage guidelines that clearly express absence and avoid nulls, ensuring robust exception handling with domain-specific errors and meaningful messages throughout your services.

Does this coding standards skill apply to Maven and Gradle Spring Boot projects?

Yes, this coding standards skill applies to typical Spring Boot projects using Maven or Gradle structures, providing project layout recommendations and module boundaries to enforce consistent packaging and navigability.

How do I refactor a Spring Boot service to use immutable DTOs?

Refactor a Spring Boot service to use immutable DTOs by applying immutability-first guidelines using records and final fields, updating domain models, services, and controllers to adopt consistent error handling and standardized coding practices.