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.
npx skills add mohitmishra786/low-level-dev-skills --skill concurrency-debugginggit clone --depth 1 https://github.com/mohitmishra786/low-level-dev-skillsWrote 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.
[](https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/concurrency-debugging)<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.
<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>- Socket pass
- Snyk pass
- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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.
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:
- Line 1: type of access (write/read) and address
- Stack under "Write of size": the thread that performed the write
- Stack under "Previous read/write": the conflicting thread
- "Thread T2 created at": where the thread was spawned
- Fix: the
incrementandread_counterfunctions 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 |
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.
- 11d ago Changed · +3 lines 3b74a3131984
- 3mo ago First seen · 238 lines · 91 tokens per session scan A aced85c0f11d
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.
concurrency-debugging compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| concurrency-debuggingmohitmishra786/low-level-dev-skills | Skill | 308 | 11d ago | MIT | A | 91 | Claude Code, Codex |
| push-notification-testerteam-telnyx/ai | Skill | 232 | today | MIT | A | 55 | Claude Code |
| log-analyzermoonlight-lupin/agent-skills | Skill | 136 | 2d ago | MIT | A | 52 | Claude Code, Codex |
| debugmoonlight-lupin/agent-skills | Skill | 136 | 2d ago | MIT | A | 104 | Claude Code, Codex |
| error-handlerEliasOulkadi/shokunin | Skill | 112 | 1mo ago | MIT | A | 125 | Claude Code |
| performance-profilerEliasOulkadi/shokunin | Skill | 112 | 1mo ago | MIT | A | 118 | Claude Code |
| organic-traffic-drop-diagnosiscoupler-io/skills | Skill | 43 | 7d ago | MIT | A | 187 | Claude Code |