tomkrikorian/visionosagents
Overview
This skill helps you design, implement, and troubleshoot WidgetKit widgets for Apple Vision Pro (visionOS). It focuses on visionOS specifics: mounting styles (elevated vs recessed), textures (glass vs paper), proximity-aware layouts using LevelOfDetail, and timeline/update debugging. You get a practical checklist and concrete implementation patterns to ensure legibility and correct behavior when widgets are pinned in 3D space. The guidance also clarifies when to target a visionOS-native widget versus a compatibility widget from iPhone/iPad builds.
How this skill works
When asked to build or debug a Vision Pro widget, the skill first clarifies scope (native visionOS widget vs compatibility mode) and required families. It then maps a two-tier layout strategy: a default (close) layout and a simplified (far) layout driven by @Environment(.levelOfDetail). It recommends mounting styles and textures, validates legibility/density trade-offs, and provides a timeline and refresh checklist to diagnose stale or missing updates. Finally, it lists concrete checks for common failure modes and offers implementation code patterns to follow.
When to use it
- Designing a widget specifically for Apple Vision Pro with spatial considerations
- Converting existing iOS/iPadOS widgets to work well when pinned in visionOS
- Implementing proximity-aware layouts using LevelOfDetail for near/far readability
- Choosing mounting styles and textures to match your app’s visual language
- Troubleshooting stale timelines, missing families, or rendering differences in recessed mode
Best practices
- Define two layouts: a detailed default and a simplified far view using @Environment(.levelOfDetail)
- Explicitly declare supportedMountingStyles and test both elevated and recessed modes
- Pick widgetTexture (glass or paper) to match contrast needs and test in multiple lighting conditions
- Favor larger typography and reduced content density for .simplified to maintain glanceability from distance
- Use a deliberate timeline policy and implement reloads/refresh logic; add diagnostics for stale entries
Example use cases
- Create a visionOS-native weather widget with glass texture for high-contrast glanceability across a room
- Adapt an iPhone widget to be compatibility-friendly while adding a simplified layout for distance
- Debug a widget that appears broken in recessed mounting by checking safe area, background blending, and supported families
- Resolve stale content by auditing timeline policy, background refresh settings, and provider code
FAQ
Not always; choose based on design intent. If your layout relies on visible edges or shadows, support elevated. If it must blend into a wall, support recessed and test backgrounds.
How do I test proximity layouts locally?
Use the simulator and devices with Vision Pro tooling when available. Emulate LevelOfDetail states and verify typography, spacing, and contrast in both .default and .simplified modes.
9 skills
This skill helps you design, implement, and troublehoot visionOS WidgetKit widgets with mounting styles, textures, and LevelOfDetail aware layouts.
This skill helps you implement immersive and spatial video on visionOS by managing VideoPlayerComponent, immersive modes, transitions, and comfort mitigations.
This skill automates Linear project task execution by sequentially running Codex agents, advancing issues, and tracking retries for efficient workflow.
This skill guides ARKit on visionOS setup, authorization, data providers, anchors, and RealityKit integration for immersive spatial apps.
This skill guides manual editing of USD ASCII shader graphs for RealityKit, enabling you to create, connect, and troubleshoot materials and bindings.
This skill guides building visionOS SwiftUI scenes with RealityKit content, helping you choose between SwiftUI and RealityKit APIs and bridging them
This skill guides you to set up and operate Ralph Driven Development workflows, tailoring plan, specs, and completion tracking for efficient AI-driven coding.
This skill guides safe, minimal edits to USD ASCII files, helping you preserve stage structure and correct specifiers during hand edits.
This skill guides you in building and debugging RealityKit scenes for visionOS, optimizing ECS patterns and system design.