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 xonovex/platform --skill writing-lock-free-codegit clone --depth 1 https://github.com/xonovex/platformWrote 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/xonovex/platform/writing-lock-free-code)<a href="https://agentmods.dev/skills/xonovex/platform/writing-lock-free-code"><img src="https://agentmods.dev/badge/skills/xonovex/platform/writing-lock-free-code/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/xonovex/platform/writing-lock-free-code"><img src="https://agentmods.dev/badge/skills/xonovex/platform/writing-lock-free-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00100 | $0.01433 |
| Opus 5.5 | $0.00040 | $0.00573 |
| Sonnet 5.5 | $0.00020 | $0.00287 |
| Haiku 4.5 | $0.00010 | $0.00143 |
Grade A, and why
writing-lock-free-code 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 9d 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 — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Lock-Free / Wait-Free Concurrency Guidelines
Choose concurrency primitives by their progress guarantees, memory ordering, and reclamation requirements; verify them under contention.
Requirements
- C11 atomics (
<stdatomic.h>); applies to systems code with atomic, threading, and job-scheduling primitives.
Essentials
- No data races - Every shared mutable location touched by 2+ threads is atomic or lock-protected, see references/memory-model.md
- CAS loops retry -
compare_exchange_weakin a loop; reload the expected value on failure, see references/atomics-and-cas.md - Lock-free needs reclamation - Removing a node from a shared structure is not freeing it, see references/safe-memory-reclamation.md
- Measure, do not assume - Locks are often faster; profile before going lock-free, see references/progress-guarantees.md
Memory model
- Progress guarantees - wait-free ⊃ lock-free ⊃ obstruction-free ⊃ blocking, see references/progress-guarantees.md
- Happens-before - Acquire/release builds the ordering that makes writes visible, see references/memory-model.md
- Orderings - relaxed/acquire/release/acq_rel/seq_cst + fences, see references/memory-ordering.md
Building blocks
- Atomics & CAS - load/store/exchange/fetch_*/compare_exchange, weak vs strong, see references/atomics-and-cas.md
- ABA problem - CAS can't see a value changed away and back; tag pointers or reclaim safely, see references/aba-problem.md
- False sharing - Pad/align hot per-thread and atomic fields to their own cache line, see references/false-sharing.md
Data structures
- SPSC ring - One producer, one consumer, no CAS, see references/spsc-ring-buffer.md
- MPSC queue - Intrusive: producers XCHG tail, consumer walks next, see references/mpsc-queue.md
- MPMC bounded - Per-cell sequence numbers, ABA-free, see references/mpmc-bounded-queue.md
- Lock-free stack - CAS on head; needs reclamation for pop, see references/lock-free-stack.md
What ships with it
18 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- eval-output.json 4.0 KB
- eval-trigger.json 5.5 KB
- moon.yml 86 B
- references/aba-problem.md 2.7 KB
- references/atomics-and-cas.md 3.3 KB
- references/false-sharing.md 1.9 KB
- references/lock-free-stack.md 2.9 KB
- references/locks-and-backoff.md 4.1 KB
- references/memory-model.md 2.8 KB
- references/memory-ordering.md 2.0 KB
- references/mpmc-bounded-queue.md 5.3 KB
- references/mpsc-queue.md 3.6 KB
- references/progress-guarantees.md 2.6 KB
- references/safe-memory-reclamation.md 4.5 KB
- references/scalable-architecture.md 4.1 KB
- references/spsc-ring-buffer.md 2.6 KB
- references/testing-and-verification.md 3.4 KB
- sources.json 7.0 KB
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.
- 9d ago First seen · 70 lines · 100 tokens per session scan A 2eca575228c6
writing-lock-free-code is a skill published in the GitHub repository xonovex/platform (6 stars, last pushed yesterday), licensed MIT. It adds 100 tokens to every session and 1,433 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-11-21.
writing-lock-free-code compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| writing-lock-free-codexonovex/platform | Skill | 6 | yesterday | MIT | A | 100 | Claude Code |
| kastell-researchkastelldev/kastell | Skill | 59 | 1mo ago | Apache-2.0 | A | 42 | Claude Code |
| System Healthchecknavig-run/core | Skill | 5 | 1mo ago | none | A | 93 | Claude Code |
| Emergency Debuggingnavig-run/core | Skill | 5 | 1mo ago | none | A | 28 | Claude Code |
| docker-managementfurkangonel/cowrangler | Skill | 1 | 2mo ago | MIT | C | 16 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 101k | today | Apache-2.0 | A | 19 | Claude Code |