orkid: Skill for Claude Code

.claude/skills/orklev2-coreaudio/SKILL.md

orklev2-coreaudio is a skill for Claude Code 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 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/orklev2-coreaudio/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 orklev2-coreaudio

README.md
[![agentmods](https://agentmods.dev/badge/skills/tweakoz/orkid/orklev2-coreaudio/github.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/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 orklev2-coreaudio

Your own site · 80×15
<a href="https://agentmods.dev/skills/tweakoz/orkid/orklev2-coreaudio"><img src="https://agentmods.dev/badge/skills/tweakoz/orkid/orklev2-coreaudio.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.5 $0.00027 $0.00368
Sonnet 5.5 $0.00014 $0.00184
Haiku 4.5 $0.00007 $0.00092

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

orklev2-coreaudio compared with skills from other repositories

orklev2-coreaudio next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
orklev2-coreaudiotweakoz/orkidSkill352mo agoMITA68Claude Code
create-skillwarpdotdev/warpSkill66kyesterdayAGPL-3.0A64Claude Code, Codex
test-warp-uiwarpdotdev/warpSkill66kyesterdayAGPL-3.0A55Claude Code
dart-testdartsim/dartSkill1.2kyesterdayBSD-2-ClauseA18Claude Code, Codex
modify-settingswarpdotdev/warpSkill66kyesterdayAGPL-3.0A16Claude Code, Codex
dart-fix-cidartsim/dartSkill1.2kyesterdayBSD-2-ClauseA16Claude Code
create-tab-configwarpdotdev/warpSkill66kyesterdayAGPL-3.0A44Claude Code, Codex