java-coding-standards

Defines and enforces Java 21 coding standards for the VeloAuth project.

29|9|Updated Nov 17, 2025
One-click install
npx skills add https://github.com/rafalohaki/VeloAuth --skill java-coding-standards-rafalohaki
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: java-coding-standards
Source: https://github.com/rafalohaki/VeloAuth/tree/main/.github/skills/java-coding-standards
Command: npx skills add https://github.com/rafalohaki/VeloAuth --skill java-coding-standards-rafalohaki

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Java 21 coding standards for VeloAuth provide a unified, modern baseline to improve readability, safety, and maintainability of the Velocity proxy project. Keep naming consistent, enforce immutability, ensure thread safety with virtual threads, use DbResult patterns, apply Optional judiciously, and standardize logging with markers across the codebase. This Skill codifies the essential conventions to streamline collaboration and reduce the risk of subtle defects.

Core Features & Use Cases

  • Naming conventions and immutability rules to ensure predictable, thread-safe components
  • Pattern guidance for DbResult, Optional usage, streams, and marker-based logging
  • Project layout and package visibility guidelines to improve maintainability and onboarding

Quick Start

Integrate these Java 21 standards into every new code change by applying the project's conventions from this guide.

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 21 coding standards for the VeloAuth project?

Java 21 coding standards for VeloAuth define naming conventions, enforce immutability, ensure thread safety with virtual threads, and mandate DbResult patterns, Optional usage, streams, exceptions, and marker-based logging across the repository.

How do I ensure thread safety using virtual threads in Java 21?

To ensure thread safety with virtual threads in Java 21, apply the VeloAuth coding standards which enforce immutability rules and naming conventions to create predictable, thread-safe components throughout the codebase.

When should I use the DbResult pattern and Optional in Java?

The DbResult pattern and Optional should be used judiciously in Java to handle database operations and null values safely, following the VeloAuth standards to standardize logging with markers and improve code maintainability.

Does the VeloAuth Java coding standards guide cover project layout and package visibility?

Yes, the VeloAuth Java coding standards guide covers project layout and package visibility guidelines, providing a clear, maintainable baseline for all Java code to improve contributor onboarding and collaboration.

What is the best way to standardize logging with markers in a Java 21 project?

The best way to standardize logging with markers in a Java 21 project is to apply the VeloAuth coding conventions, which codify essential marker-based logging rules to reduce the risk of subtle defects and streamline collaboration.

Can I use these Java coding standards for code reviews and contributor onboarding?

Yes, you can integrate these Java 21 coding standards into code reviews and contributor onboarding, as they provide a unified, modern baseline applicable to toolchains for improving readability, safety, and maintainability.