concurrency-debugging

concurrency-debugging is a skill for Claude Code, Codex from mohitmishra786/low-level-dev-skills. It costs 91 tokens per session (2,101 once invoked), scanned A, original, MIT.

Guidance for finding data races and deadlocks, which are bugs caused by threads accessing shared work incorrectly or waiting on one another forever. It covers tools and reasoning for C++ and Rust programs, including ThreadSanitizer, Helgrind, and GDB.

In plain words
What is it for?
Use it to investigate ThreadSanitizer reports, deadlocked programs, incorrect atomic operations, lock-order problems, and other multithreading failures in C++ or Rust.
Why use it?
Concurrency bugs can be intermittent and difficult to reproduce from ordinary logs. The guidance helps interpret reports, inspect blocked threads, check lock ordering, and reason about which operations must happen before others.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to investigate ThreadSanitizer reports, deadlocked programs, incorrect atomic operations, lock-order problems, and other multithreading failures in C++ or Rust.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mohitmishra786/low-level-dev-skills/concurrency-debugging
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mohitmishra786/low-level-dev-skills --skill concurrency-debugging
Clone the repo
git clone --depth 1 https://github.com/mohitmishra786/low-level-dev-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for concurrency-debugging

README.md
[![agentmods](https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/concurrency-debugging/github.svg)](https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/concurrency-debugging)
Your own site
<a href="https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/concurrency-debugging"><img src="https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/concurrency-debugging/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for concurrency-debugging

Your own site · 80×15
<a href="https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/concurrency-debugging"><img src="https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/concurrency-debugging.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 91 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,101 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk pass 15 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00091 $0.02101
Opus 5.5 $0.00036 $0.00840
Sonnet 5.5 $0.00018 $0.00420
Haiku 4.5 $0.00009 $0.00210

Measured 11d ago against content hash 3b74a3131984, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

concurrency-debugging scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/debuggers/concurrency-debugging/SKILL.md · 241 lines

How it starts

The opening of the file, as written. The whole thing — 241 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Concurrency Debugging

Purpose

Guide agents through diagnosing and fixing concurrency bugs: reading ThreadSanitizer race reports, using Helgrind for lock-order analysis, detecting deadlocks with GDB thread inspection, identifying common std::atomic misuse patterns, and applying happens-before reasoning in C++ and Rust.

Triggers

  • "ThreadSanitizer reported a data race — how do I read the report?"
  • "My program deadlocks — how do I debug it?"
  • "How do I use Helgrind to find threading bugs?"
  • "Am I using std::atomic correctly?"
  • "How does happens-before work in C++ memory ordering?"
  • "How do I find which threads are deadlocked in GDB?"

Workflow

1. ThreadSanitizer (TSan) — race detection

# Build with TSan
clang -fsanitize=thread -g -O1 -o prog main.c
# or GCC
gcc -fsanitize=thread -g -O1 -o prog main.c

# Run (TSan intercepts memory accesses at runtime)
./prog

# TSan-specific options
TSAN_OPTIONS="halt_on_error=1:second_deadlock_stack=1" ./prog

Reading a TSan report:

WARNING: ThreadSanitizer: data race (pid=12345)
  Write of size 4 at 0x7f1234 by thread T2:
    #0 increment /src/counter.c:8:5              ← access site in T2
    #1 worker_thread /src/counter.c:22:3

  Previous read of size 4 at 0x7f1234 by thread T1:
    #0 read_counter /src/counter.c:3:14          ← conflicting access in T1
    #1 main /src/counter.c:30:5

  Thread T2 created at:
    #0 pthread_create .../tsan_interceptors.cpp
    #1 main /src/counter.c:28:3

SUMMARY: ThreadSanitizer: data race /src/counter.c:8:5 in increment

How to read:

  1. Line 1: type of access (write/read) and address
  2. Stack under "Write of size": the thread that performed the write
  3. Stack under "Previous read/write": the conflicting thread
  4. "Thread T2 created at": where the thread was spawned
  5. Fix: the increment and read_counter functions access the same address without synchronization

Common races and fixes:

Race pattern Fix
Read/write on global without lock Add mutex or use std::atomic
Double-checked locking without atomic Use std::once_flag + std::call_once
+= on shared integer Use std::atomic<int>::fetch_add()
Container modified while iterated Lock entire critical section
shared_ptr ref count race Already safe (ref count is atomic); but pointed-to object may not be

Read the full file on GitHub · 241 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago Changed · +3 lines 3b74a3131984
  2. 3mo ago First seen · 238 lines · 91 tokens per session scan A aced85c0f11d

Subscribe to this mod's changes

concurrency-debugging is a skill published in the GitHub repository mohitmishra786/low-level-dev-skills (308 stars, last pushed 11d ago), licensed MIT. It adds 91 tokens to every session and 2,101 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

concurrency-debugging compared with skills from other repositories

concurrency-debugging next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
concurrency-debuggingmohitmishra786/low-level-dev-skillsSkill30811d agoMITA91Claude Code, Codex
push-notification-testerteam-telnyx/aiSkill232todayMITA55Claude Code
log-analyzermoonlight-lupin/agent-skillsSkill1362d agoMITA52Claude Code, Codex
debugmoonlight-lupin/agent-skillsSkill1362d agoMITA104Claude Code, Codex
error-handlerEliasOulkadi/shokuninSkill1121mo agoMITA125Claude Code
performance-profilerEliasOulkadi/shokuninSkill1121mo agoMITA118Claude Code
organic-traffic-drop-diagnosiscoupler-io/skillsSkill437d agoMITA187Claude Code