concurrency-review

Review concurrent code for race conditions, deadlocks, and resource leaks.

Updated May 10, 2026
One-click install
npx skills add https://github.com/rob-broadley/ai-airbase --skill concurrency-review-rob-broadley
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: concurrency-review
Source: https://github.com/rob-broadley/ai-airbase/tree/main/cadre/skills/concurrency-review
Command: npx skills add https://github.com/rob-broadley/ai-airbase --skill concurrency-review-rob-broadley

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you prevent hard-to-reproduce concurrency failures that can cause silent data corruption, deadlocks, and resource leaks.

Core Features & Use Cases

  • Race condition review: identify unsynchronised shared-state access, unsafe closure capture, and atomicity violations across async and multithreaded code.
  • Deadlock & resource-leak detection: spot lock ordering cycles, incorrect waiting patterns, missing cancellation paths, and completion mechanisms that never resolve.
  • Synchronization & messaging best-practice checks: validate correct use of locks, atomics, channels/queues, and cancellation propagation across JS/TS, Python, Java, C#, C++, Go, and Rust.

Quick Start

Ask an AI agent to review the following changes for potential concurrency issues in shared state access, deadlocks, resource leaks, synchronization primitives, messaging/queue shutdown behavior, and cancellation propagation.

Frequently Asked Questions about concurrency-review

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

FAQPage Schema
How do I find race conditions and deadlocks in concurrent code before shipping?

To find race conditions and deadlocks before shipping, analyze concurrent code for unsynchronised shared-state access, unsafe closure capture, and incorrect lock ordering cycles. This review detects silent data corruption and resource leaks across async and threaded execution.

What is the best way to review async cancellation propagation across multiple languages?

Reviewing async cancellation propagation requires validating correct waiting patterns, missing cancellation paths, and completion mechanisms that never resolve. The review targets language-specific signals across JS/TS, Python, Java, C#, C++, Go, and Rust.

Can I check synchronization primitive errors and message-passing patterns in Go and Rust?

Yes, you can check synchronization primitive errors and message-passing patterns in Go and Rust. The review validates correct use of locks, atomics, channels, queues, and messaging shutdown behavior across threaded execution and message-passing architectures.

When do I need a static analysis review for thread safety and shared state misuse?

A static analysis review for thread safety is needed when concurrent code risks silent data corruption, broken cancellation, or resource leaks. It classifies findings as Blocking, Recommendation, or Observation with actionable fixes for race conditions and lock ordering.

How do I detect distributed locking errors and unsafe closure capture in my codebase?

Detect distributed locking errors and unsafe closure capture by reviewing concurrent code for atomicity violations, incorrect waiting patterns, and synchronization primitive misuse. The analysis targets async interleavings, threaded execution, and distributed locking patterns.

Does concurrency review work with both async interleavings and threaded execution models?

Concurrency review works with both async interleavings and threaded execution models. It validates synchronization, messaging best-practices, and cancellation propagation across async, threaded, message-passing, and distributed locking patterns in multiple programming languages.