java-convention

Enforce modern Java coding conventions and Spring Boot best practices.

1|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/iceflower/opencode-agents-and-skills --skill java-convention
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: java-convention
Source: https://github.com/iceflower/opencode-agents-and-skills/tree/main/skills/java-convention
Command: npx skills add https://github.com/iceflower/opencode-agents-and-skills --skill java-convention

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides comprehensive guidelines and best practices for writing clean, efficient, and modern Java code, especially when working with Spring Boot.

Core Features & Use Cases

  • Modern Java Features: Covers records, sealed classes, pattern matching, and virtual threads.
  • Spring Boot Integration: Demonstrates idiomatic Spring Boot patterns for services, controllers, and configuration.
  • Error Handling & Null Safety: Enforces robust error handling and safe null management.
  • Use Case: Ensure your team adheres to the latest Java idioms and Spring Boot best practices for maintainable and scalable applications.

Quick Start

Apply the java-convention skill to review the provided Java code snippet for adherence to modern conventions.

Frequently Asked Questions about java-convention

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

FAQPage Schema
What are the best practices for modern Java coding conventions in Spring Boot?

Modern Java coding conventions for Spring Boot enforce robust null handling, utilize records and sealed classes, apply pattern matching, and integrate virtual threads to improve overall code quality and maintainability.

How do I use virtual threads and records in Java applications?

To use virtual threads and records in Java applications, apply modern coding conventions that enforce robust null handling, pattern matching, and sealed classes for improved API design and code maintainability.

Does this Java convention guidance cover error handling and null safety?

Yes, this Java convention guidance covers error handling and null safety by enforcing safe null management and robust error handling practices to ensure clean, efficient, and maintainable code.

How do I review Java code snippets for adherence to modern conventions?

To review Java code snippets for modern conventions, apply coding standards that check for idiomatic Spring Boot patterns, proper API design, and the correct usage of modern Java features like sealed classes.

When should I use sealed classes and pattern matching in Java?

You should use sealed classes and pattern matching in Java when designing robust APIs and ensuring maintainable code, as these modern conventions help prevent common anti-patterns and improve error handling.