Ревью многопоточного Java-кода

engineering

concurrency-review is a Claude Code skill that audits Java code for thread safety, race conditions, deadlocks, and adherence to modern concurrency patterns. It covers Virtual Threads (Java 21/25), Structured Concurrency, ScopedValue, CompletableFuture error handling, and Spring @Async — including common pitfalls such as calling @Async from within the same class, missing @EnableAsync, unconfigured thread pools, and SecurityContext not propagating across threads. The skill accounts for the virtual-thread pinning fix introduced in Java 25 (JEP 491) and flags ThreadLocal usage that becomes problematic with virtual threads. It's aimed at developers reviewing multithreaded Spring applications who want to catch concurrency bugs before they reach production, covering synchronized blocks, volatile fields, Lock usage, and ExecutorService configuration.