concurrency-review

Identify thread-safety risks, race conditions, and deadlocks in Java code.

1|Updated May 30, 2025
One-click install
npx skills add https://github.com/mzffreyvazov/yt-to-spotify2 --skill concurrency-review-mzffreyvazov
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: concurrency-review
Source: https://github.com/mzffreyvazov/yt-to-spotify2/tree/main/.agents/skills/concurrency-review
Command: npx skills add https://github.com/mzffreyvazov/yt-to-spotify2 --skill concurrency-review-mzffreyvazov

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Reviews Java code to identify thread-safety risks, race conditions, and deadlocks during a code review, helping teams tighten concurrency guarantees and prevent production bugs.

Core Features & Use Cases

  • Detects issues related to synchronized, volatile, Lock, and shared mutable state.
  • Evaluates asynchronous patterns such as CompletableFuture and @Async, including error handling and task orchestration.
  • Recommends modern concurrency practices (virtual threads, structured concurrency) and provides actionable remediation guidance with sample patterns.
  • Use Case: during a code review of a multi-threaded service, generate a prioritized list of fixes, tests, and documentation improvements.

Quick Start

Provide the Java project code (or a snippet) and ask for a concurrency review to receive a structured remediation plan, including identified risks and recommended fixes.

Frequently Asked Questions about concurrency-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review Java code for thread safety and race conditions?▼

Review Java code for thread safety by submitting multi-threaded snippets using synchronized, volatile, or Lock to receive a structured remediation plan identifying race conditions and prioritized fixes.

What is the best way to detect deadlocks in Java CompletableFuture and @Async code?▼

Detecting deadlocks in CompletableFuture and @Async code involves analyzing asynchronous flows for improper task orchestration and exception handling, yielding actionable remediation guidance with corrected sample patterns.

Can I check existing Java executors for correct thread pool usage during a code review?▼

Yes, you can check Java executors by submitting the multi-threaded service code to evaluate thread pool usage, ensure proper synchronization, and generate a prioritized fix list.

Does structured concurrency review work with virtual threads in modern Java?▼

Structured concurrency review works with virtual threads by evaluating modern concurrency practices in submitted Java code, ensuring proper synchronization and documenting concurrency guarantees for production safety.

How do I document concurrency guarantees for shared mutable state in Java?▼

Document concurrency guarantees for shared mutable state by reviewing the Java code to identify thread-safety risks, which produces documentation improvements alongside a prioritized list of fixes and tests.