axiom-avfoundation-ref

axiom-avfoundation-ref is a skill for Claude Code, Codex from ComeOnOliver/skillshub. It costs 50 tokens per session (3,909 once invoked), scanned A, original, MIT.

A reference for Apple's AVFoundation audio framework, including audio sessions, audio engines, device input, and newer spatial-audio features.

In plain words
What is it for?
Use it to configure microphone and speaker behavior, build audio-processing pipelines, play files, support Bluetooth devices, and work with newer audio capture APIs.
Why use it?
It gives developers the relevant API details for choosing how an iOS app records, plays, mixes, and routes audio.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to configure microphone and speaker behavior, build audio-processing pipelines, play files, support Bluetooth devices, and work with newer audio capture APIs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/comeonoliver/skillshub/axiom-avfoundation-ref
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 ComeOnOliver/skillshub --skill axiom-avfoundation-ref
Clone the repo
git clone --depth 1 https://github.com/ComeOnOliver/skillshub

Made for: Claude Code, Codex.

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 axiom-avfoundation-ref

README.md
[![agentmods](https://agentmods.dev/badge/skills/comeonoliver/skillshub/axiom-avfoundation-ref/github.svg)](https://agentmods.dev/skills/comeonoliver/skillshub/axiom-avfoundation-ref)
Your own site
<a href="https://agentmods.dev/skills/comeonoliver/skillshub/axiom-avfoundation-ref"><img src="https://agentmods.dev/badge/skills/comeonoliver/skillshub/axiom-avfoundation-ref/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 axiom-avfoundation-ref

Your own site · 80×15
<a href="https://agentmods.dev/skills/comeonoliver/skillshub/axiom-avfoundation-ref"><img src="https://agentmods.dev/badge/skills/comeonoliver/skillshub/axiom-avfoundation-ref.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,909 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.00050 $0.03909
Opus 5 $0.00025 $0.01954
Sonnet 5 $0.00010 $0.00782
Haiku 4.5 $0.00005 $0.00391

Measured 9d ago against content hash 7afc5a399f6e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

axiom-avfoundation-ref 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 9d 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.

skills/CharlesWiltgen/Axiom/axiom-avfoundation-ref/SKILL.md · 645 lines

How it starts

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

AVFoundation Audio Reference

Quick Reference

// AUDIO SESSION SETUP
import AVFoundation

try AVAudioSession.sharedInstance().setCategory(
    .playback,                              // or .playAndRecord, .ambient
    mode: .default,                         // or .voiceChat, .measurement
    options: [.mixWithOthers, .allowBluetooth]
)
try AVAudioSession.sharedInstance().setActive(true)

// AUDIO ENGINE PIPELINE
let engine = AVAudioEngine()
let player = AVAudioPlayerNode()
engine.attach(player)
engine.connect(player, to: engine.mainMixerNode, format: nil)
try engine.start()
player.scheduleFile(audioFile, at: nil)
player.play()

// INPUT PICKER (iOS 26+)
import AVKit
let picker = AVInputPickerInteraction()
picker.delegate = self
myButton.addInteraction(picker)
// In button action: picker.present()

// AIRPODS HIGH QUALITY (iOS 26+)
try AVAudioSession.sharedInstance().setCategory(
    .playAndRecord,
    options: [.bluetoothHighQualityRecording, .allowBluetoothA2DP]
)

AVAudioSession

Categories

Category Use Case Silent Switch Background
.ambient Game sounds, not primary Silences No
.soloAmbient Default, interrupts others Silences No
.playback Music player, podcast Ignores Yes
.record Voice recorder Yes
.playAndRecord VoIP, voice chat Ignores Yes
.multiRoute DJ apps, multiple outputs Ignores Yes

Modes

Mode Use Case
.default General audio
.voiceChat VoIP, reduces echo
.videoChat FaceTime-style
.gameChat Voice chat in games
.videoRecording Camera recording
.measurement Flat response, no processing
.moviePlayback Video playback
.spokenAudio Podcasts, audiobooks

Options

// Mixing
.mixWithOthers          // Play with other apps
.duckOthers             // Lower other audio while playing
.interruptSpokenAudioAndMixWithOthers  // Pause podcasts, mix music

// Bluetooth
.allowBluetooth         // HFP (calls)
.allowBluetoothA2DP     // High quality stereo
.bluetoothHighQualityRecording  // iOS 26+ AirPods recording

// Routing
.defaultToSpeaker       // Route to speaker (not receiver)
.allowAirPlay           // Enable AirPlay

Read the full file on GitHub · 645 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. 9d ago First seen · 645 lines · 50 tokens per session scan A 7afc5a399f6e

Subscribe to this mod's changes

axiom-avfoundation-ref is a skill published in the GitHub repository ComeOnOliver/skillshub (63 stars, last pushed 2mo ago), licensed MIT. It adds 50 tokens to every session and 3,909 once invoked, about $0.0003 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-09-03.