Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

java

БесплатноБез исполняемых скриптовНе проверен

Java language and JVM engineering standards — records and sealed-type modelling, JSpecify null-safety with NullAway as a build error, immutability, virtual…

olehsvyrydovот olehsvyrydov★ 18 звёзд на GitHub

Об этом скилле

Java (language skill)

This is a knowledge skill, not an agent: it loads from context whenever Java is written or reviewed, and the role agents (/be, /rev, /arch) route into it for the language-level rules. Framework depth — Spring, persistence, API design, messaging — stays with /be (../../backend/java/backend-developer/SKILL.md) and its ../../backend/java/backend-developer/references/java-expertise.md; this skill owns the language.

Trigger

Use this skill when:

  • Writing, editing, or reviewing .java files
  • Changing pom.xml, build.gradle, build.gradle.kts, or gradle/libs.versions.toml
  • Diagnosing a javac, Error Prone, or JVM test failure
  • Designing a Java component — domain model, null contract, concurrency topology
  • Planning tests for Java code
  • Adding a dependency to a JVM build

Do NOT load it for:

  • Kotlin — that is /be's kotlin reference
  • Spring/API/persistence how-to — that is /be's java-expertise reference

Context

This skill exists to make Java reviews boring. Illegal states cannot compile, so the reviewer argues about the domain instead of hunting null checks. Null flows are verified by a checker at build time, so "can this be null?" has a mechanical answer. Architecture rules are executable tests, so the layering survives its tenth contributor. Where the language has moved — records, sealed types, virtual threads, ScopedValue — the doctrine moves with it and states which runtime each piece of advice applies to.

Documentation Lookup (MANDATORY)

Before implementing any feature, check current documentation. Java ships a new release every six months, preview APIs mutate between releases, and the tooling stack (Error Prone, NullAway, PIT, ArchUnit) moves independently; recall is not a source.

Context7 MCP

Use Context7 MCP to retrieve up-to-date documentation for any library or tool:

  1. Resolve library: Call mcp__context7__resolve-library-id with the library name
  2. Query docs: Call mcp__context7__query-docs with the resolved library ID and your question

When to use: JUnit 6 APIs, ArchUnit rule syntax, Testcontainers modules, NullAway and Error Prone flags, pitest configuration, jqwik arbitraries.

Example queries:

  • "JUnit 6 parameterized test sources"
  • "ArchUnit 1.4 layeredArchitecture syntax"
  • "Testcontainers Spring Boot ServiceConnection supported containers"
  • "NullAway OnlyNullMarked option"
  • "pitest incremental analysis configuration"
  • "jqwik combinators for recursive records"

Web Research

Use WebSearch and WebFetch for anything version- or advisory-shaped:

Question Source to check
Is a feature final or preview on the deployed JDK the JEP page — its status line, not blog posts
What changed in a JDK release the release notes / JEP index for that exact JDK
Current version of a library its repository / Maven Central, at task time
Advisory against a dependency the OSV database

Java-specific lookup rules

  • Preview APIs are looked up against the current JEP number, never recalled. Preview features rename between releases — structured concurrency's Joiner API changed between the JDK 25 preview (JEP 505) and the JDK 26 preview (JEP 525). Code recalled from an earlier preview round will not compile on the next JDK; find the JEP that ships with the project's JDK and read that one.
  • Framework claims are verified against the deployed major. Spring Framework 7 is JSpecify-annotated and recommends NullAway; Spring 6 used its own null-safety annotations. Null-safety, baseline-JDK, and namespace advice all differ by major — check which one the project actually runs before asserting anything.

Rule: When uncertain about any API, configuration, or best practice — search first, code second.

Versions

Technology Version Notes
Java 25 (LTS) The baseline this skill targets; 26 is non-LTS, 27 expected Sept 2026
ScopedValue final since 25 JEP 506
Stream Gatherers final since 24 JEP 485 — Stream.gather(...)
FFM final since 22 java.lang.foreign — the JNI replacement
Structured concurrency PREVIEW JEP 505 (5th preview, 25) → JEP 525 (6th preview, 26, Joiner renames); expected final in 27
Virtual-thread pinning fix JDK 24 JEP 491 — synchronized no longer pins
JSpecify 1.0 org.jspecify:jspecify:1.0.0; Spring Framework 7 is annotated with it
Error Prone ≥ 2.36 The floor NullAway requires
NullAway 0.12.x OnlyNullMarked mode for incremental adoption
JUnit 6.0.x GA 2025-09; one version across Platform/Jupiter/Vintage; Java 17 baseline
PIT (pitest) 1.19.4+ Incremental analysis; JUnit Platform engines (JUnit 6 Jupiter) via the separate pitest-junit5-plugin (1.2.x)
jqwik 1.10.x Property-based testing
ArchUnit 1.4.x Architecture rules as tests
Testcontainers current
Полный SKILL.md на GitHub

Установить java в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/build-and-quality-gates.md

FAQ

Что делает скилл java?

Java language and JVM engineering standards — records and sealed-type modelling, JSpecify null-safety with NullAway as a build error, immutability, virtual threads and modern concurrency, Error Prone/ArchUnit/PIT build gates, JUnit 6 testing doctrine, and boundary security. Load whenever writing, refactoring, or reviewing Java: any .java file, pom.xml/build.gradle change, javac or test failure, or Java design/test planning — with or without /be or /rev invoked. NOT for Kotlin (that is /be's kotlin reference) and NOT for Spring/API/persistence how-to (that is /be's java-expertise reference).

Как установить скилл java?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл java запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить java с