orkid: Skill for Claude Code

.claude/skills/orkcore-threading/SKILL.md

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

A reference guide for Orkid's threading and concurrency tools. It explains ways for multiple tasks to run at the same time, including threads, queues, locks, futures, and task graphs.

In plain words
What is it for?
Use it to answer Orkid-specific questions about thread pools, mutexes, concurrent queues, operation queues, futures, and task graphs.
Why use it?
It gives an agent the project's exact source locations and terminology when answering questions about parallel work and shared resources.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

This is tweakoz/orkid's own configuration. It tells Claude Code how to work on orkid itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything orkid configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tweakoz/orkid. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/tweakoz/orkid/develop/.claude/skills/orkcore-threading/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/tweakoz/orkid

Made for: Claude Code.

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/github.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/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 orkcore-threading

Your own site · 80×15
<a href="https://agentmods.dev/skills/tweakoz/orkid/orkcore-threading"><img src="https://agentmods.dev/badge/skills/tweakoz/orkid/orkcore-threading.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.00056 $0.00873
Opus 5.5 $0.00022 $0.00349
Sonnet 5.5 $0.00011 $0.00175
Haiku 4.5 $0.00006 $0.00087

Measured 2mo ago against content hash be69f86d2aff, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 2mo ago), licensed MIT. It adds 56 tokens to every session and 873 once invoked, about $0.0002 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-09-01.

Related

orkcore-threading compared with skills from other repositories

orkcore-threading next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
orkcore-threadingtweakoz/orkidSkill352mo agoMITA56Claude Code
dart-pythondartsim/dartSkill1.2kyesterdayBSD-2-ClauseA20Claude Code, Codex
commands-create-slash-commandagent0ai/agent-zeroSkill20kyesterdaynoneA22Claude Code, Codex
et-test-writeFlameskyDexive/Legends-Of-HeroesSkill9361mo agoMITA60Claude Code, Codex
et-codeFlameskyDexive/Legends-Of-HeroesSkill9361mo agoMITA61Claude Code, Codex
et-lubanFlameskyDexive/Legends-Of-HeroesSkill9361mo agoMITA58Claude Code, Codex
et-buildFlameskyDexive/Legends-Of-HeroesSkill9361mo agoMITA47Claude Code, Codex