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.
npx skills add gaelic-ghost/socket --skill avfoundation-media-pipeline-workflowgit clone --depth 1 https://github.com/gaelic-ghost/socketWrote 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.
[](https://agentmods.dev/skills/gaelic-ghost/socket/avfoundation-media-pipeline-workflow)<a href="https://agentmods.dev/skills/gaelic-ghost/socket/avfoundation-media-pipeline-workflow"><img src="https://agentmods.dev/badge/skills/gaelic-ghost/socket/avfoundation-media-pipeline-workflow.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00082 | $0.01558 |
| Opus 5 | $0.00041 | $0.00779 |
| Sonnet 5 | $0.00016 | $0.00312 |
| Haiku 4.5 | $0.00008 | $0.00156 |
Grade A, and why
avfoundation-media-pipeline-workflow 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 8d 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.
How it starts
The opening of the file, as written. The whole thing — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AVFoundation Media Pipeline Workflow
Purpose
Guide AVFoundation capture, playback, asset loading, reader, writer, export, and sample-buffer pipeline design and repair. This skill owns media-pipeline shape, typed AVFoundation surface choice, and back-pressure policy, while leaving app audio-session policy, engine graphs, Core Media timing internals, and Xcode execution to their owning skills.
When To Use
- Use this skill for
AVCaptureSession, capture inputs and outputs, capture queues,AVPlayer,AVPlayerItem,AVAsset,AVURLAsset,AVAsyncProperty, async asset loading,AVAssetReader,AVAssetWriter, export, transcode, and sample-buffer append loops. - Use this skill when existing code blocks the main thread, uses deprecated AVAsset synchronous properties, misuses
loadValuesAsynchronously(forKeys:), appends sample buffers without back-pressure, confuses capture authorization with microphone permission, or mixes capture, UI, writer, and player ownership in one object. - Recommend
avfaudio-session-workflowwhen the primary problem is app audio intent, routes, interruptions, or microphone permission. - Recommend
coremedia-timing-samplebuffer-workflowwhen the primary issue is sample-buffer timestamps, format descriptions, timebases, clocks, or synchronization. - Recommend
camera-capture-depth-workflowwhen the primary issue is camera discovery, device controls, formats, rotation, photo capture, depth, calibration, synchronized camera outputs, or computational capture.
Single-Path Workflow
- Classify the media pipeline:
- capture setup
- player or playback state
- asset inspection or async loading
- reader or writer loop
- export or transcode
- sample-buffer append or back-pressure
- repair of an existing implementation
- Apply the Apple docs gate:
- read current AVFoundation documentation for the pipeline surface
- state the documented behavior relied on before recommending changes
- apply
../../shared/references/apple-media-type-ownership.mdbefore introducing custom media wrappers, raw numeric timing, strings, or dictionaries
- Choose the pipeline owner and queues:
- capture-session configuration owner
- serial capture session queue
- player item and UI update boundary
- async asset loading boundary
- reader and writer queue
- cancellation and teardown path
- Repair common failure modes:
AVCaptureSession.startRunning()on the main queue- deprecated synchronous AVAsset property reads in Swift clients
- callback-based asset loading left in otherwise async Swift code
- writer loops that ignore
isReadyForMoreMediaData - raw strings, dictionaries, or custom structs replacing
AVAsset,AVAssetTrack,AVPlayerItem,AVCaptureConnection,AVAssetReaderOutput,AVAssetWriterInput,CMSampleBuffer, or writer receiver types without a documented boundary reason - capture authorization, recording permission, and
Info.plistgates collapsed together - sample-buffer timing issues that need Core Media handoff
- Return one recommendation with:
- pipeline class
- documented Apple behavior relied on
- owner, queue, and async-loading plan
- back-pressure and cancellation plan
- repair findings
- validation and handoff expectation
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 8d ago First seen · 118 lines · 82 tokens per session scan A 00f2a600f6d7
avfoundation-media-pipeline-workflow is a skill published in the GitHub repository gaelic-ghost/socket (7 stars, last pushed 13d ago), licensed Apache-2.0. It adds 82 tokens to every session and 1,558 once invoked, about $0.0004 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-08-31.
Other skills, from other repositories
youtube-producer
Plans, packages, and scripts long-form video for retention and channel growth — idea selection, titles and thumbnails, script structure, and diagnosing why a video or channel underperforms. Use this for video ideas, packaging, scripting, a retention teardown, or channel strategy — including when someone describes a…
video-content
Plans and scripts short-form and long-form video, and designs the packaging — titles, thumbnails, and openings — that determines whether it gets watched. Use this to script a video, plan a series, fix retention or click-through problems, design thumbnail and title concepts, or turn written content into video. For a…
app-store-optimization
Improves visibility and conversion in the App Store and Google Play — metadata, keywords, screenshots, ratings, and the listing experience that turns an impression into an install. Use this to audit or optimize an app listing, plan a launch listing, diagnose poor install conversion, or improve store search visibility.
visual-content
Designs and directs the visual assets that carry content — carousels, infographics, quote graphics, diagrams, and social imagery — including the generation prompts where they are AI-produced. Use this to turn a written piece into a visual format, design a carousel or infographic, create social graphics, or fix visuals…
flutter-ui
Build Flutter UI from Figma MCP or image input. Scans src for design tokens (colors, sizes, text styles), existing components, and naming conventions before writing a single line of code. Never hard-codes values.
flutter-dart-code-review
Library-agnostic Flutter/Dart code review checklist covering widget best practices, state management patterns (BLoC, Riverpod, Provider, GetX, MobX, Signals), Dart idioms, performance, accessibility, security, and clean architecture.