Immutable by default; minimize shared mutable state
Fail fast with meaningful exceptions
Consistent naming and package structure
[QUARKUS]: Favor build-time over runtime processing; avoid runtime reflection where possible
Examples
The sections below show concrete Spring Boot, Quarkus, and shared Java examples
for naming, immutability, dependency injection, reactive code, exceptions,
project layout, logging, configuration, and tests.
Naming
java
// PASS: Classes/Records: PascalCasepublicclassMarketService {}
publicrecordMoney(BigDecimal amount, Currency currency) {}
// PASS: Methods/fields: camelCaseprivatefinal MarketRepository marketRepository;
public Market findBySlug(String slug) {}
// PASS: Constants: UPPER_SNAKE_CASEprivatestaticfinalintMAX_PAGE_SIZE=100;
// PASS: [QUARKUS] JAX-RS resources named as *Resource, not *ControllerpublicclassMarketResource {}
// PASS: [SPRING] REST controllers named as *ControllerpublicclassMarketController {}
Immutability
java
// PASS: Favor records and final fieldspublicrecordMarketDto(Long id, String name, MarketStatus status) {}
publicclassMarket {
privatefinal Long id;
privatefinal String name;
// getters only, no setters
}
// PASS: [QUARKUS] Panache active-record entities use public fields (Quarkus convention)@EntitypublicclassMarketextendsPanacheEntity {
public String name;
public MarketStatus status;
// Panache generates accessors at build time; public fields are idiomatic here
}
// PASS: [QUARKUS] Panache MongoDB entities@MongoEntity(collection = "markets")publicclassMarketextendsPanacheMongoEntity {
public String name;
public MarketStatus status;
}
Add this badge to a GitHub README so readers can open the package page and install the same version.
[](https://www.aipm-registry.com/skills/affaan-m/java-coding-standards/1.0.0?utm_source=github&utm_medium=readme&utm_campaign=package_badge)
This imported publisher has not claimed its AIPM account. A connected account confirms account control, but it does not guarantee that a package is safe.
AI assistant context
What this skill is for
@affaan-m/java-coding-standards@1.0.0 is an AIPM skill package for All tools. Use it when a project needs the reusable AI behavior described as: Java coding standards for Spring Boot and Quarkus services: naming, immutability, Optional usage, streams, exceptions, generics, CDI, reactive patterns, and project layout. Automatically applies framework-specific conventions. Use when w...
Preview a UI component mockup in a local browser canvas where the human directly edits it (move, resize, edit text, delete, restyle), switches mobile/desktop/custom viewports, tests it, chats with you, and clicks Save and Finish. You the...
Run aipm add @affaan-m/java-coding-standards@1.0.0 in a project that has AIPM initialized.
Supported tools
@affaan-m/java-coding-standards@1.0.0 supports All tools.
Before installing
AIPM skills can add files to your project. Review the package name, target, description, license, and publisher before installing. Use a clean branch when trying a new skill.