Skip to content
Development
Skill

/avaudio-engine-workflow

Guide AVAudioEngine implementation and repair for Apple apps and packages, including node graph ownership, AVAudioNode attachment, input and output nodes, player scheduling, taps, AVAudioFormat, format conversion, manual rendering, offline processing, AVAudioUnit hosting, and

From plugin
socket
9200 skills5 MCP

Claude Code

$ npx -y skills add gaelic-ghost/socket --skill avaudio-engine-workflow --agent claude-code

SKILL.md

avaudio-engine-workflow.SKILL.md
name: avaudio-engine-workflow
description: Guide AVAudioEngine implementation and repair for Apple apps and packages, including node graph ownership, AVAudioNode attachment, input and output nodes, player scheduling, taps, AVAudioFormat, format conversion, manual rendering, offline processing, AVAudioUnit hosting, and real-time audio callback safety. Use when fixing broken engine graphs or modernizing custom audio processing.

AVAudio Engine Workflow

Purpose

Guide `AVAudioEngine` graph design and repair. This skill owns audio-node ownership, graph construction, connection formats, typed AVFAudio buffer and format surfaces, taps, manual rendering, offline processing, Audio Unit hosting through `AVAudioUnit`, and real-time safety boundaries.

It is not the app audio-session workflow, not the AVFoundation capture or asset workflow, and not a low-level Core Audio C API repair workflow except where AVAudioEngine wraps the lower-level behavior.

When To Use

  • Use this skill when code creates, connects, mutates, starts, stops, or repairs an `AVAudioEngine` graph.
  • Use this skill for `AVAudioPlayerNode`, `AVAudioInputNode`, `AVAudioOutputNode`, `AVAudioMixerNode`, `AVAudioSourceNode`, `AVAudioSinkNode`, taps, `AVAudioFormat`, manual rendering, offline processing, `AVAudioUnit`, Audio Unit instantiation, and render-block safety.
  • Use this skill when existing code crashes from unattached nodes, format mismatches, missing input or output hardware, illegal graph mutation, callback allocation, actor isolation mistakes, or UI work inside real-time audio paths.
  • Recommend `avfaudio-session-workflow` when the primary problem is category, route, permission, interruption, or activation policy.
  • Recommend `coreaudio-modernization-repair-workflow` when the primary problem is legacy `AudioQueue`, `AudioUnit`, `AudioConverter`, pointer, callback, or `OSStatus` code outside AVAudioEngine.

Single-Path Workflow

1. Classify the engine request:

  • playback graph
  • input capture or tap
  • processing chain or effects
  • source or sink node
  • manual rendering or offline processing
  • Audio Unit hosting
  • repair of an existing graph

2. Apply the Apple docs gate:

  • read current AVFAudio docs for the relevant engine, node, format, or rendering behavior
  • state the documented graph, format, or real-time behavior relied on
  • apply `../../shared/references/apple-media-type-ownership.md` before introducing custom graph, buffer, format, or unit-hosting abstractions

3. Map the graph:

  • engine owner and lifetime
  • attached nodes
  • connection order
  • bus formats and conversion points
  • start, schedule, stop, and teardown lifecycle
  • real-time and non-real-time boundaries

4. Repair common failure modes:

  • node used before `attach(_:)`
  • exact format mismatch where no mixer or output conversion applies
  • input or output node used when hardware is unavailable
  • graph mutation that breaks mixer or channel-count assumptions
  • render callback that allocates, locks, logs, awaits, or touches UI
  • hand-rolled format or buffer structs replacing `AVAudioFormat`, `AVAudioPCMBuffer`, `AVAudioFile`, `AVAudioConverter`, or `AudioStreamBasicDescription` while still configuring Apple audio APIs
  • completion handlers that mutate engine state from an arbitrary thread without a clear hop

5. Return one recommendation with:

  • graph class
  • documented Apple behavior relied on
  • graph ownership and connection plan
  • format and rendering plan
  • repair findings
  • validation and handoff expectation

Inputs

  • `request`: optional free-text engine task.
  • `graph_goal`: optional goal such as `playback`, `record`, `tap`, `process`, `source-node`, `sink-node`, `manual-rendering`, `offline-processing`, `audio-unit`, or `repair`.
  • `platform_context`: optional platform emphasis such as `ios`, `macos`, or `mixed-apple`.
  • Defaults:
  • docs-first guidance always applies
  • prefer Apple and Swift media types unless `../../shared/references/apple-media-type-ownership.md` identifies a concrete escape hatch
  • prefer AVAudioEngine and AVAudioUnit surfaces before lower-level callback APIs when they honestly fit
  • keep real-time render paths free of actor hops, locks, allocation, logging, and UI work

Outputs

  • `status`
  • `success`: an engine design or repair path is ready
  • `handoff`: another Apple Dev skill owns the next step
  • `blocked`: graph ownership, format, or runtime evidence is too unclear
  • `path_type`
  • `primary`: the recommendation uses current AVFAudio surfaces
  • `fallback`: the recommendation requires lower-level Core Audio analysis
  • `output`
  • resolved engine request class
  • documented Apple behavior relied on
  • graph ownership and node connection plan
  • format and callback-safety findings
  • repair steps
  • validation and handoff expectation

Guards and Stop Conditions

  • Do not hide engine ownership behind a broad audio manager unless one owner must coordinate multiple independent graphs or lifetimes.
  • Do not replace `AVAudioEngine`, `AVAudioNode`, `AVAudioFormat`, `AVAudioPCMBuffer`, `AVAudioFile`, `AVAudioConverter`, or `AVAudioUnit` with custom wrappers or generic structs unless the Apple type boundary remains inspectable.
  • Do not claim audio graph, route, latency, underrun, or callback safety is verified without runtime evidence.
  • Do not put Swift concurrency, logging, allocation, blocking I/O, locks, or UI work in real-time render callbacks.
  • Do not silently migrate low-level Core Audio code to AVAudioEngine when the existing code depends on behavior AVAudioEngine does not expose.
  • Stop with `blocked` when the graph cannot be reconstructed from the code or the failure requires live hardware evidence.

Fallbacks and Handoffs

  • Recommend `avfaudio-session-workflow` for app-level audio intent, permission, route, interruption, or activation policy.
  • Recommend `coreaudio-modernization-repair-workf
Read more
@gaelic-ghost
Ships withsocket

Stuff for Agents on macOS Promo audio: Socket Codex Marketplace Promo

9200 skills5 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
9
Star history of gaelic-ghost/socket on GitHub, a chart by star-history.com

Other skills on socket.

orchestrate-agent-work

orchestrate-agent-work

Coordinate bounded worker tasks with a launch envelope, report-back, escalation, and synthesis contract. Use before spawning,…

@gaelic-ghost@gaelic-ghostInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills10d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc11d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about avaudio-engine-workflow.

Which coding agents can use avaudio-engine-workflow?
avaudio-engine-workflow installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.