Covers the full spectrum of Java concurrency from basic threads to Java 21's virtual threads, with solid coverage of executors, locks, and CompletableFuture patterns. The quick reference examples are practical, especially the virtual thread executor and CompletableFuture composition patterns you'll actually use in production. The thread pool sizing guidance is helpful, though real tuning always depends on your specific workload. Bonded to the advanced Java agent, so it can handle everything from debugging race conditions with jstack to configuring ThreadPoolExecutor rejection policies. If you're dealing with concurrent code beyond basic synchronized blocks, this will save you from the usual gotchas.

skills.sh installs
467
GitHub stars
42
last updated
Aug 21, 2026

Install

$ npx -y skills add pluginagentmarketplace/custom-plugin-java --skill java-concurrency --agent claude-code

Installs into .claude/skills of the current project.

Files

Java Concurrency Skill

Master Java concurrency patterns for thread-safe applications.

Overview

This skill covers concurrency from basic threads to virtual threads (Java 21+), including thread pools, synchronization, and CompletableFuture.

When to Use This Skill

Use when you need to:

  • Write thread-safe code
  • Implement parallel processing
  • Use async programming patterns
  • Tune thread pools
  • Debug concurrency issues

Topics Covered

Thread Management

  • Thread lifecycle and states
  • Daemon vs user threads
  • Interrupt handling

Synchronization

  • synchronized, volatile
  • Lock interfaces (ReentrantLock)
  • Atomic operations

Executors

  • ThreadPoolExecutor configuration
  • ForkJoinPool
  • Virtual Threads (Java 21+)

CompletableFuture

  • Async execution
  • Chaining and composition
  • Exception handling

Quick Reference

// Virtual Threads (Java 21+)
try (var executor = Executors.newVirtualThreadPerTaskExecutor()) {
    IntStream.range(0, 10_000).forEach(i ->
        executor.submit(() -> processRequest(i)));
}

Sponsors

Details

Repository
github.com/pluginagentmarketplace/custom-plugin-java
Category
Java & JVM
First seen
Jun 3, 2026

More from pluginagentmarketplace/custom-plugin-java

All 12

Recommended

More Java & JVM
1tamtom avatargplay-gradle-buildtamtom/gplay-cli-skillsBuild, sign, and package Android apps with Gradle before uploading to Google Play. Use when asked to create an APK or AAB, configure signing, or set up build pi420skills.sh installs
2krutikjain avatarandroid-gradle-build-logickrutikjain/android-agent-skillsShape Android build logic with Gradle, version catalogs, plugins, convention patterns, and toolchain compatibility.344skills.sh installs
3gentleman-programming avatarjava-21gentleman-programming/gentleman-skillsJava 21 language and runtime patterns for modern, safe code. Trigger: When writing Java 21 code using records, sealed types, or virtual threads.328skills.sh installs
4personamanagmentlayer avatarkotlin-expertpersonamanagmentlayer/pclExpert-level Kotlin development, Android, coroutines, and multiplatform201skills.sh installs
5travisjneuman avatarkotlin-multiplatformtravisjneuman/.claudeKMP/CMP shared business logic, Compose Multiplatform, expect/actual, Ktor, SQLDelight, and platform-specific implementations. Use when building cross-platform K180skills.sh installs
6leavesfly avatarjava-best-practicesleavesfly/jimiJava 编码最佳实践与设计模式164skills.sh installs