Arkit spatial sensing workflow
Skill gaelic-ghost/socket/plugins/apple-dev-skills/skills/arkit-spatial-sensing-workflow
Guide ARKit world tracking, anchors, planes, ray casting, feature points, scene depth, smoothed depth, LiDAR scene reconstruction, meshes, classification, environment texturing, world maps, relocalization, reference images and objects, geographic anchors, visionOS providers, privacy, and diagnostics. Use when Apple-platform spatial sensing or environment understanding is primary.From its SKILL.md
npx -y skills add gaelic-ghost/socket --skill arkit-spatial-sensing-workflowAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 6 stars6 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
6.1 KB, ~1.2k tokens by cl100k_base, as published. Nobody here has run it
ARKit Spatial Sensing Workflow
Purpose
Guide ARKit environment sensing while preserving the platform-specific session model, typed spatial data, tracking quality, authorization, privacy, and rendering/scanning handoffs.
When To Use
- Use for world tracking, planes, anchors, ray casting, scene depth, LiDAR reconstruction, meshes, environment understanding, maps, relocalization, and visionOS ARKit providers.
- Recommend
camera-capture-depth-workflowfor camera controls, photo/video capture, calibrated camera depth, or synchronized camera outputs. - Recommend
arkit-face-body-tracking-workflowfor TrueDepth face geometry or body skeleton tracking.
Single-Path Workflow
- Classify the spatial task:
- world tracking and tracking-state repair
- plane, image, object, or geographic detection
- ray casting, hit testing, feature points, or measurement
- scene depth or smoothed scene depth
- scene reconstruction, mesh geometry, or classification
- environment texturing or probes
- world-map persistence, sharing, or relocalization
- visionOS authorization and provider lifecycle
- Apply the Apple docs gate:
- read current ARKit documentation for the selected platform and capability
- state the documented behavior relied on
- apply
../../shared/references/apple-spatial-data-privacy-contract.md - check
supportsFrameSemantics,supportsSceneReconstruction, configuration support, provider support, authorization, and device capability before configuration
- Choose the platform shape:
- on iOS/iPadOS, configure and own
ARSessionwith the appropriateARConfiguration - on visionOS, request the documented
ARKitSessionauthorization and run only the required data providers - do not hide those different lifecycles behind a generic spatial session
- on iOS/iPadOS, configure and own
- Preserve spatial evidence:
- keep anchor identifiers, transforms, timestamps, tracking state, world origin, coordinate conventions, depth confidence, mesh geometry/classification, map state, and provider events typed
- distinguish estimated geometry from measured truth
- Define presentation and scanning handoffs:
- use RealityKit for entity/scene presentation and interaction when appropriate
- use RoomPlan for documented room-capture and structured-room workflows
- use SceneKit only for an existing SceneKit rendering surface or a documented requirement
- use Metal for advanced rendering or compute that RealityKit/Core Image cannot express
- Return documented behavior, capability and authorization evidence, platform session/provider plan, coordinate and data lifecycle, privacy policy, diagnostics, validation, and handoffs.
Inputs
request: spatial-sensing task or implementation under repair.spatial_goal:world,planes,raycast,depth,mesh,environment,map,image,object,geo,visionos, orrepair.platform_context: platform, deployment target, intended devices, and rendering framework.data_context: persistence, sharing, server, collaboration, or local-only requirements.
Outputs
status:success,handoff, orblocked.path_type:primaryfor ARKit spatial sensing,fallbackfor camera capture, face/body, RoomPlan, rendering, or execution.output: documented behavior, capability/authorization matrix, lifecycle, coordinates, data/privacy plan, diagnostics, validation, and handoffs.
Guards and Stop Conditions
- Do not assume LiDAR, scene depth, reconstruction, classification, geo tracking, image/object detection, or provider support from a device name or OS version.
- Do not wrap iOS
ARSessionand visionOSARKitSessionproviders in a fake common lifecycle. - Do not treat an anchor transform, raycast, feature point, depth sample, plane extent, or reconstructed mesh as exact ground truth.
- Do not persist or transmit world maps, meshes, room geometry, images, location anchors, or bystander-derived spatial data without an explicit purpose, consent/notice, retention, and deletion policy.
- Do not claim relocalization, metric accuracy, occlusion quality, mesh classification, or device performance without physical-device evidence.
- Do not silently reset tracking or the world origin; explain what spatial continuity is lost.
- Stop when authorization, device support, tracking conditions, or required physical validation is unavailable.
Fallbacks and Handoffs
- Recommend
arkit-face-body-tracking-workflowfor face and body anchors, geometry, blend shapes, eyes, skeletons, and scale. - Recommend
camera-capture-depth-workflowfor camera devices, controls, photo/video, calibrated depth, and synchronized capture. - Recommend
vision-image-analysis-workflowfor image-frame recognition and pose analysis outside ARKit tracking. - Recommend RealityKit for scene presentation and interaction, RoomPlan for room capture, SceneKit for existing SceneKit surfaces, and Metal for advanced rendering.
- Recommend
xcode-build-run-workflowfor privacy configuration, authorization, build, run, physical-device logs, or profiling. - Recommend
xcode-testing-workflowfor transform fixtures, provider state tests, saved-map fixtures, and device test plans. - Recommend
explore-apple-swift-docsfor current ARKit or related framework research.
Customization
Use references/customization-flow.md. This workflow defines no runtime-enforced knobs.
References
references/world-tracking-depth-meshes-and-maps.mdreferences/visionos-providers-rendering-and-diagnostics.mdreferences/customization-flow.md../../shared/references/apple-spatial-data-privacy-contract.md- Recommend
references/snippets/apple-xcode-project-core.mdfor reusable Xcode-project policy.
Script Inventory
scripts/customization_config.py
What ships with it: 7 files
35.3 KB alongside SKILL.md, 1 of them executable
agents/
- openai.yaml339 B
references/
scripts/
- customization_config.pyruns4.3 KB