agentsclimarketplace

Concurrency

Skill v0idOS/performance-deity/skills/concurrency

Detect and fix race conditions and deadlocks. Fires thousands of concurrent requests to prove thread-unsafety, then applies the minimal synchronization primitive needed.From its SKILL.md

Install
npx -y skills add v0idOS/performance-deity --skill concurrency

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.4 KB, 287 tokens by cl100k_base, as published. Nobody here has run it

Execute all four phases in order.

Phase 1 — Chaos Script

Write a test that fires ≥1,000 concurrent async requests or threads at the target function simultaneously. The test must assert the final state deterministically (e.g. if a counter is incremented 1,000 times, assert counter === 1000).

Phase 2 — Failure Verification

Run the test. If it passes consistently:

  • Increase concurrency to 10,000.
  • Add sleep() calls mid-execution to force thread context switching.

Prove the function is unsafe before fixing it. Do not add synchronization to code that has not been shown to fail.

Phase 3 — Synchronization

Implement the minimal synchronization primitive needed (prefer in this order):

  1. Atomic operations (e.g. Atomics.add, atomic.AddInt64, std::atomic)
  2. Mutex / Lock with the smallest possible critical section
  3. Semaphore only if mutual exclusion alone is insufficient

Do not hold a lock across any I/O operation.

Phase 4 — Report

Re-run the test with 10,000 concurrent requests. Report the pass/fail counts.

MetricBeforeAfter
Failures at 1k concurrentN0
Failures at 10k concurrentN0

The target is 0 failures.

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.