java-conventions
Installation
SKILL.md
Java Conventions
Enforce versioned, idiomatic Java language conventions. This skill is the fallback baseline for syntax, style, naming, visibility, structure, methods, streams, exceptions, and comments. Build, packaging, framework, protocol, and architecture rules come from composed skills (e.g., java-cli-script, java-cli-app, microprofile-server, spring-boot-server, sdd4j-bce, migrate-to-bce).
How to Use This Skill
- Determine the target Java version:
- Use the version the user explicitly mentions.
- Otherwise, read the version from the project (
pom.xml,build.gradle,module-info.java,README.md,system.properties). - Default to 25 if no version is found.
- Load the matching reference file from
references/java-<version>.md. - Apply the loaded conventions as the fallback baseline.
- If a composed skill has a specific rule for the same topic, the composed skill wins.
Bundled References
- Java 25 — references/java-25.md
When a reference for the requested version does not yet exist, fall back to the highest bundled reference that is not newer than the target, and only use features available in the target version. If the target is higher than all bundled references, use the newest bundled reference and note that it may not cover the latest features.