write-realtime-audio-code

write-realtime-audio-code is a skill for Claude Code from cboone/agent-harness-plugins. It costs 55 tokens per session (1,076 once invoked), scanned A, original, MIT.

A skill for writing, reviewing, or planning real-time audio callback code, including the code that those callbacks reach. It addresses timing, thread communication, memory access, plugin compatibility, events, and numerical behavior.

In plain words
What is it for?
Use it for audio-thread code, digital signal processing, audio-plugin formats such as CLAP or VST3, parameter automation, event timing, and real-time verification.
Why use it?
Audio callbacks have strict deadlines and cannot safely use many operations common in ordinary code. The skill helps check the full path for unsafe work and state changes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the write-realtime-audio-code plugin — 1 skill shipped together

Good fit Use it for audio-thread code, digital signal processing, audio-plugin formats such as CLAP or VST3, parameter automation, event timing, and real-time verification.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cboone/agent-harness-plugins/write-realtime-audio-code
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.

Any agent
npx skills add cboone/agent-harness-plugins --skill write-realtime-audio-code
Clone the repo
git clone --depth 1 https://github.com/cboone/agent-harness-plugins

Made for: Claude Code.

Or install write-realtime-audio-code, the plugin that ships this one along with the rest of its 1 skill.

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 write-realtime-audio-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/cboone/agent-harness-plugins/write-realtime-audio-code/github.svg)](https://agentmods.dev/skills/cboone/agent-harness-plugins/write-realtime-audio-code)
Your own site
<a href="https://agentmods.dev/skills/cboone/agent-harness-plugins/write-realtime-audio-code"><img src="https://agentmods.dev/badge/skills/cboone/agent-harness-plugins/write-realtime-audio-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.

agentmods 80×15 button for write-realtime-audio-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/cboone/agent-harness-plugins/write-realtime-audio-code"><img src="https://agentmods.dev/badge/skills/cboone/agent-harness-plugins/write-realtime-audio-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,076 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.00055 $0.01076
Opus 5.5 $0.00022 $0.00430
Sonnet 5.5 $0.00011 $0.00215
Haiku 4.5 $0.00006 $0.00108

Measured 8d ago against content hash d3ec1a045a68, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

write-realtime-audio-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 8d 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.

plugins/write-realtime-audio-code/skills/write-realtime-audio-code/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.

Write Real-Time Audio Code

Use the host contract and a stated communication protocol to make callback-reachable code safe, bounded, and compatible.

When to Use

Apply this skill to an audio callback and all of its reachable code, including audio-to-UI paths, audio-related atomics and lifetimes, real-time verification, plugin parameters and state, event timing, smoothing, numerical behavior, and host-independent cores.

Do not activate it only because a change has a queue, an atomic, DSP mathematics, GUI code, server concurrency, or offline processing. Shared code remains in scope when a real-time callback reaches it. Check a host-specific offline-rendering contract before treating that mode as non-real-time.

Core Constraints

An audio callback has bounded work only in the context of its host contract. Inspect transitive callees, notifications, payload copies, and final destruction. Prove that shared-memory access, state publication, storage reuse, aliases, and required output samples are legal. Preserve released identities, automation meaning, and host transitions. A race detector gives evidence about exercised access patterns; it does not measure deadline compliance.

Read the Callback Contract First

Record these facts before choosing an implementation or review conclusion:

  • The host API, lifecycle phase, symbolic thread, and any render workers.
  • Buffer layouts, sample formats, aliases, lifetimes, legal block sizes, and required output behavior.
  • Pending-event and process-status obligations, including reset, flush, and deactivation.
  • Whether processing is real-time or an explicitly supported offline mode.

Use the downstream project's existing conventions to record relevant entry points and boundaries. Do not require a new thread annotation on every function.

Workflow

  1. Establish whether the request is a review, plan, or authorized implementation. In review and plan modes, produce findings or proposed checks without editing the downstream project, installing tools, running mutation experiments, committing, publishing, or automatically invoking companion skills that perform such actions. Existing authorization governs implementation and experiment actions; do not ask again for actions already authorized.
  2. Map the changed callback call graph, lifecycle, shared storage, and host-facing transitions.
  3. Read the essential checklist, then select the detailed references that answer the remaining questions.
  4. Record protocol assumptions, source and toolchain scope, capacity and work bounds, and failure policies.
  5. For authorized implementation or experiments, use an instrument and a positive control suited to the claim. For a review, distinguish observed evidence from proposed checks.
  6. Report what remains unverified, including paths, hosts, workers, loading arrangements, and tools that were not exercised.

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. 8d ago Changed · +1 lines · +17 tokens per session d3ec1a045a68
  2. 26d ago Changed · -5 lines · -70 tokens per session 210dec6b39ef
  3. 29d ago First seen · 67 lines · 108 tokens per session scan A 3234fad9e5de

Subscribe to this mod's changes

write-realtime-audio-code is a skill published in the GitHub repository cboone/agent-harness-plugins (2 stars, last pushed yesterday), licensed MIT. It adds 55 tokens to every session and 1,076 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-17.

Related

Other skills, from other repositories