/java-core:java-concurrency-review [paste concurrent code or select in editor]from java-core
Reviews Java concurrency code for thread safety, race conditions, deadlocks, and Java 21 virtual thread compatibility.
Ships in java-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Review the Java code for concurrency correctness. Before reviewing, detect the Java version from pom.xml or build.gradle — suggest modern alternatives only if the version supports them.
List all concurrency mechanisms found: synchronized, volatile, AtomicXxx, Lock, ExecutorService, CompletableFuture, CountDownLatch, Semaphore, BlockingQueue, virtual threads (Java 21+).
count++) not wrapped in synchronized or AtomicIntegerif (map.containsKey(k)) map.get(k) → suggest map.computeIfAbsent()HashMap shared across threads → suggest ConcurrentHashMapArrayList / HashSet shared across threads → suggest concurrent alternativessynchronized calls that invoke external/unknown code while holding a lockReentrantLock without try/finally unlock → lock may never be releasedsynchronized blocks on different objectssynchronized on entire methods where only a small critical section needs protectionReentrantLock for fine-grained locking with timeout capabilitysynchronized(this) in classes exposed to external code → suggest private lock objectsynchronized on virtual thread code → suggest ReentrantLock (avoids carrier thread pinning)volatile, AtomicXxx, or synchronizationboolean flag fields used to stop threads → must be volatile or AtomicBooleanvolatilenew Thread(...) created directly in application code → suggest ExecutorServiceExecutorService never shut down → resource leakExecutors.newCachedThreadPool()) under high load → suggest bounded poolExecutors.newVirtualThreadPerTaskExecutor() for I/O-bound workloadsjstack <pid>/java-virtual-threads modernization/java-review for general code qualityWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub ducpm2303/claude-java-plugins --plugin java-core14 skills in this plugin
/java-adr/java-adr — Architecture Decision RecordsCreates, lists, and manages Architecture Decision Records for Java projects. Use when user asks to "create an ADR", "document this decision", "write an architecture decision", "add ADR", "list decisions", "show ADRs", or "record this architectural choice"./java-api-reviewStep 1 — HTTP method and status code correctnessReviews Java REST API design including HTTP methods, status codes, naming, and versioning. Use when user asks to "review my API", "check REST design", "is this good REST", "review endpoints", "API design review", "check my controller", or "review HTTP API"./java-Other plugins' skills for the same job