coreaudio-modernization-repair-workflowlisted
Install: claude install-skill gaelic-ghost/socket
# 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 repa