Install
$ agentstack add skill-gaelic-ghost-socket-coreaudio-modernization-repair-workflow ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
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
OSStatusfailures, 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-workflowwhen the same job can be modeled as an AVAudioEngine graph orAVAudioUnithost. - Recommend
avfaudio-session-workflowwhen the real issue is audio-session policy, route, permission, or interruption behavior.
Single-Path Workflow
- 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
OSStatusdiagnosis- callback, pointer, or lifetime repair
- migration to AVFAudio
- 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.mdbefore hiding Core Audio structures, pointers, callbacks, orOSStatusvalues behind generic Swift wrappers
- 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
- Repair common failure modes:
OSStatuslogged 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
AudioBufferListmemory ownership AudioComponentDescription,AudioStreamBasicDescription,AudioBufferList,AudioTimeStamp, orOSStatusreplaced with generic structs or errors before the low-level operation remains diagnosable- duplicate low-level and AVFAudio codepaths left behind after modernization
- 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
Inputs
request: optional free-text low-level audio task.legacy_surface: optional surface such asaudio-unit,audio-queue,audio-converter,stream-description,buffer-list,osstatus,callback, orrepair.migration_goal: optional goal such askeep-low-level,wrap,migrate-to-avaudioengine,migrate-to-avaudiosession, orundecided.- Defaults:
- docs-first guidance always applies
- prefer Apple and Swift media types unless
../../shared/references/apple-media-type-ownership.mdidentifies a concrete escape hatch - current docs outrank archive docs for modern recommendations
- prefer AVFAudio when it honestly covers the behavior
Outputs
statussuccess: a modernization or repair path is readyhandoff: another Apple Dev skill owns the next stepblocked: the low-level behavior or failure evidence is too unclearpath_typeprimary: current Core Audio, Audio Toolbox, or AVFAudio docs cover the recommendationfallback: archive docs explain legacy behavior onlyoutput- resolved low-level surface
- documented behavior or archive context relied on
- retention or migration decision
- callback, pointer, format, and
OSStatusrepair findings - validation and handoff expectation
Guards and Stop Conditions
- Do not preserve duplicate legacy and modern codepaths after cleanup unless the user explicitly approves that compromise.
- Do not recommend low-level C APIs by default when AVFAudio exposes the behavior directly.
- Do not hide
AudioUnit,AudioQueueRef,AudioConverterRef,AudioComponentDescription,AudioStreamBasicDescription,AudioBufferList,AudioTimeStamp, orOSStatusbehind generic Swift wrappers until ownership, format, operation, and likely failure cause remain inspectable. - Do not claim render-callback, underrun, device, or format repair is verified without runtime evidence.
- Do not log bare
OSStatusvalues without operation context and at least one likely cause or inspection point. - Stop with
blockedwhen the existing low-level code cannot be inspected enough to know whether migration is safe.
Fallbacks and Handoffs
- Recommend
avaudio-engine-workflowfor AVAudioEngine graph repair,AVAudioUnithosting, and modern processing chains. - Recommend
avfaudio-session-workflowfor app audio-session policy, route, interruption, or permission behavior. - Recommend
coremedia-timing-samplebuffer-workflowwhen the failure is sample timing or media synchronization. - Recommend
xcode-build-run-workflowfor build, run, device, Instruments, Audio MIDI Setup, or runtime diagnostics. - Recommend
xcode-testing-workflowfor repeatable regression tests around audio conversion, fixtures, or wrapper behavior. - Recommend
explore-apple-swift-docswhen more current or archive docs lookup is the next honest step.
Customization
Use references/customization-flow.md.
scripts/customization_config.py exists to preserve the repo-wide customization-file contract, but this workflow defines no runtime-enforced knobs.
References
Workflow References
references/coreaudio-modernization-and-repair.mdreferences/legacy-archive-boundary.mdreferences/customization-flow.md
Support References
- Use
../../shared/references/apple-media-type-ownership.mdfor the shared Apple media type and framework-selection contract. - Recommend
references/snippets/apple-xcode-project-core.mdwhen the user needs reusable Xcode-project baseline policy for low-level audio apps.
Script Inventory
scripts/customization_config.py
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: gaelic-ghost
- Source: gaelic-ghost/socket
- License: Apache-2.0
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.