sethdford/claude-skills/concurrency-debugging

Claude Code and agent skill by sethdford/claude-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Race conditions, deadlocks, thread analysis, happens-before relationships.

Install

npx vskill@latest install sethdford/claude-skills/concurrency-debugging

SKILL.md

The same SKILL.md was published earlier as sethdford/claude-skills/concurrency-debugging.

Concurrency Debugging

Identifying bugs caused by concurrent access and timing issues.

Context

You are debugging concurrency issues. These are the hardest bugs to find and reproduce.

Domain Context

  • Race Condition: Two threads access shared data; order matters; result is non-deterministic
  • Deadlock: Threads waiting for each other; system hangs
  • Happens-Before: Guarantee that one event completes before another
  • Memory Visibility: When one thread sees writes from another thread

Instructions

  1. Reproduce Consistently: Add logging, delays, thread barriers
  2. Check Synchronization: Are shared variables protected?
  3. Verify Lock Ordering: Do all threads acquire locks in same order?
  4. Analyze Thread Dumps: What is each thread waiting for?
  5. Look for Wait-Free Patterns: Are threads spinning, not blocking?
  6. Use Tools: ThreadSanitizer, Helgrind (Valgrind), or language-specific tools
  7. Add Happens-Before: Use happens-before semantics (memory barriers, atomic ops)

Anti-Patterns

  • Single-threaded debugging then assuming it works threaded; concurrency bugs are different
  • Using sleep() for synchronization; racey and slow
  • Assuming x++ is atomic; it's not, use atomic operations
  • Multiple locks protecting same data; hard to reason about
  • Not testing under load; concurrency bugs often need high contention to appear

Further Reading

  • Brian Gorelick, _Concurrency in Practice_
  • Java Concurrency in Practice (excellent; applies to other languages too)
  • ThreadSanitizer documentation

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Grok Build (Cursor)
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/sethdford/claude-skills/concurrency-debugging/badge)](https://verified-skill.com/skills/sethdford/claude-skills/concurrency-debugging)

Something wrong with this skill or its page? Tell us.