Install
$ agentstack add skill-gaelic-ghost-socket-coremedia-timing-samplebuffer-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.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Core Media Timing Sample Buffer Workflow
Purpose
Guide Core Media timing and sample-buffer repair. This skill owns the precise media-time and sample payload boundary: CMTime, time ranges, clocks, timebases, format descriptions, sample buffers, attachments, readiness, presentation and decode timestamps, synchronization, and diagnostic probes.
It is not the AVFoundation pipeline owner, not the AVAudioEngine graph owner, and not a generic media-player workflow.
When To Use
- Use this skill when code manipulates
CMTime,CMTimeRange,CMClock,CMTimebase,CMFormatDescription,CMSampleBuffer, attachments, sample readiness, timestamps, dropped buffers,AVSampleBufferDisplayLayer, orAVSampleBufferRenderSynchronizer. - Use this skill when existing media code drifts, drops frames or buffers, appends invalid samples, loses format descriptions, confuses decode and presentation time, mishandles host time, or cannot explain synchronization failures.
- Recommend
avfoundation-media-pipeline-workflowwhen the primary problem is capture, playback, reader, writer, export, or asset loading. - Recommend
avaudio-engine-workflowwhen the primary problem is engine graph rendering rather than sample-buffer timing.
Single-Path Workflow
- Classify the timing request:
- time math
- sample-buffer creation or inspection
- format description
- attachments or dropped buffers
- display layer or render synchronizer
- writer or reader timestamp repair
- audio/video synchronization
- Apply the Apple docs gate:
- read current Core Media or AVFoundation sample-buffer documentation first
- state the documented timing or sample-buffer behavior relied on
- apply
../../shared/references/apple-media-type-ownership.mdbefore converting Core Media values to raw numbers, dictionaries, or app-specific sample wrappers
- Inspect timing invariants:
- validity, timescale, epoch, and numeric value
- presentation timestamp, decode timestamp, and duration
- time range start and end
- format description presence and media type
- readiness and dropped-buffer flags
- host clock or audio clock relationship
- Repair common failure modes:
- invalid
CMTimetreated as zero - mismatched timescales or lossy conversion hidden in helpers
- missing or wrong
CMFormatDescription CMSampleBuffer,CMFormatDescription, attachments, readiness, or dropped-buffer metadata hidden behind opaque dictionaries before diagnostics- presentation and decode timestamps swapped or flattened
- sample-buffer append without readiness or writer back-pressure
- video synchronized to host time when audio-clock sync is required
- Return one recommendation with:
- timing class
- documented Apple behavior relied on
- invariant checks
- repair findings
- diagnostic probes
- validation and handoff expectation
Inputs
request: optional free-text timing or sample-buffer task.timing_goal: optional goal such astime-math,sample-buffer,format-description,attachments,dropped-buffer,display-layer,render-synchronizer,writer,reader, orrepair.media_context: optional context such asaudio,video,metadata,captions, ormixed-media.- Defaults:
- docs-first guidance always applies
- prefer Apple and Swift media types unless
../../shared/references/apple-media-type-ownership.mdidentifies a concrete escape hatch - keep exact timing values inspectable
- prefer explicit invariants over helper code that hides timestamp behavior
Outputs
statussuccess: a timing or sample-buffer recommendation is readyhandoff: another Apple Dev skill owns the next stepblocked: sample data or timing evidence is insufficientpath_typeprimary: current Core Media or AVFoundation docs cover the recommendationfallback: runtime instrumentation or pipeline handoff is neededoutput- resolved timing class
- documented Apple behavior relied on
- timing and sample-buffer invariants
- repair findings
- diagnostic probes
- validation and handoff expectation
Guards and Stop Conditions
- Do not hide
CMTimevalidity, timescale, duration, presentation timestamp, or decode timestamp behind vague time helper names. - Do not replace
CMTime,CMTimeRange,CMClock,CMTimebase,CMFormatDescription,CMSampleBuffer,CMSampleTimingInfo, attachments, or readiness metadata with raw numbers, strings, or dictionaries until the framework invariants have been inspected and the conversion boundary is documented. - Do not claim drift, synchronization, dropped-buffer, or writer timing repair is verified without runtime evidence or inspected sample buffers.
- Do not silently absorb capture, export, player, reader, or writer ownership that belongs to the AVFoundation pipeline workflow.
- Do not recommend changing timestamps before identifying whether the source, transform, writer, display, or synchronizer owns the bug.
- Stop with
blockedwhen there is no sample, timestamp, format-description, or log evidence to inspect.
Fallbacks and Handoffs
- Recommend
avfoundation-media-pipeline-workflowfor capture, asset, reader, writer, export, and player ownership. - Recommend
avaudio-engine-workflowfor engine rendering and audio-processing graphs. - Recommend
avfaudio-session-workflowfor route, interruption, permission, or app audio policy. - Recommend
xcode-build-run-workflowfor runtime probes, device capture, and app execution. - Recommend
xcode-testing-workflowfor repeatable sample fixtures and timing regression tests. - Recommend
explore-apple-swift-docswhen more 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/time-samplebuffer-and-repair.mdreferences/diagnostics-and-handoffs.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 sample-buffer 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.