Build iOS augmented reality and 3D experiences with RealityKit and ARKit. Use when adding RealityView content, loading entities or USDZ models, anchoring objects to planes or world positions, distinguishing entity hit tests from ARKit real-world raycasts, handling AR camera availability, world tracking, scene updates, or RealityKit entity gestures and interactions.
80%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./skills/realitykit/SKILL.mdCreate augmented reality and 3D experiences on iOS using RealityKit for rendering and ARKit for world tracking and scene understanding. Targets Swift 6.4 / iOS 26+.
Add NSCameraUsageDescription to Info.plist. Add arkit to UIRequiredDeviceCapabilities only if AR is an absolute requirement for the app; otherwise, check ARWorldTrackingConfiguration.isSupported at runtime and provide a 3D fallback (content.camera = .virtual).
RealityView is the modern SwiftUI container for RealityKit content:
RealityViewContent.attachments.[!IMPORTANT] Distinguish between real-world raycasting and virtual entity hit testing:
- ARKit Raycast (
raycast(from:allowing:alignment:)): Intersects real-world physical surfaces (floors, tables, walls) discovered by camera feature points.- RealityKit Hit Test (
scene.hitTest(_:)/entity.hitTest(_:)): Intersects virtual 3D mesh geometry that has aCollisionComponent.
RealityKit uses ECS architecture:
Entity: Identity container in the 3D scene hierarchy.Component: Pure data structs attached to entities (ModelComponent, CollisionComponent, InputTargetComponent, custom components).System: Per-frame update logic conforming to System protocol that processes entities matching specific component sets.NSCameraUsageDescription in Info.plist, causing instant crash when RealityView initializes.CollisionComponent and InputTargetComponent.content.camera = .virtual) for devices without world tracking.NSCameraUsageDescription declared in Info.plistARWorldTrackingConfiguration.isSupportedEntity(named:) async)CollisionComponent and InputTargetComponentthienqo/ios-skills
6bf8b62
Canonical home
since May 23, 2026
Also appears in
on Oct 29, 2026
since May 22, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.