🎯

ln-628-concurrency-auditor

🎯Skill

from levnikolaevich/claude-code-skills

VibeIndex|
What it does

Audits code for concurrency issues like race conditions, async patterns, thread safety, and potential deadlocks across different programming languages.

πŸ“¦

Part of

levnikolaevich/claude-code-skills(85 items)

ln-628-concurrency-auditor

Installation

Claude CodeAdd plugin in Claude Code
/plugin add levnikolaevich/claude-code-skills
git cloneClone repository
git clone https://github.com/levnikolaevich/claude-code-skills.git ~/.claude/skills
πŸ“– Extracted from docs: levnikolaevich/claude-code-skills
12Installs
-
AddedFeb 4, 2026

Skill Details

SKILL.md

Concurrency audit worker (L3). Checks race conditions, missing async/await, resource contention, thread safety, deadlock potential. Returns findings with severity, location, effort, recommendations.

Overview

# Concurrency Auditor (L3 Worker)

Specialized worker auditing concurrency and async patterns.

Purpose & Scope

  • Worker in ln-620 coordinator pipeline
  • Audit concurrency (Category 11: High Priority)
  • Check race conditions, async/await, thread safety
  • Calculate compliance score (X/10)

Inputs (from Coordinator)

Receives contextStore with tech stack, language, codebase root.

Workflow

1) Parse context

2) Check concurrency patterns

3) Collect findings

4) Calculate score

5) Return JSON

Audit Rules

1. Race Conditions

Detection:

  • Shared state modified without synchronization
  • Global variables accessed by multiple async functions
  • Check for locks/mutexes usage

Severity:

  • CRITICAL: Race condition in payment/auth
  • HIGH: Race in user-facing feature
  • MEDIUM: Race in background job

Recommendation: Use locks, atomic operations, message queues

Effort: M-L (redesign with synchronization)

2. Missing Async/Await

Detection:

  • Callback hell: nested callbacks >3 levels
  • Grep for .then().then().then()
  • Find promises without await

Severity:

  • MEDIUM: Callback hell (hard to maintain)
  • LOW: Mixed Promise styles (then + await)

Recommendation: Convert to async/await

Effort: M (refactor control flow)

3. Resource Contention

Detection:

  • Multiple file handles to same file
  • Database connection pool exhausted
  • Concurrent writes without locking

Severity:

  • HIGH: File corruption risk
  • MEDIUM: Performance degradation

Recommendation: Use connection pooling, file locking

Effort: M (add resource management)

4. Thread Safety Violations

Detection (Go, Rust, Java):

  • Shared mutable state
  • Missing sync.Mutex (Go)
  • Missing Arc> (Rust)
  • Missing synchronized (Java)

Severity:

  • HIGH: Data corruption possible

Recommendation: Use thread-safe primitives

Effort: M (add synchronization)

5. Deadlock Potential

Detection:

  • Multiple locks acquired in different order
  • Lock held while calling external API

Severity:

  • HIGH: Deadlock freezes application

Recommendation: Consistent lock ordering, timeout locks

Effort: L (redesign locking strategy)

Scoring Algorithm

```

penalty = (critical 2.0) + (high 1.0) + (medium 0.5) + (low 0.2)

score = max(0, 10 - penalty)

```

Output Format

```json

{

"category": "Concurrency",

"score": 7,

"total_issues": 4,

"critical": 0,

"high": 2,

"medium": 2,

"low": 0,

"findings": [

{

"severity": "HIGH",

"location": "src/services/payment.ts:45",

"issue": "Shared state 'balanceCache' modified without synchronization",

"principle": "Thread Safety / Concurrency Control",

"recommendation": "Use mutex or atomic operations for balanceCache updates",

"effort": "M"

}

]

}

```

---

Version: 3.0.0

Last Updated: 2025-12-23

More from this repository10

πŸͺ
levnikolaevich-claude-code-skillsπŸͺMarketplace

Official marketplace for Agile Linear Workflow plugin - complete end-to-end automation for software development teams using Linear. Includes 7XX Project Bootstrap series for technology-agnostic project migration.

🎯
ln-140-test-docs-creator🎯Skill

Generates comprehensive test documentation with testing strategy and test organization structure for software projects.

🎯
ln-110-project-docs-coordinator🎯Skill

Coordinates project documentation by gathering context once, detecting project type, and delegating document creation to 5 specialized workers.

🎯
ln-114-frontend-docs-creator🎯Skill

Generates design guidelines documentation for frontend projects with WCAG 2.1 compliance when a frontend framework is detected.

🎯
ln-113-backend-docs-creator🎯Skill

Generates backend documentation files (API spec and database schema) automatically when backend or database technologies are detected in a project.

🎯
ln-610-code-comments-auditor🎯Skill

Audits code comments and docstrings across 6 quality categories, generating a comprehensive compliance score and actionable recommendations for improvement.

🎯
ln-115-devops-docs-creator🎯Skill

Generates a comprehensive runbook.md for DevOps setup, dynamically tailored to project's Docker configuration and deployment specifics.

🎯
ln-772-error-handler-setup🎯Skill

Configures global exception handling middleware for .NET and Python backend applications with standardized error responses.

🎯
ln-120-reference-docs-creator🎯Skill

Generates reference documentation structure and smart documents for project tech stack, creating only justified architectural decision records and guides.

🎯
ln-625-dependencies-auditor🎯Skill

Audits dependencies for outdated packages, unused imports, unnecessary libraries, and custom implementations, providing actionable recommendations.