orklev2-coreaudio

orklev2-coreaudio is a skill for Claude Code, Codex from tweakoz/orkid. It costs 68 tokens per session (921 once invoked), scanned A, original, MIT.

A reference guide to orkid's macOS CoreAudio backend, which connects the operating system's audio system to the Singularity synthesizer.

In plain words
What is it for?
Use it to answer questions about AudioUnit graphs, audio input and output callbacks, device handling, and stereo audio buffers on macOS.
Why use it?
It gives accurate implementation details for understanding how audio devices, callbacks, buffers, and the synthesizer fit together.

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/orklev2-coreaudio
Any agent
npx skills add tweakoz/orkid --skill orklev2-coreaudio
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 orklev2-coreaudio

README.md
[![agentmods](https://agentmods.dev/badge/skills/tweakoz/orkid/orklev2-coreaudio.svg)](https://agentmods.dev/skills/tweakoz/orkid/orklev2-coreaudio)
Your own site
<a href="https://agentmods.dev/skills/tweakoz/orkid/orklev2-coreaudio"><img src="https://agentmods.dev/badge/skills/tweakoz/orkid/orklev2-coreaudio.svg" alt="Measured on agentmods" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 921 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.1 $0.00068 $0.00921
Opus 5 $0.00034 $0.00461
Sonnet 5 $0.00014 $0.00184
Haiku 4.5 $0.00007 $0.00092

Measured 4d ago against content hash d94834a211a3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

orklev2-coreaudio 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 4d 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/orklev2-coreaudio/SKILL.md · 98 lines

How it starts

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

Orkid CoreAudio Backend Reference

When answering questions about the CoreAudio backend in orkid, consult the files below. All under ork.lev2/.

Key Files

Component File
AudioDevice Base inc/ork/lev2/aud/audiodevice.h
CoreAudioDevice src/aud/coreaudio/CoreAudioDevice.h
CoreAudioDevice Impl src/aud/coreaudio/CoreAudioDevice.cpp
AuContext (AudioUnit) src/aud/coreaudio/au.h, au.cpp
I/O Callbacks src/aud/coreaudio/au_io.cpp
Config Flags inc/ork/lev2/config.h (ENABLE_CORE_AUDIO)
Factory src/aud/audiodevice.cpp

Architecture

CoreAudioDevice
  └─ AuContext
       ├─ AUGraph (AudioUnit graph)
       │   ├─ _inputUnit (HAL input)
       │   └─ _outputUnit (HAL output)
       ├─ _inputProc() → LayerFragment → _inputQueue
       └─ _outputProc() ← StereoFragment ← _outputQueue
                              ↑
                    Singularity synth.compute()

CoreAudioDevice

  • _the_synth — Singularity synth instance
  • _aucontext — AudioUnit context managing the graph
  • _inputDevList / _outputDevList — enumerated CoreAudio devices
  • _actual_input_channels — resolved input channel count

Startup Flow

  1. Get device info for input/output
  2. Create Singularity synth instance
  3. Create AuContext
  4. _aucontext->Init() → build AudioUnit graph
  5. _aucontext->Start() → begin audio processing

AuContext

Member Description
_graph AUGraph (AudioUnit processing graph)
_inputUnit / _outputUnit HAL AudioUnits
_inputBuffer AudioBufferList for input
_outputPool / _inputPool Object pools for audio fragments
_outputQueue / _inputQueue MpMcBoundedQueue (4096 entries)

Graph Configurations

  • setupGraphForInputOnly() — input-only HAL unit
  • setupGraphForOutputOnly() — output-only HAL unit
  • setupGraphForIO() — bidirectional I/O

Callbacks (au_io.cpp)

Input Callback (_inputProc)

  1. AudioUnitRender() — pull data from HAL
  2. De-interleave into LayerFragment
  3. Push to _inputQueue
  4. Delivered as AudioInputChunk to consumer

Read the full file on GitHub · 98 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. 4d ago First seen · 98 lines · 68 tokens per session scan A d94834a211a3

Subscribe to this mod's changes

orklev2-coreaudio is a skill published in the GitHub repository tweakoz/orkid (35 stars, last pushed 23d ago), licensed MIT. It adds 68 tokens to every session and 921 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