realitykit-ecs-systems

realitykit-ecs-systems is a skill for Codex from tomkrikorian/visionOSAgents. It costs 83 tokens per session (583 once invoked), scanned A, original, MIT.

A guide for creating custom RealityKit components and systems, the data and per-frame processing used to control entities in visionOS 3D apps.

In plain words
What is it for?
Use it for custom per-entity state, multi-entity queries, update loops, component registration, Codable state, and other recurring ECS behavior.
Why use it?
It helps structure behavior that built-in RealityKit components cannot represent, while keeping continuous work out of SwiftUI views and ad hoc timers.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it for custom per-entity state, multi-entity queries, update loops, component registration, Codable state, and other recurring ECS behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tomkrikorian/visionosagents/realitykit-ecs-systems
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.

Any agent
npx skills add tomkrikorian/visionOSAgents --skill realitykit-ecs-systems
Clone the repo
git clone --depth 1 https://github.com/tomkrikorian/visionOSAgents

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for realitykit-ecs-systems

README.md
[![agentmods](https://agentmods.dev/badge/skills/tomkrikorian/visionosagents/realitykit-ecs-systems/github.svg)](https://agentmods.dev/skills/tomkrikorian/visionosagents/realitykit-ecs-systems)
Your own site
<a href="https://agentmods.dev/skills/tomkrikorian/visionosagents/realitykit-ecs-systems"><img src="https://agentmods.dev/badge/skills/tomkrikorian/visionosagents/realitykit-ecs-systems/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for realitykit-ecs-systems

Your own site · 80×15
<a href="https://agentmods.dev/skills/tomkrikorian/visionosagents/realitykit-ecs-systems"><img src="https://agentmods.dev/badge/skills/tomkrikorian/visionosagents/realitykit-ecs-systems.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 583 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00083 $0.00583
Opus 5 $0.00042 $0.00292
Sonnet 5 $0.00017 $0.00117
Haiku 4.5 $0.00008 $0.00058

Measured 11d ago against content hash 24129eb2d197, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

realitykit-ecs-systems 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 11d 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.

skills/realitykit-ecs-systems/SKILL.md · 58 lines

How it starts

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

RealityKit ECS Systems

Quick Start

  1. First verify that a documented RealityKit component cannot solve the problem; use realitykit-visionos-developer component selection when unsure.
  2. Use a custom Component for per-entity state and a custom System for continuous or multi-entity behavior.
  3. Register custom components and systems once during app startup before any scene, asset, or Reality Composer Pro content that depends on them loads.
  4. Keep per-frame work in systems, not SwiftUI body code or ad hoc timers.
  5. Load the full ECS guide only when implementing or debugging real custom ECS code.

Load References When

Reference When to Use
references/systemandcomponentcreation.md Implement a complete custom component/system registration, query, and update-order pattern.
references/custom-components.md Define custom per-entity data and registration behavior.
references/custom-systems.md Implement custom systems, queries, per-frame behavior, and update loops.

Cross-Routing

  • Use realitykit-visionos-developer for general component choice, entity loading, input, attachments, anchoring, portals, sync, and local USDStageComponent.
  • Use realitykit-rendering-materials when custom ECS only exists to drive materials, lights, post-processing, LOD, splats, or other visual state.
  • Use realitykit-animation-physics when custom ECS interacts with animation, character motion, navigation, collision, physics, particles, or cloth.
  • Use realitykit-audio-spatial when systems coordinate entity-owned audio.

Guardrails

  • Prefer documented components before custom ECS.
  • Register before loading scenes that reference the custom types.
  • Keep system queries narrow and update only the entities that need work.
  • Do not store SwiftUI-only state in RealityKit components unless entity ownership is intentional.
  • Summarize registration order and query shape when changing ECS code.

Read the full file on GitHub · 58 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. 11d ago First seen · 58 lines · 83 tokens per session scan A 24129eb2d197

Subscribe to this mod's changes

realitykit-ecs-systems is a skill published in the GitHub repository tomkrikorian/visionOSAgents (61 stars, last pushed 2mo ago), licensed MIT. It adds 83 tokens to every session and 583 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-30.

Related

Other skills, from other repositories

sceneview-ios

Build 3D and AR apps on Apple platforms (iOS, macOS, visionOS) with SceneViewSwift — the SwiftUI wrapper around RealityKit. Use whenever the user asks for "3D in SwiftUI", "AR with ARKit in SwiftUI", a model viewer for iOS, or any Apple-platform 3D/AR app where the dependency is the SceneViewSwift Swift Package from…

sceneview/sceneview · 148 tokens

sceneview

Build 3D and AR apps with the SceneView SDK in Jetpack Compose, SwiftUI (iOS/macOS/visionOS via SceneViewSwift), Web (Filament.js), Flutter and React Native. Use whenever the user asks for "3D in Compose", "AR with ARCore in Compose", a model viewer, or any cross-platform 3D/AR app where the dependency is…

sceneview/sceneview · 156 tokens

build-mobile-threejs-games

Build, tune, or test a Three.js game for mobile web. Use for touch movement, action controls, target selection, touch inventory, safe areas, portrait/landscape layouts, responsive HUD, battery/performance budgets, and real mobile browser QA.

MengTo/Skills · 57 tokens

building-mobile-game

Build mobile games and game-like interactive experiences in React Native and Expo. Use when Codex is creating or refactoring arcade, puzzle, casual, action, physics-based, or animation-heavy gameplay, including Expo game setup with the with-reanimated template, sprite-sheet generation and extraction, frame-based…

Intelligent-Internet/ii-agent · 91 tokens

mobile-development

Use when targeting Android/iOS — export and signing, permissions, plugins, in-app purchases, ads, app lifecycle, device features, and mobile performance.

jame581/GodotPrompter · 33 tokens

hz-new-project-creation

Scaffolds new Meta Quest and Horizon OS projects with recommended settings for Unity, Unreal, Android/Spatial SDK, or WebXR. Use when creating a new Quest app from scratch.

meta-quest/agentic-tools · 43 tokens