orkcore-threading

orkcore-threading is a skill for Claude Code, Codex from tweakoz/orkid. It costs 56 tokens per session (873 once invoked), scanned A, original, MIT.

Answer questions about orkid's threading, concurrency, operation queues (OPQ), LockedResource, thread pools, futures, and task graphs. Use when the user asks about async, threading, mutexes, concurrent queues, or parallelism in orkid.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/tweakoz/orkid/orkcore-threading
Any agent
npx skills add tweakoz/orkid --skill orkcore-threading
Clone the repo
git clone --depth 1 https://github.com/tweakoz/orkid

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 orkcore-threading

README.md
[![agentmods](https://agentmods.dev/badge/skills/tweakoz/orkid/orkcore-threading.svg)](https://agentmods.dev/skills/tweakoz/orkid/orkcore-threading)
Your own site
<a href="https://agentmods.dev/skills/tweakoz/orkid/orkcore-threading"><img src="https://agentmods.dev/badge/skills/tweakoz/orkid/orkcore-threading.svg" alt="Measured on agentmods" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 873 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00056 $0.00873
Opus 5 $0.00028 $0.00436
Sonnet 5 $0.00011 $0.00175
Haiku 4.5 $0.00006 $0.00087

Measured 2d ago against content hash be69f86d2aff, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

orkcore-threading 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 2d 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.

.claude/skills/orkcore-threading/SKILL.md · 63 lines

How it starts

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

Orkid Core Threading & Concurrency Reference

When answering questions about threading or concurrency in orkid, consult the source files listed below. All paths are relative to the orkid repo root.

Key Files

Component Header Implementation
Operation Queue (OPQ) ork.core/inc/ork/kernel/opq.h ork.core/src/kernel/opq.cpp
Thread ork.core/inc/ork/kernel/thread.h ork.core/src/kernel/thread.cpp
Mutex / LockedResource ork.core/inc/ork/kernel/mutex.h (header-only)
Concurrent Queues ork.core/inc/ork/kernel/concurrent_queue.h (header-only templates)
Ring Buffer (MPMC) ork.core/inc/ork/kernel/ringbuffer.hpp (header-only template)
Thread Pool ork.core/inc/ork/kernel/thread_pool.h ork.core/src/kernel/thread_pool.cpp
Future ork.core/inc/ork/kernel/future.hpp ork.core/src/kernel/future.cpp
Task Graph ork.core/inc/ork/kernel/taskgraph.h ork.core/src/kernel/taskgraph.cpp
Semaphore ork.core/inc/ork/kernel/semaphore.h ork.core/src/kernel/semaphore.cpp
Atomic ork.core/inc/ork/kernel/atomic.h (header-only wrapper)

Architecture Overview

Operation Queue (OPQ) - Primary Concurrency Mechanism

  • OperationsQueue — dynamic thread pool with enqueue/drain/sync
  • Global queues: opq::concurrentQueue(), opq::mainSerialQueue(), opq::updateSerialQueue(), opq::ioQueue()
  • ConcurrencyGroup — subdivide OPQ with max-inflight limits; MakeSerial() for serial execution
  • CompletionGroup — batch operations and join() to wait for all
  • Performance profiles: LOW_LATENCY (5us), BALANCED (25us), IO (2500us)

LockedResource - Thread-Safe Data Wrapper

  • RAII wrapper with LockForRead(), LockForWrite(), UnLock()
  • atomicOp(lambda) — execute lambda under lock
  • atomicCopy(), atomicExchange() — convenience methods

Concurrent Queues

  • SPSCQueue<T,N> — lock-free single-producer single-consumer, fixed capacity
  • MpMcBoundedQueue<T,N> — multi-producer multi-consumer via MpMcRingBuf (Vyukov algorithm)
  • Both support blocking (push/pop) and non-blocking (try_push/try_pop)

Read the full file on GitHub · 63 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. 2d ago First seen · 63 lines · 56 tokens per session scan A be69f86d2aff

Subscribe to this mod's changes

orkcore-threading is a skill published in the GitHub repository tweakoz/orkid (35 stars, last pushed 22d ago), licensed MIT. It adds 56 tokens to every session and 873 once invoked, about $0.0003 per session on Opus 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-09-01.

Related

Other skills, from other repositories

host-pattern

Use when adding a new domain to Nuclear's plugin system, or implementing a host. Covers the host pattern (how player functionality is exposed to plugins), the host interface and API class structure, how hosts are implemented in the player, error handling conventions, and what files to create and modify. Trigger…

nukeop/nuclear · 86 tokens

creating-components

Use when creating new UI components in packages/ui. Covers component structure, tests, stories, and what to avoid.

nukeop/nuclear · 26 tokens

writing-docs

Use when writing or editing documentation in packages/docs. Covers Gitbook markdown syntax, special blocks, page structure, and the SUMMARY.md table of contents. Trigger phrases include "write docs", "add documentation", "docs page", "gitbook", "user manual".

nukeop/nuclear · 57 tokens

writing-plugins

Use when writing, scaffolding, or modifying Nuclear plugins. Covers plugin structure, manifest, entry point, provider types, available APIs, and publishing. Trigger phrases include "create a plugin", "write a plugin", "plugin scaffold", "streaming provider", "metadata provider".

nukeop/nuclear · 60 tokens

analyzing-linux-elf-malware

Analyze malicious Linux ELF binaries — botnets, cryptominers, ransomware, and rootkits targeting Linux servers, containers, and cloud infrastructure — through static analysis, dynamic tracing, and reverse engineering of x8664 and ARM samples. Use when investigating Linux malware, triaging a suspicious ELF binary…

mukul975/Anthropic-Cybersecurity-Skills · 82 tokens

analyzing-linux-kernel-rootkits

Detect kernel-level rootkits in Linux memory dumps using Volatility3 linux plugins (checksyscall, lsmod, hiddenmodules), rkhunter system scanning, and /proc vs /sys discrepancy analysis to identify hooked syscalls, hidden kernel modules, and tampered system structures.

mukul975/Anthropic-Cybersecurity-Skills · 65 tokens