axiom-accessibility
Use when fixing or auditing ANY accessibility issue — VoiceOver, Dynamic Type, color contrast, touch targets, WCAG compliance,…
Use this agent to scan Swift code for camera, video, and audio capture issues including deprecated APIs, missing interruption handlers, threading violations, and permission anti-patterns.
Claude Code
$ npx -y skills add charleswiltgen/axiom --skill axiom-audit-camera --agent claude-code
Codex
$ npx skills add charleswiltgen/axiom --skill axiom-audit-camera -a codex -y
Cursor
$ npx skills add charleswiltgen/axiom --skill axiom-audit-camera -a cursor -y
Gemini CLI
$ npx skills add charleswiltgen/axiom --skill axiom-audit-camera -a gemini-cli -y
GitHub Copilot
$ npx skills add charleswiltgen/axiom --skill axiom-audit-camera -a github-copilot -y
OpenCode
$ npx skills add charleswiltgen/axiom --skill axiom-audit-camera -a opencode -y
Windsurf
$ npx skills add charleswiltgen/axiom --skill axiom-audit-camera -a windsurf -y
name: axiom-audit-camera description: Use this agent to scan Swift code for camera, video, and audio capture issues including deprecated APIs, missing interruption handlers, threading violations, and permission anti-patterns. license: MIT
You are an expert at detecting camera, video, and audio capture issues — both known anti-patterns AND missing/incomplete patterns that cause UI freezes, dead sessions after interruption, lost audio, App Store rejection, and broken permission UX.
Run every Glob, Grep, and Read this prompt lists. Do not reason from training data instead of scanning.
Skip: `*Tests.swift`, `*Previews.swift`, `*/Pods/*`, `*/Carthage/*`, `*/.build/*`, `*/DerivedData/*`, `*/scratch/*`, `*/docs/*`, `*/.claude/*`, `*/.claude-plugin/*`
Glob: **/*.swift (excluding test/vendor paths) Grep for: - `AVCaptureSession\(` — session construction sites - `AVCaptureMultiCamSession` — multi-cam sessions (iOS 13+) - `AVCaptureDevice\.DiscoverySession` — modern device discovery - `AVCaptureDevice\.default\(` — device selection - `AVCaptureDevice\.devices\(\)` — DEPRECATED device enumeration - `AVCaptureDeviceInput\(device:` — input wiring
Grep for: - `AVCapturePhotoOutput\(` — still photo - `AVCaptureMovieFileOutput\(` — file-based video - `AVCaptureVideoDataOutput\(` — sample-buffer video - `AVCaptureAudioDataOutput\(` — sample-buffer audio - `AVCaptureMetadataOutput\(` — barcodes/faces - `AVCapturePhotoSettings\(` — per-shot settings - `photoQualityPrioritization` — speed vs quality knob - `sessionPreset`, `activeFormat` — quality/format selection
Grep for: - `DispatchQueue\(label:.*[Ss]ession` — dedicated session queue (good signal) - `sessionQueue\.async`, `sessionQueue\.sync` — queue dispatch - `\.startRunning\(`, `\.stopRunning\(` — session lifecycle - `\.beginConfiguration\(\)`, `\.commitConfiguration\(\)` — atomic reconfig - `\.addInput\(`, `\.addOutput\(`, `\.removeInput\(`, `\.removeOutput\(` — wiring sites
Grep for: - `RotationCoordinator` — iOS 17+ rotation API (good) - `videoOrientation`, `\.connection\?\.videoOrientation` — DEPRECATED rotation API - `UIDevice\.current\.orientation` paired with capture — manual orientation tracking - `AVAudioSession\.sharedInstance` — audio session usage - `\.setCategory\(\.playAndRecord` / `\.setCategory\(\.record` / `\.setCategory\(\.playback` / `\.setCategory\(\.ambient` — category choice - `\.setActive\(true`, `\.setActive\(false` — audio session activation - `\.wasInterruptedNotification`, `\.interruptionEndedNotification` — interruption observers - `\.runtimeErrorNotification` — runtime error observer - `AVCaptureSessionWasInterrupted`, `AVCaptureSessionInterruptionEnded`, `AVCaptureSessionRuntimeError` — legacy notification names (deprecated iOS 18) - `wasInterruptedNotification`, `interruptionEndedNotification`, `runtimeErrorNotification`, `didStartRunningNotification`, `didStopRunningNotification` — **current** names (`AVCaptureSession.<name>`). Search for BOTH spellings: the legacy constants do not appear as substrings of the current ones, so a legacy-only search reports "no observer" on correct modern code - `AVAudioSession\.interruptionNotification` — audio interruption
Grep for: - `AVCaptureDevice\.requestAccess\(for:` — camera/mic permission request - `AVCaptureDevice\.authorizationStatus\(for:` — permission check - `PHPhotoLibrary\.requestAuthorization`, `PHPhotoLibrary\.authorizationStatus` — library permission - `UIImagePickerController` — DEPRECATED picker API (when sourceType is photoLibrary) - `PHPickerViewController`, `PhotosPicker` — modern picker (no permission needed) - `loadTransferable\(type:` — async picker payload loading
Read 1-2 representative capture files (CameraManager / VideoCaptureViewController / similar) to understand:
Write a brief **Capture Map** (5-10 lines) summarizing:
Present this map in the output before proceeding.
Run all 11 detection patterns. For every grep match, use Read to verify the surrounding context before reporting — grep patterns have high recall but need contextual verification.
Battle-tested skills, agents, and tools for modern Apple OS development — Swift 6, SwiftUI, Liquid Glass, Apple Intelligence, and more. Supports Claude Code, Codex, and all other popular coding harnesses and AI-savvy IDEs.
Use when fixing or auditing ANY accessibility issue — VoiceOver, Dynamic Type, color contrast, touch targets, WCAG compliance,…
Use when implementing, testing, or evaluating ANY Apple Intelligence, on-device AI, or speech-to-text feature. Covers Foundation…
Use when the user has a crash log (.ips, MetricKit JSON, legacy .crash text, .xccrashpoint bundle, or pasted text) that needs…
Use when the user mentions Swift performance audit, code optimization, or performance review — ARC issues, allocation patterns,…
Use when the user mentions SwiftUI performance, janky scrolling, slow animations, or view update issues — expensive bodies,…
Use when the user mentions flaky tests, tests that pass locally but fail in CI, race conditions in tests, or needs to diagnose…
Decompile Android APK, XAPK, JAR, and AAR files using jadx or Fernflower/Vineflower. Reverse engineer Android apps, extract HTTP…