java-project-style

Apply project-wide Java coding conventions to edits and new code.

7|1|Updated Jul 6, 2022
One-click install
npx skills add https://github.com/SharplEr/glag --skill java-project-style
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: java-project-style
Source: https://github.com/SharplEr/glag/tree/main/.agents/skills/java-project-style
Command: npx skills add https://github.com/SharplEr/glag --skill java-project-style

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The guidelines provide a comprehensive, enforceable standard for Java project code, ensuring consistent style, architecture, and quality across edits and new code.

Core Features & Use Cases

  • Establishes a modern Java baseline (Java 25) including records, var usage, pattern matching, and sealed types where appropriate.
  • Guides API design, data modeling, mutability, nullability, and testing practices to improve readability, performance, and reliability.
  • Useful for teams implementing or reviewing code, refactoring, or teaching new contributors the project’s conventions.

Quick Start

Apply the project style rules to a Java file you are editing or creating to produce clean, consistent code.

Frequently Asked Questions about java-project-style

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

FAQPage Schema
How do I enforce modern Java coding conventions across a project?

You establish a modern Java baseline including records, var usage, pattern matching, and sealed types, while guiding API design, mutability, nullability, and testing practices to ensure consistent quality across the project.

What is the best way to standardize Java API design and nullability in code reviews?

You enforce explicit mutability, nullability, and disciplined API boundaries during code reviews, using modern Java features to improve readability, performance, and reliability across the codebase.

Does this Java style guide support Java 25 features like records and sealed types?

Yes, it establishes a modern Java 25 baseline, explicitly encouraging the use of records, var usage, pattern matching, and sealed types where appropriate for implementation and refactoring.

How do I apply coding conventions to refactoring and performance-sensitive Java code?

Apply project style rules to refactoring and performance-sensitive Java code by targeting specific implementation areas with design principles that enforce modern features, explicit mutability, and disciplined API design.

When do I need a Java style guide for teaching new contributors project conventions?

A Java style guide is needed for teaching new contributors when you want to enforce consistent architecture, style, and quality across edits, helping them learn project conventions quickly and reliably.