arkit-spatial-sensing-workflow

A guide for using Apple's ARKit to understand and track the physical world in augmented-reality apps.

In plain words
What is it for?
It covers world tracking, planes, anchors, ray casting, depth, LiDAR meshes, environment mapping, saved world maps, relocalization, and visionOS provider setup.
Why use it?
It helps choose the right ARKit approach while handling tracking quality, permissions, privacy, and the handoff to rendering or scanning code.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/gaelic-ghost/socket/arkit-spatial-sensing-workflow
Any agent
npx skills add gaelic-ghost/socket --skill arkit-spatial-sensing-workflow
Clone the repo
git clone --depth 1 https://github.com/gaelic-ghost/socket

Made for: Claude Code, Codex.

Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,253 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00081 $0.01253
Opus 5 $0.00041 $0.00626
Sonnet 5 $0.00016 $0.00251
Haiku 4.5 $0.00008 $0.00125

Measured 2d ago against content hash ce3510d00f8c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

arkit-spatial-sensing-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 2d 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.

plugins/apple-dev-skills/skills/arkit-spatial-sensing-workflow/SKILL.md · 89 lines

How it starts

The opening of the file, as written. The whole thing — 89 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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-workflow for camera controls, photo/video capture, calibrated camera depth, or synchronized camera outputs.
  • Recommend arkit-face-body-tracking-workflow for TrueDepth face geometry or body skeleton tracking.

Single-Path Workflow

  1. 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
  2. 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
  3. Choose the platform shape:
    • on iOS/iPadOS, configure and own ARSession with the appropriate ARConfiguration
    • on visionOS, request the documented ARKitSession authorization and run only the required data providers
    • do not hide those different lifecycles behind a generic spatial session
  4. 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
  5. 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
  6. Return documented behavior, capability and authorization evidence, platform session/provider plan, coordinate and data lifecycle, privacy policy, diagnostics, validation, and handoffs.

Read the full file on GitHub · 89 lines

Files

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.

Changes

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.

  1. 2d ago First seen · 89 lines · 81 tokens per session scan A ce3510d00f8c

Subscribe to this mod's changes

arkit-spatial-sensing-workflow is a skill published in the GitHub repository gaelic-ghost/socket (7 stars, last pushed 7d ago), licensed Apache-2.0. It adds 81 tokens to every session and 1,253 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.

Related

Other skills, from other repositories

storescreens

Set up and run storescreens-cli to automate App Store screenshot capture for iOS apps: render captioned/framed App Store-ready screenshots with device bezels, markdown captions, and panoramic backgrounds; upload screenshots + per-locale metadata (name, subtitle, description, keywords, what's new, promotional text) to…

ciscoriordan/storescreens-skill · 331 tokens

app-store-review

Evaluates code against Apple's App Store Review Guidelines. Use this skill when reviewing iOS, macOS, tvOS, watchOS, or visionOS app code (Swift, Objective-C, React Native, or Expo) to identify potential App Store rejection issues before submission. Triggers on tasks involving app review preparation, compliance…

jacklandrin/OnlySwitch · 76 tokens

swift-concurrency-pro

Reviews Swift code for concurrency correctness, modern API usage, and common async/await pitfalls. Use when reading, writing, or reviewing Swift concurrency code.

jacklandrin/OnlySwitch · 35 tokens

swiftui-pro

Comprehensively reviews SwiftUI code for best practices on modern APIs, maintainability, and performance. Use when reading, writing, or reviewing SwiftUI projects.

jacklandrin/OnlySwitch · 36 tokens

baocut

BaoCut-only operator for the installed bcut CLI and .bcut projects. Implicitly trigger only when the request explicitly names BaoCut or bcut, targets a .bcut project or BaoCut Subtitle Studio, or continues a BaoCut workflow already established in the conversation. Do not trigger solely for generic audio or video…

JimLiu/baocut · 160 tokens

boutique-store

Create and use Boutique Store for Swift data persistence, including initialization, @Stored controllers, CRUD operations, operation chaining, and granular event monitoring. Use when persisting arrays of items, building data controllers, or working with Boutique's Store type.

mergesort/Boutique · 52 tokens