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...
Vite build tool patterns including config, plugins, HMR, env variables, proxy setup, SSR, library mode, dependency pre-bundling, and build optimization. Activate when working with vite.config.ts, Vite plugins, or Vite-based projects.
Translate visa document images (bank deposit, employment, income, and retirement certificates; HEIC, PNG, or JPG) into English via OCR and produce a bilingual PDF pairing the original image with a formatted certified-style translation. U...
Ingest, index, search, edit, and monitor video and audio with the VideoDB Python SDK — upload from files, URLs, or RTSP feeds, build spoken and scene indexes with timestamped search and playable clips, transcode and reframe, do timeline...
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.