{"id":111777,"plugin_id":"plugin_asdk_app_6af5f39a383881918c111b771eb6afc3","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-23T18:22:24.709Z","digest":"29d1a10b3531cb6c955c729617529a6e4ada703a6f4b68a8db2c991ee8f889e7","against":null,"payload":{"description":"Build, validate, troubleshoot, and render ViroReact XR scenes using the ReactVision MCP.","included_files":[],"name":"reactvision-xr","skill_md_contents":"---\nname: reactvision-xr\ndescription: Build, validate, troubleshoot, and render ViroReact XR scenes using the ReactVision MCP.\n---\n\n# ReactVision XR Builder\n\nUse the `reactvision-viro` MCP server as the current source of truth for ViroReact APIs, supported platforms, examples, validation, and rendering. Do not invent component names, props, platform support, test outcomes, or MCP capabilities.\n\n## Start by understanding the goal\n\nWhen the request does not already specify the experience, ask what it should do. Gather only the details needed to begin:\n\n- The experience and its main interaction.\n- Target platforms (iOS, Android, Meta Quest, visionOS, or web where supported).\n- Whether the project uses Expo, React Native CLI, or ReactVision Studio.\n- Existing scene/code, assets, and any constraints such as performance or accessibility.\n\nIf a detail is unknown, offer a sensible default and keep moving. Do not ask the user to repeat details already supplied.\n\n## Explain ReactVision documentation and examples\n\n- Start with `reactviro_get_overview` when the user is exploring the MCP or is unsure where to look.\n- Use `reactviro_get_docs` for indexed guides and framework docs, `reactviro_search` for targeted questions, and component/prop lookups for API details.\n- Use `reactviro_list_examples`, `reactviro_get_example`, and `reactviro_examples_using` to find and explain real showcase patterns. Summarize how an example works before adapting it; do not imply an example is a complete production app if it is only a scene.\n- Explain what is established by current docs or code and label any inference. Link to ReactVision docs when useful.\n\n## Build or change a scene\n\n1. For new or unfamiliar work, call `reactviro_get_overview` and consult relevant indexed docs, component props, platform matrix, or examples. Prefer specific lookups over guessing.\n2. For new scenes, select the closest supported features and call `reactviro_generate_scene`. Its feature list is fixed and it does not accept a free-text scene description; adapt its returned TSX to the user's request.\n3. Explain assumptions and preserve the user's existing architecture. Return complete, usable code or a focused patch and identify any assets or project wiring required.\n4. Do not claim the MCP edited the user's local project unless an available tool actually did so.\n\n## Show the scene with Viro Live\n\nViro Live is ReactVision's live scene preview; call it that when you talk to the user. When the user wants to see a scene, or after you change one, call `reactviro_live_preview`. It gives a live, interactive 3D view of their actual code without running the app on a phone.\n\n- Read the files from the project and pass them as `files`, keyed by path from the project root. `entry` is the scene file whose default export is the `ViroARScene` or `ViroScene` (for example `components/ar-scenes/OpeningScene.tsx`), not an app entry that pulls in expo-router or native UI. Include every local file it imports, directly or through scenes it navigates to. If the tool names a missing file, add it and call again.\n- When the user wants to look through the app rather than one scene, also pass the other scene files in `scenes` (every file whose default export is a scene, for example under `components/ar-scenes/`) with the files they import; the preview opens on `entry` and offers the rest in a scene picker. Each scene adds its source to the call.\n- Local models and images render as placeholders until the preview has the real files. With a shell (Claude Code, Codex, Cursor), upload each one with the `curl -T` command in the tool's result; the open preview swaps to it. Without one, or when the user has public URLs for them (a CDN, or Studio team assets from `reactviro_list_studio_content`), pass them in `assets` keyed by the same root-relative path.\n- In Claude the preview runs inline in the chat, where the host allows WebAssembly; otherwise the view says so and offers the link. In ChatGPT it shows inline where the host allows the same. Where views are not shown (Claude Code in a terminal, Codex), give the user the returned URL to open in a browser.\n- After you change a scene that is already previewed, call `reactviro_update_live_preview` with the `preview_id` from the preview's result and only what changed: `edits` (text replacements) for small changes, `files` for new or rewritten files. The open preview swaps to the new code in place. Do not call `reactviro_live_preview` again for a change: it opens a second view and sends every file again. If the update reports a compile error, fix it and update again; the preview keeps showing the last version that compiled.\n- To check how a change looks yourself, call `reactviro_screenshot_live_preview` with the `preview_id`. It returns a picture of the preview's current code from the starting camera, not the user's open view, so it does not show where they moved the camera.\n- The user tries the preview themselves. Once it is up, hand it over and stop: do not open it in a browser or click through its scenes to check them unless the user asks.\n- When the developer selects a node in the preview's Inspect panel, the preview tells you which element it is (its component, file and line). When they say \"this\" or \"the selected node\", change that element. The panel also shows each model's triangle count against the platform budgets.\n- The preview reports its runtime errors and warnings back to you. Fix what they point at; a warning that a component or `dragType` has no web implementation describes the preview, not the device, so say so rather than changing the code for it.\n- The preview page has a \"Render in a real space\" panel that starts an environment render of the previewed scene itself, billed to the team, with local models that were neither uploaded nor given a URL drawn as boxes. Tell the user about it when they want to see the scene in a real space.\n- To see an AR scene in a recorded real-world space, call `reactviro_list_studio_content` to pick an environment, then `reactviro_create_code_environment_render` with the same `entry` and the scene's files plus the local models and images it imports, so the render shows the real assets. Zip and upload as the tool's reply says (it adds a `reactvision.json` naming the entry), then call `reactviro_start_code_environment_render`. This needs a shell, so it works from Claude Code, Codex or Cursor, not from a chat. Renders are billed to the team: say which scene and environment it will use and wait for the user to confirm.\n\n## Validate and test\n\n1. Call `reactviro_validate_scene` on the relevant TSX. Treat it as component-name and prop-shape validation, not a full TypeScript check.\n2. Call `reactviro_check_platform_support` for each requested target and resolve or clearly report unsupported combinations.\n3. Call `reactviro_list_assets_needed` when the scene references assets. Use `reactviro_check_performance_budget` for applicable model URLs; state its format and budget limits.\n4. To show the developer a scene, use Viro Live (above). `reactviro_render_scene` is for your own checks of what Viro Live does not take: a Studio scene as JSON (`format: \"studio_json\"`), or a scripted check of one self-contained TSX string (clicks, frames mid-animation). It substitutes placeholders for local assets unless real asset URLs are provided.\n5. Before selecting a project, environment, or team asset, call `reactviro_list_studio_content` and use its returned IDs. Do not guess IDs.\n6. To see a scene composited over a recorded AR session, use `reactviro_create_environment_render` for a Studio scene or team assets, or `reactviro_create_code_environment_render` then `reactviro_start_code_environment_render` for a local code bundle. From a chat, the Viro Live preview's \"Render in a real space\" panel does the same for the previewed scene. Follow up with `reactviro_get_environment_render` (or `reactviro_list_environment_renders`) for status and output. These runs are billed to the user's team: before starting one, say which scene and environment it will use and wait for the user to confirm. If a tool refuses the run, relay its message as written.\n7. Report actual tool results and limitations. Distinguish static validation from rendering, and rendering from testing on a physical device. Never claim device testing unless it occurred.\n\n## Generate assets\n\n`reactviro_generate_image` and `reactviro_generate_3d_model` save their output to the team's Studio asset library and are billed to the team. Confirm the prompt and quality with the user before calling either, and use the default quality unless they ask for more. 3D generation is asynchronous: poll `reactviro_get_3d_model_task` until it completes, then report the triangle count and any platform it flags as over budget before placing the model in a scene. `reactviro_get_usage` reports how much of the team's budget is used.\n\n## Move between Studio and code\n\n`reactviro_studio_to_tsx` and `reactviro_tsx_to_studio` are best-effort conversions; state what did not carry across (visual scripting, computed values, handlers). For an 8th Wall project, use `reactviro_create_8thwall_migration` or `reactviro_convert_8thwall_project` and report what needs manual porting.\n\n## Troubleshoot\n\nUse `reactviro_diagnose_error` for ViroReact runtime errors and consult current docs or source for API questions. Explain when a reported issue is a tool's heuristic or static check rather than a runtime guarantee.\n\n## First-run connection\n\nThe hosted MCP requires a ReactVision Studio account. The user signs in and chooses a Studio team to attribute usage. Direct them to https://studio.reactvision.xyz/auth/register if they need an account, and explain that asset generation and environment renders are billed to the team they chose. Never request or store their password or access token in chat or package files.\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}