Skip to content
Development
Skill

/camera-capture-depth-workflow

Guide Apple camera discovery, device and format configuration, focus, exposure, white balance, zoom, torch, stabilization, rotation, photo capture, RAW, Live Photos, depth and disparity, calibration, synchronized outputs, portrait and semantic mattes, computational capture,

From plugin
socket
9200 skills5 MCP

Claude Code

$ npx -y skills add gaelic-ghost/socket --skill camera-capture-depth-workflow --agent claude-code

SKILL.md

camera-capture-depth-workflow.SKILL.md
name: camera-capture-depth-workflow
description: Guide Apple camera discovery, device and format configuration, focus, exposure, white balance, zoom, torch, stabilization, rotation, photo capture, RAW, Live Photos, depth and disparity, calibration, synchronized outputs, portrait and semantic mattes, computational capture, pressure, interruptions, and diagnostics with AVFoundation. Use when sensor, camera-control, photo, depth, or device-capability behavior is primary.

Camera Capture and Depth Workflow

Purpose

Guide AVFoundation camera, photo, depth, and computational-capture work while keeping general session topology, media pipelines, sample timing, audio policy, Vision analysis, and ARKit spatial sensing with their owning workflows.

When To Use

  • Use for camera discovery, formats, controls, rotation, photo features, depth, calibration, synchronized outputs, mattes, pressure, and device-specific capture repair.
  • Recommend `avfoundation-media-pipeline-workflow` when general capture-session, output queue, player, asset, reader, writer, export, or back-pressure ownership is primary.
  • Recommend `vision-image-analysis-workflow` when capture is working and image interpretation is the actual task.

Single-Path Workflow

1. Classify the request:

  • device discovery or selection
  • format, frame rate, MultiCam, or constituent device
  • focus, exposure, white balance, zoom, torch, stabilization, or low light
  • rotation, orientation, or mirroring
  • processed, RAW, bracketed, Live Photo, responsive, or deferred photo capture
  • depth, disparity, calibration, or synchronized output
  • portrait-effects, semantic, spatial, or cinematic capture
  • authorization, interruption, pressure, dropped data, or runtime repair

2. Apply the Apple docs gate:

  • read current AVFoundation documentation for every requested feature and platform
  • state the documented behavior relied on
  • apply `../../shared/references/apple-camera-capability-contract.md`
  • apply `../../shared/references/apple-media-type-ownership.md`

3. Discover before configuration:

  • use `AVCaptureDevice.DiscoverySession`, available devices, virtual-device constituents, `AVCaptureDevice.Format`, supported frame-rate ranges, depth formats, session support, output support, and connection support
  • never infer capability from a marketing device name, lens count, or OS version alone

4. Configure through one owner:

  • keep session graph mutation on the serial session owner defined by `avfoundation-media-pipeline-workflow`
  • balance `lockForConfiguration()` and `unlockForConfiguration()` and mutate only supported device properties
  • configure output, settings, connection, rotation, mirroring, and delegate lifecycle explicitly

5. Preserve typed capture data:

  • keep `AVCapturePhoto`, `AVDepthData`, `AVCameraCalibrationData`, `AVPortraitEffectsMatte`, `AVSemanticSegmentationMatte`, `CMSampleBuffer`, synchronized data, and dropped-data reasons inspectable
  • record timestamps, dimensions, orientation, pixel/depth formats, calibration, filtering, accuracy, and source identity

6. Validate honestly:

  • distinguish documented support, discovered runtime support, simulator limitations, and physically verified behavior
  • return the capability evidence, configuration, output lifecycle, pressure/error policy, diagnostics, and device validation plan

Inputs

  • `request`: camera, photo, depth, or computational-capture task.
  • `capture_goal`: `discover`, `format`, `controls`, `rotation`, `photo`, `depth`, `sync`, `matte`, `spatial`, `cinematic`, or `repair`.
  • `platform_context`: Apple platform, deployment target, and intended physical devices.
  • `pipeline_context`: existing session owner, inputs, outputs, connections, queues, and audio-session policy.

Outputs

  • `status`: `success`, `handoff`, or `blocked`.
  • `path_type`: `primary` for camera sensor and capture-feature work, `fallback` for general pipelines, analysis, timing, audio, ARKit, or execution.
  • `output`: documented behavior, capability matrix, configuration, typed output contract, lifecycle, pressure/error policy, diagnostics, validation, and handoffs.

Guards and Stop Conditions

  • Do not select or configure a camera feature before checking the actual device, format, output, connection, session, and platform support.
  • Do not call `startRunning()`, stop, or reconfigure the capture session on the main thread.
  • Do not mutate an `AVCaptureDevice` outside a balanced configuration lock or request unsupported controls.
  • Do not conflate pixel orientation, metadata orientation, preview rotation, capture rotation, and mirroring.
  • Do not treat disparity as metric depth without the documented conversion and calibration context.
  • Do not discard calibration, timestamps, dropped-data reasons, matte relationships, or auxiliary image orientation.
  • Do not claim camera topology, depth quality, calibration, LiDAR, TrueDepth, MultiCam, HDR, spatial, cinematic, or real-time behavior without physical-device evidence.
  • Stop when authorization, device hardware, feature support, source data, or a physical validation path required by the request is unavailable.

Fallbacks and Handoffs

  • Recommend `avfoundation-media-pipeline-workflow` for session graph, output queues, capture lifecycle, assets, readers, writers, export, and general back-pressure.
  • Recommend `coremedia-timing-samplebuffer-workflow` for timestamps, format descriptions, sample attachments, synchronization timing, and dropped-buffer diagnosis.
  • Recommend `avfaudio-session-workflow` for microphone permission, audio category, route, interruption, and shared capture-session audio policy.
  • Recommend `vision-image-analysis-workflow` or `vision-coreml-recognition-workflow` after typed frames reach the analysis boundary.
  • Recommend `core-image-processing-workflow` for image effects, mattes, compositing, color, or rendering after capture.
  • Recommend `arkit-spatial-sensing-wor
Read more
@gaelic-ghost
Ships withsocket

Stuff for Agents on macOS Promo audio: Socket Codex Marketplace Promo

9200 skills5 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
9
Star history of gaelic-ghost/socket on GitHub, a chart by star-history.com

Other skills on socket.

orchestrate-agent-work

orchestrate-agent-work

Coordinate bounded worker tasks with a launch envelope, report-back, escalation, and synthesis contract. Use before spawning,…

@gaelic-ghost@gaelic-ghostInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about camera-capture-depth-workflow.

Which coding agents can use camera-capture-depth-workflow?
camera-capture-depth-workflow installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.