decebals avatar

Concurrency Review

If you're working with Java concurrency, this catches the stuff that only breaks in production. It reviews thread safety issues, race conditions, and deadlocks across synchronized blocks, CompletableFuture chains, and Spring's @Async annotations. The skill covers modern patterns too: Virtual Threads, ScopedValue over ThreadLocal, and Java 25's structured concurrency. It's especially useful for catching Spring @Async gotchas like calling async methods from the same class or forgetting to configure a proper thread pool. Run it when you're touching anything with shared state or multiple threads. Concurrency bugs are timing dependent and hard to reproduce, so having an extra set of eyes before merge saves you from debugging race conditions at 2am.

skills.sh installs
384
GitHub stars
771
last updated
Feb 8, 2026

Install

$ npx -y skills add decebals/claude-code-java --skill concurrency-review --agent claude-code

Installs into .claude/skills of the current project.

Files

Concurrency Review Skill

Review Java concurrent code for correctness, safety, and modern best practices.

Why This Matters

Nearly 60% of multithreaded applications encounter issues due to improper management of shared resources. - ACM Study

Concurrency bugs are:

  • Hard to reproduce - timing-dependent
  • Hard to test - may only appear under load
  • Hard to debug - non-deterministic behavior

This skill helps catch issues before they reach production.

When to Use

  • Reviewing code with synchronized, volatile, Lock
  • Checking @Async, CompletableFuture, ExecutorService
  • Validating thread safety of shared state
  • Reviewing Virtual Threads / Structured Concurrency code
  • Any code accessed by multiple threads

Modern Java (21/25): Virtual Threads

When to Use Virtual Threads

// ✅ Perfect for I/O-bound tasks (HTTP, DB, file I/O)
try (ExecutorService executor = Executors.newVirtualThreadPerTaskExecutor()) {
    for (Request request : requests) {
        executor.submit(() -> callExternalApi(request));
    }
}

// ❌ Not beneficial for CPU-bound tasks
// Use platform threads / ForkJoinPool instead

Sponsors

Details

Repository
github.com/decebals/claude-code-java
Categories
Git & Pull Requests, Code Review & Quality, Java & JVM
License
MIT
First seen
Jun 11, 2026

More from decebals/claude-code-java

All 18
1bobmatnyc avatargit-worktreesbobmatnyc/claude-mpm-skillsUse git worktrees for parallel development on multiple branches simultaneously360skills.sh installs
2google-gemini avatarreview-duplicationgoogle-gemini/gemini-cliUse this skill during code reviews to proactively investigate the codebase for duplicated functionality, reinvented wheels, or failure to reuse existing project352skills.sh installs
3sickn33 avatargit-advanced-workflowssickn33/antigravity-awesome-skillsgit advanced workflows349skills.sh installs
4bobmatnyc avatarpre-mergebobmatnyc/claude-mpm-skillsComprehensive verification workflow before merging changes to production.339skills.sh installs
5owainlewis avatarcommitowainlewis/blueprintStage intended changes and create one Conventional Commit.331skills.sh installs
6davila7 avatarrequesting-code-reviewdavila7/claude-code-templatesUse when completing tasks, implementing major features, or before merging to verify work meets requirements311skills.sh installs