java-project-standardlisted
Install: claude install-skill VoldemortGin/AI-Coding-Skill-Bible
# Java Project Standard
This skill is the guiding standard for **any** plain-JVM Java work. Apply it by default; don't wait to be asked.
Its spine: **trust is placed not in the model, but in the machine-checkable code that constrains it.** In Java a large part of that scaffold is the compiler — a static, non-erased-at-the-API type system, sealed types with exhaustive `switch`, and records. But `javac` alone is lax (unchecked casts warn but pass; `null` is unchecked; many bug patterns slip through), so the standard turns the knobs to the maximum and adds two tools the compiler lacks: **Error Prone** (bug-pattern checks, promoted to errors — the clippy/detekt analog) and **NullAway** (compile-time null-safety over JSpecify `@Nullable` — the Kotlin null-safety / Swift optional analog). The job here is to (a) keep the escape hatches shut and turn on `-Werror` + `-Xlint:all` + Error Prone + NullAway, (b) push every external dependency behind an interface so the model is hot-swappable, (c) organize deep with module-per-domain and name-navigable structure, and (d) mechanize the implicit knowledge a human would otherwise hold — via a zero-warning gate with a coverage floor, a per-module contract, and the format + lint gates. The agent's output ceiling equals the tightness of that loop.
Baseline: **Java 21+** (LTS; targeted via `options.release = 21`, so the build is independent of the host JDK version — any JDK 21..25+ on `JAVA_HOME`), Gradle **9.x** (Kotlin DSL) multi-module + a