coreaudio-modernization-repair-workflow

coreaudio-modernization-repair-workflow is a skill for Claude Code, Codex from gaelic-ghost/socket. It costs 82 tokens per session (1,499 once invoked), scanned A, original, Apache-2.0.

A guide for repairing and modernising low-level Apple audio code, including older Core Audio and Audio Toolbox APIs. It also helps decide when to keep that code, isolate it, or move to newer AVFAudio APIs.

In plain words
What is it for?
Use it to repair AudioUnit, AudioQueue, AudioConverter, audio format, render-callback, and low-level audio code, or to assess a possible move to AVAudioEngine or AVAudioSession.
Why use it?
It helps make opaque OSStatus errors, unsafe pointers, callback lifetime problems, audio buffers, and Swift-to-C bridging easier to understand and safer to change.

Skill for Claude CodeCodex

Part of the apple-dev-skills plugin — 65 skills, 2 MCP servers shipped together

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/gaelic-ghost/socket/coreaudio-modernization-repair-workflow
Any agent
npx skills add gaelic-ghost/socket --skill coreaudio-modernization-repair-workflow
Clone the repo
git clone --depth 1 https://github.com/gaelic-ghost/socket

Made for: Claude Code, Codex.

Or install apple-dev-skills, the plugin that ships this one along with the rest of its 65 skills, 2 MCP servers.

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 coreaudio-modernization-repair-workflow

README.md
[![agentmods](https://agentmods.dev/badge/skills/gaelic-ghost/socket/coreaudio-modernization-repair-workflow.svg)](https://agentmods.dev/skills/gaelic-ghost/socket/coreaudio-modernization-repair-workflow)
Your own site
<a href="https://agentmods.dev/skills/gaelic-ghost/socket/coreaudio-modernization-repair-workflow"><img src="https://agentmods.dev/badge/skills/gaelic-ghost/socket/coreaudio-modernization-repair-workflow.svg" alt="Measured on agentmods" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,499 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.00082 $0.01499
Opus 5 $0.00041 $0.00749
Sonnet 5 $0.00016 $0.00300
Haiku 4.5 $0.00008 $0.00150

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

Security

Grade A, and why

coreaudio-modernization-repair-workflow 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 5d 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/apple-dev-skills/skills/coreaudio-modernization-repair-workflow/SKILL.md · 114 lines

How it starts

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

Core Audio Modernization Repair Workflow

Purpose

Guide low-level Core Audio and Audio Toolbox repair. This skill owns the legacy and escape-hatch boundary: when to keep C APIs, when to isolate them, when to migrate toward AVFAudio, and how to make old callback, pointer, buffer, format, and OSStatus code understandable and safer without erasing the Apple type boundary.

It is not the default audio recommendation when AVFAudio covers the job.

When To Use

  • Use this skill when code uses AudioUnit, AudioQueue, AudioConverter, AudioComponentDescription, AudioStreamBasicDescription, AudioBufferList, render callbacks, OSStatus, unsafe pointers, or archive-era Core Audio patterns.
  • Use this skill when existing code has opaque OSStatus failures, pointer lifetime bugs, callback crashes, hand-rolled format structs, unsafe Swift bridging, or low-level audio code that might be replaceable with AVAudioEngine or AVAudioSession.
  • Recommend avaudio-engine-workflow when the same job can be modeled as an AVAudioEngine graph or AVAudioUnit host.
  • Recommend avfaudio-session-workflow when the real issue is audio-session policy, route, permission, or interruption behavior.

Single-Path Workflow

  1. Classify the low-level audio request:
    • Audio Unit hosting or rendering
    • Audio Queue playback or recording
    • Audio Converter or format conversion
    • stream description or buffer layout
    • OSStatus diagnosis
    • callback, pointer, or lifetime repair
    • migration to AVFAudio
  2. Apply the Apple docs gate:
    • read current Core Audio, Audio Toolbox, AVFAudio, or Core Audio Types docs first
    • use archive docs only to understand legacy code, not to override current guidance
    • state the documented behavior or legacy context relied on
    • apply ../../shared/references/apple-media-type-ownership.md before hiding Core Audio structures, pointers, callbacks, or OSStatus values behind generic Swift wrappers
  3. Decide retention versus migration:
    • keep low-level code only when it exposes needed behavior that AVFAudio does not cover
    • wrap retained low-level code behind a narrow boundary with explicit ownership
    • migrate to AVAudioEngine, AVAudioUnit, AVAudioFile, AVAudioConverter, or AVAudioSession when current APIs cover the job
  4. Repair common failure modes:
    • OSStatus logged as an integer with no operation or likely cause
    • callbacks retaining invalid object pointers
    • allocation, locking, logging, or actor hops in render callbacks
    • mismatched AudioStreamBasicDescription
    • unsafe AudioBufferList memory ownership
    • AudioComponentDescription, AudioStreamBasicDescription, AudioBufferList, AudioTimeStamp, or OSStatus replaced with generic structs or errors before the low-level operation remains diagnosable
    • duplicate low-level and AVFAudio codepaths left behind after modernization
  5. Return one recommendation with:
    • low-level request class
    • documented behavior or archive context relied on
    • retention or migration decision
    • boundary and ownership plan
    • repair findings
    • validation and handoff expectation

Read the full file on GitHub · 114 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 114 lines · 82 tokens per session scan A 490f7aa22b3d

Subscribe to this mod's changes

coreaudio-modernization-repair-workflow is a skill published in the GitHub repository gaelic-ghost/socket (7 stars, last pushed 9d ago), licensed Apache-2.0. It adds 82 tokens to every session and 1,499 once invoked, about $0.0004 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-08-31.

Related

Other skills, from other repositories

app-store-optimization

Improves visibility and conversion in the App Store and Google Play — metadata, keywords, screenshots, ratings, and the listing experience that turns an impression into an install. Use this to audit or optimize an app listing, plan a launch listing, diagnose poor install conversion, or improve store search visibility.

cbrock84/headcount · 64 tokens

flutter-ui

Build Flutter UI from Figma MCP or image input. Scans src for design tokens (colors, sizes, text styles), existing components, and naming conventions before writing a single line of code. Never hard-codes values.

datit309/supergraph · 48 tokens

flutter-dart-code-review

Library-agnostic Flutter/Dart code review checklist covering widget best practices, state management patterns (BLoC, Riverpod, Provider, GetX, MobX, Signals), Dart idioms, performance, accessibility, security, and clean architecture.

datit309/supergraph · 56 tokens

pipeline

Use when the user wants a feature idea taken end-to-end in one autonomous run — phrases like "run the whole pipeline", "take this feature from idea to finished branch", "brainstorm then build it autonomously", "do everything from idea to merged", "implement all phases without stopping". Triggers when they want…

kardebadas/claude-plugin · 80 tokens

craft

Use when a product idea is still vague and needs to become a clear definition of what to build — "let's craft an app like X", "help me define what I actually want", "clarify this idea before we plan it". Also use before planning or implementation when requirements, UX, domain behaviour, or technical preferences have…

kardebadas/claude-plugin · 83 tokens

chief-financial-officer

Owns the financial position: planning, budgeting, forecasting, unit economics, cash, and the numbers the business is run and reported on. Use this to build or challenge a budget, model a decision's financial consequence, assess unit economics or runway, evaluate an investment or spend request, set financial controls…

cbrock84/headcount · 88 tokens