codereview-concurrency

Analyze concurrency patterns in code to surface reliability issues.

8|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/xinbenlv/codereview-skills --skill codereview-concurrency
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: codereview-concurrency
Source: https://github.com/xinbenlv/codereview-skills/tree/main/skills/codereview-concurrency
Command: npx skills add https://github.com/xinbenlv/codereview-skills --skill codereview-concurrency

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps engineers identify and fix concurrency, retry, and resilience flaws in distributed systems during code reviews. It ensures failures are handled gracefully and recoverable under adverse conditions.

Core Features & Use Cases

  • Retry policy analysis: Verify retry strategies, backoff, and idempotency.
  • Timeouts and circuit breakers: Check propagation, sane limits, and fallbacks.
  • Race conditions and locking: Detect potential deadlocks and ensure safe coordination.
  • Use Case: During a review of a worker queue, ensure messages are idempotent and can be retried safely without duplication.

Quick Start

Analyze a code diff or PR to assess concurrency resilience, then apply the provided checklist to evaluate patterns and recommendations.

Frequently Asked Questions about codereview-concurrency

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

FAQPage Schema
How do I check for retry policy and idempotency issues in distributed systems code?

To check retry policy and idempotency issues, analyze code diffs to verify retry strategies, backoff mechanisms, and safe message processing in worker queues. This ensures messages can be retried safely without duplication during failure recovery.

How do I detect race conditions and deadlocks in async workflows?

Detect race conditions and deadlocks in async workflows by auditing concurrency patterns for safe coordination and locking mechanisms. This process surfaces potential reliability flaws to ensure fault tolerance under adverse conditions.

What is the best way to review circuit breaker and timeout configurations in code?

The best way to review circuit breaker and timeout configurations is to enforce checks for sane limits, propagation, and fallbacks. This validates that distributed transactions handle failures gracefully and remain recoverable.

Can I use code review automation to assess concurrency resilience in pull requests?

Yes, you can assess concurrency resilience in pull requests by applying a checklist to evaluate async workflows and distributed transactions. This guides reviews to improve fault tolerance and identify flaws early.

Why do I need to verify idempotency for worker queue messages?

You need to verify idempotency for worker queue messages to ensure they can be retried safely without duplication. This prevents data corruption and maintains reliability when processing failures occur in distributed systems.

What concurrency patterns should I look for to improve fault tolerance in distributed transactions?

Look for concurrency patterns including retry strategies, backoff mechanisms, timeout propagation, and circuit breaker fallbacks. Analyzing these patterns surfaces reliability issues and guides improvements for graceful failure handling.