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 j4flmao/agent-skills --skill concurrencygit clone --depth 1 https://github.com/j4flmao/agent-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/j4flmao/agent-skills/concurrency)<a href="https://agentmods.dev/skills/j4flmao/agent-skills/concurrency"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/concurrency/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/j4flmao/agent-skills/concurrency"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/concurrency.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- 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.00068 | $0.02031 |
| Opus 5.5 | $0.00027 | $0.00812 |
| Sonnet 5.5 | $0.00014 | $0.00406 |
| Haiku 4.5 | $0.00007 | $0.00203 |
Grade A, and why
backend-concurrency-mechanics scanned grade A with 1 finding 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 13d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
g.Go(func() error { return fetch(ctx, u) }) // Go 1.22+: loop var is per-iteration How it starts
The opening of the file, as written. The whole thing — 164 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Concurrency Mechanics
Purpose
Pick the right concurrency model for a workload and write shared-state code that is correct under the language's memory model. Most production concurrency bugs come from unsynchronized shared state, blocking an event loop, or unbounded parallelism; this skill targets those.
Agent Protocol
Trigger
Exact user phrases: "race condition", "data race", "goroutine vs thread", "event loop blocking", "memory barrier", "memory model", "mutex vs atomic", "deadlock", "thread pool sizing", "virtual threads", "async vs threads".
Input Context
- Language/runtime and version (Go, Java 21+, Node.js, Python, Rust, .NET).
- Workload type: I/O-bound, CPU-bound, or mixed.
- The shared state or code path that misbehaves; any race detector output.
Output Artifact
Explanation of the execution model plus corrected code. No files unless requested.
Response Format
Model: {OS threads | M:N (goroutines/virtual threads) | event loop}
Workload: {I/O-bound | CPU-bound}
Shared state: {what} -> {mutex | atomic | channel/actor | immutable copy}
Bound: {pool size / semaphore N}
Verify: {go test -race | jcstress | stress test}
Execution Models
| Model | Examples | Scheduling | Cost per unit | Blocking call behaviour |
|---|---|---|---|---|
| 1:1 OS threads | Java platform threads, C++ std::thread, Python threads | Kernel scheduler | Each thread reserves a stack (commonly 1 MB on Windows, 8 MB virtual on Linux glibc, committed lazily) plus kernel structures | Blocks only that thread |
| M:N user-space | Go goroutines, Java 21 virtual threads, Erlang processes | Runtime multiplexes many tasks onto a few OS threads | Small growable stacks (Go starts at 2 KB) | Runtime parks the task; blocking syscalls may pin a carrier thread |
| Event loop | Node.js (libuv), Python asyncio, Netty, Redis command execution | Single thread runs callbacks/coroutines when I/O is ready (epoll, kqueue, IOCP) | Very cheap per connection | Any CPU-heavy or synchronous call stalls every request |
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.
- 13d ago Changed · +1 lines · -70 tokens per session b0ef1b1ebafd
- 1mo ago Changed · +114 lines · +108 tokens per session ec6aea9de848
- 2mo ago First seen · 49 lines · 30 tokens per session scan A c2dfbbda0bcc
backend-concurrency-mechanics is a skill published in the GitHub repository j4flmao/agent-skills (46 stars, last pushed 13d ago), licensed MIT. It adds 68 tokens to every session and 2,031 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
backend-concurrency-mechanics compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| backend-concurrency-mechanicsj4flmao/agent-skills | Skill | 46 | 13d ago | MIT | A | 68 | Claude Code, Codex |
| Concurrency Testing PatternsPramodDutta/qaskills | Skill | 253 | 27d ago | MIT | A | 25 | Claude Code, Codex |
| Async Correctness 非同期処理の正しさ検証s977043/river-review | Skill | 8 | yesterday | MIT | A | 95 | Claude Code |
| asynciobobmatnyc/claude-mpm-skills | Skill | 79 | 4mo ago | MIT | A | 32 | Claude Code |
| golangMadAppGang/claude-code | Skill | 290 | 8mo ago | MIT | A | 38 | Claude Code |
| go-concurrency-patternsfindscripter/everything-skills | Skill | 12 | 2d ago | none | A | 126 | Claude Code |
| golang-backend-developmentmanutej/luxor-claude-marketplace | Skill | 64 | 5mo ago | none | A | 28 | Claude Code |