Applies Java concurrency best practices: thread safety, ExecutorService tuning, CompletableFuture, virtual threads, structured concurrency, deadlock avoidance, and cancellation/backpressure patterns.
Ships in 125-java-concurrency. 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.
Read when SKILL.md points to them.
Identify and apply Java concurrency best practices to improve thread safety, scalability, and maintainability by using modern java.util.concurrent utilities and virtual threads.
What is covered in this Skill?
ConcurrentHashMap, AtomicInteger, ReentrantLock, ReadWriteLock, Java Memory ModelExecutorService thread pool configuration: sizing, keep-alive, bounded queues, rejection policies, graceful shutdownBlockingQueueCompletableFuture for non-blocking async composition (thenApply/thenCompose/exceptionally/orTimeout)volatile, static initializers)Executors.newVirtualThreadPerTaskExecutor()) for I/O-bound scalabilityStructuredTaskScope) for related subtasks in Java 27 previewScopedValue over ThreadLocal for immutable cross-task dataInterruptedException disciplineCallerRunsPolicytryLock with timeoutsVirtualThreadPinned)UncaughtExceptionHandler observabilityLongAdder, CopyOnWriteArrayList, StampedLock, Semaphore, CountDownLatch, PhaserScope: The reference is organized by examples (good/bad code patterns) for each core area. Apply recommendations based on applicable examples.
Before applying any concurrency changes, ensure the project compiles. If compilation fails, stop immediately — compilation failure is a blocking condition. After applying improvements, run full verification.
./mvnw compile or mvn compile before applying any change./mvnw clean verify or mvn clean verify after applying improvementsRun ./mvnw compile or mvn compile and stop immediately if compilation fails.
Read references/125-java-concurrency.md and identify thread-safety, coordination, and throughput issues to address.
Implement suitable concurrency patterns, structured task scopes where they fit related subtasks, cancellation discipline, and fit-for-purpose primitives.
Run ./mvnw clean verify or mvn clean verify after applying improvements.
For detailed guidance, examples, and constraints, see references/125-java-concurrency.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/125-java-concurrency:125-java-concurrencyfrom 125-java-concurrency
npx claudepluginhub jabrena/plinth --plugin 125-java-concurrencyOther plugins' skills for the same job