[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6993H6WX2Q57A3MGNB1VMQF":3,"skill-same:01M6993H6WX2Q57A3MGNB1VMQF":86},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":56,"commitSha":57,"skillDirectory":58,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":61,"ownerHtmlUrl":62,"ownerBlogUrl":63,"ownerDescription":64,"updatedAt":65,"install":66,"resources":79},"01M6993H6WX2Q57A3MGNB1VMQF","xb-add-spatial-ui","XR Blocks 空间 UI 构建","Build spatial UI in XR Blocks. Use when adding cards, overlays, panels, text, controls, model-viewer interfaces, layout, styling, themes, or UI placement with the built-in UI system.","在 XR Blocks 中构建空间 UI。适用于使用内置 UI 系统添加卡片、覆盖层、面板、文本、控件、模型查看器界面，以及布局、样式、主题或 UI 放置。","google\u002Fxrblocks","google","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1342004?v=4","01M698VYEFDM0VJBZDYYJ2T83S","Google","01M6993A0Y0E9SVC7MR1FQ03S3",517,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fxrblocks\u002Fblob\u002Fmain\u002Fskills\u002Fxb-add-spatial-ui\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSSTXRS6PCTB98WPQMQXAW","XR 与空间计算开发","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"ui","xb add spatial ui","Spatial","add","when","viewer","ui system","overlays","with","blocks","controls","themes","panels","layout","build","styling","use","model","text","system","2026-11-10 10:12:30",false,"---\nname: xb-add-spatial-ui\ndescription: Build spatial UI in XR Blocks. Use when adding cards, overlays, panels, text, controls, model-viewer interfaces, layout, styling, themes, or UI placement with the built-in UI system.\n---\n\n# Add spatial UI\n\nBuild a **usable surface**: information and controls that remain legible,\ntargetable, and observable in their intended pose.\n\n## 1. Write the surface contract\n\nRecord every displayed value and action, its state owner, spatial anchor,\nappearance states, update cadence, desktop input, XR input, and observable\nresult.\n\nComplete this step when every value and control has a user purpose, source,\nanchor, and testable result.\n\n## 2. Select the correct UI root\n\nRead [`..\u002F..\u002Fdocs\u002Fdocs\u002Fmanual\u002FUI.mdx`](..\u002F..\u002Fdocs\u002Fdocs\u002Fmanual\u002FUI.mdx) before\nimplementation.\n\n- Use `UICard` for a world-space surface measured and positioned in meters.\n- Use `UIOverlay` for a bounded view-space surface.\n- Use `UIPanel` only inside a card or overlay for layout or visual grouping.\n\nImport components from `xrblocks`. Built-in UI starts automatically and joins\nthe normal XR Blocks interaction pipeline. Application code does not enable a\nUI subsystem, register UIKit, or install a second raycaster.\n\nComplete this step when one root owns the intended coordinate space and every\nnested element has one layout parent.\n\n## 3. Compose semantic UI\n\nBuild reading order with `UIPanel`, `UIText`, `UIImage`, and `UIIcon`. Use\n`UIButton`, `UIToggle`, `UIDropdown`, and `UISlider` for actions and choices\ninstead of raw pointer handlers. Use `ModelViewer` for supported interactive\nmodel presentation. Use semantic UI for status, telemetry, instructions, and\ndebug state instead of canvas sprites.\n\nTreat `UICard.size` and world transforms as meters. Treat descendant numeric\nlayout values as UIKit layout units. Treat numeric `lineHeight` as a font-size\nmultiplier; use `px` or `%` strings for explicit units.\n\nOmit `size` to fit both dimensions to content. Each omitted dimension defaults\nto `'auto'`, so `size: {width: 0.6}` fixes width while height follows content,\nand `size: {height: 0.3}` fixes height while width follows content.\nUse a fixed width or `style.maxWidth` when text needs a predictable wrapping\nlimit. Percentage-width children need a definite parent width.\nDragging a resize corner fixes automatic dimensions from their laid-out size;\npressing and releasing without changing size preserves automatic sizing.\n\nComplete this step when all content fits at the intended physical size and each\nstate-changing control has hover or active feedback plus an observable result.\n\n## 4. Connect state, theme, and spatial behavior\n\nUpdate component properties directly. Keep mounted text and controls stable;\nchange structure only when the application structure changes. Use a theme\npreset or theme update for shared palette and structural roles, then use local\nstyles for exceptions.\n\nUse `pointerEvents`, `interactionEnabled`, visibility, material depth behavior,\nand opacity for their separate purposes. Transparency alone does not disable\ndepth writes or input.\n\nRead [`..\u002F..\u002Fdocs\u002Fdocs\u002Fmanual\u002FPlacement.md`](..\u002F..\u002Fdocs\u002Fdocs\u002Fmanual\u002FPlacement.md)\nwhen the root follows, faces, or orbits another object. Read\n[`..\u002F..\u002Fdocs\u002Fdocs\u002Fmanual\u002FInteraction.md`](..\u002F..\u002Fdocs\u002Fdocs\u002Fmanual\u002FInteraction.md)\nfor manipulation and target semantics.\n\nComplete this step when state changes update the intended mounted element,\ntheme changes produce the intended structure and palette, and placement does\nnot compete with user manipulation.\n\n## 5. Validate and hand off\n\nBuild or type-check the app. After a completed UI frame, run `xb.ui.validate()`\nfor the root or all roots. Check overflow, clipping, disabled behavior, input,\ncleanup, and relevant console output. Start from\n[`..\u002F..\u002Ftemplates\u002F01_spatial_ui\u002F`](..\u002F..\u002Ftemplates\u002F01_spatial_ui\u002F) or the\nclosest focused sample for executable evidence.\n\nGive the user the exact URL, viewing pose, input route, control instructions,\nand expected idle, hover, active, disabled, and result states. Name real-device\nchecks for legibility, target size, occlusion, reach, and head motion.\n\nFinish when validation and available smoke checks pass and the user can test\nevery control and state without inferring expected behavior from source.\n","# Add spatial UI\n\nBuild a **usable surface**: information and controls that remain legible,\ntargetable, and observable in their intended pose.\n\n## 1. Write the surface contract\n\nRecord every displayed value and action, its state owner, spatial anchor,\nappearance states, update cadence, desktop input, XR input, and observable\nresult.\n\nComplete this step when every value and control has a user purpose, source,\nanchor, and testable result.\n\n## 2. Select the correct UI root\n\nRead [`..\u002F..\u002Fdocs\u002Fdocs\u002Fmanual\u002FUI.mdx`](..\u002F..\u002Fdocs\u002Fdocs\u002Fmanual\u002FUI.mdx) before\nimplementation.\n\n- Use `UICard` for a world-space surface measured and positioned in meters.\n- Use `UIOverlay` for a bounded view-space surface.\n- Use `UIPanel` only inside a card or overlay for layout or visual grouping.\n\nImport components from `xrblocks`. Built-in UI starts automatically and joins\nthe normal XR Blocks interaction pipeline. Application code does not enable a\nUI subsystem, register UIKit, or install a second raycaster.\n\nComplete this step when one root owns the intended coordinate space and every\nnested element has one layout parent.\n\n## 3. Compose semantic UI\n\nBuild reading order with `UIPanel`, `UIText`, `UIImage`, and `UIIcon`. Use\n`UIButton`, `UIToggle`, `UIDropdown`, and `UISlider` for actions and choices\ninstead of raw pointer handlers. Use `ModelViewer` for supported interactive\nmodel presentation. Use semantic UI for status, telemetry, instructions, and\ndebug state instead of canvas sprites.\n\nTreat `UICard.size` and world transforms as meters. Treat descendant numeric\nlayout values as UIKit layout units. Treat numeric `lineHeight` as a font-size\nmultiplier; use `px` or `%` strings for explicit units.\n\nOmit `size` to fit both dimensions to content. Each omitted dimension defaults\nto `'auto'`, so `size: {width: 0.6}` fixes width while height follows content,\nand `size: {height: 0.3}` fixes height while width follows content.\nUse a fixed width or `style.maxWidth` when text needs a predictable wrapping\nlimit. Percentage-width children need a definite parent width.\nDragging a resize corner fixes automatic dimensions from their laid-out size;\npressing and releasing without changing size preserves automatic sizing.\n\nComplete this step when all content fits at the intended physical size and each\nstate-changing control has hover or active feedback plus an observable result.\n\n## 4. Connect state, theme, and spatial behavior\n\nUpdate component properties directly. Keep mounted text and controls stable;\nchange structure only when the application structure changes. Use a theme\npreset or theme update for shared palette and structural roles, then use local\nstyles for exceptions.\n\nUse `pointerEvents`, `interactionEnabled`, visibility, material depth behavior,\nand opacity for their separate purposes. Transparency alone does not disable\ndepth writes or input.\n\nRead [`..\u002F..\u002Fdocs\u002Fdocs\u002Fmanual\u002FPlacement.md`](..\u002F..\u002Fdocs\u002Fdocs\u002Fmanual\u002FPlacement.md)\nwhen the root follows, faces, or orbits another object. Read\n[`..\u002F..\u002Fdocs\u002Fdocs\u002Fmanual\u002FInteraction.md`](..\u002F..\u002Fdocs\u002Fdocs\u002Fmanual\u002FInteraction.md)\nfor manipulation and target semantics.\n\nComplete this step when state changes update the intended mounted element,\ntheme changes produce the intended structure and palette, and placement does\nnot compete with user manipulation.\n\n## 5. Validate and hand off\n\nBuild or type-check the app. After a completed UI frame, run `xb.ui.validate()`\nfor the root or all roots. Check overflow, clipping, disabled behavior, input,\ncleanup, and relevant console output. Start from\n[`..\u002F..\u002Ftemplates\u002F01_spatial_ui\u002F`](..\u002F..\u002Ftemplates\u002F01_spatial_ui\u002F) or the\nclosest focused sample for executable evidence.\n\nGive the user the exact URL, viewing pose, input route, control instructions,\nand expected idle, hover, active, disabled, and result states. Name real-device\nchecks for legibility, target size, occlusion, reach, and head motion.\n\nFinish when validation and available smoke checks pass and the user can test\nevery control and state without inferring expected behavior from source.\n",{"name":5,"description":7},"main","d4249775486e217ac48dd3b5c02e8b447ed66a4f","skills\u002Fxb-add-spatial-ui",105,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fxrblocks","https:\u002F\u002Fxrblocks.github.io","https:\u002F\u002Fgithub.com\u002Fgoogle","https:\u002F\u002Fopensource.google\u002F","Google ❤️ Open Source","2026-11-14 06:48:49",{"source":9,"skillName":5,"commands":67,"prompt":77,"zipAvailable":78},[68,71,74],{"tool":69,"command":70},"npx","npx skills add google\u002Fxrblocks --skill xb-add-spatial-ui",{"tool":72,"command":73},"bunx","bunx skills add google\u002Fxrblocks --skill xb-add-spatial-ui",{"tool":75,"command":76},"pnpm","pnpm dlx skills add google\u002Fxrblocks --skill xb-add-spatial-ui","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fxrblocks\u002Fblob\u002Fmain\u002Fskills\u002Fxb-add-spatial-ui\u002FSKILL.md",true,[80],{"path":81,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":84,"sourceHtmlUrl":85},"agents\u002Fopenai.yaml","REFERENCE","参考文档",278,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fxrblocks\u002Fblob\u002Fmain\u002Fskills\u002Fxb-add-spatial-ui\u002Fagents\u002Fopenai.yaml",[87,113,139,158,187,211],{"skillNo":88,"name":89,"nameZh":90,"description":91,"descriptionZh":92,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":93,"categories":94,"keywords":97,"publishedAt":51},"01M6993TAHGHAWX3M5S320QZFA","xb-debug-app","XR Blocks 应用调试修复","Debug and repair XR Blocks applications. Use when an app fails to build or run, produces incorrect UI, interaction, sensing, or rendering behavior, differs between simulator and device, leaks resources, or contains obsolete SDK patterns.","调试并修复 XR Blocks 应用。当应用构建或运行失败、UI\u002F交互\u002F感知\u002F渲染行为异常、模拟器与真机表现不一致、存在资源泄漏或包含过时的 SDK 模式时使用。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fxrblocks\u002Fblob\u002Fmain\u002Fskills\u002Fxb-debug-app\u002FSKILL.md",[95,96],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[98,99,100,101,102,103,31,104,105,47,45,106,107,108,109,110,111,112,40,35],"xb debug app","debug app","debug","app","sdk","run","applications","behavior","device","patterns","repair","sensing","interaction","resources","rendering",{"skillNo":114,"name":115,"nameZh":116,"description":117,"descriptionZh":118,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":119,"categories":120,"keywords":123,"publishedAt":51},"01M6993RD0VK0VPN8YYP3FNQX1","xb-contribute-sdk","XR Blocks SDK贡献开发","Complete an XR Blocks SDK change across implementation, runtime wiring, public exports, proof, build output, examples, and canonical documentation. Use when editing the XR Blocks repository rather than an application that consumes it.","完成 XR Blocks SDK 的变更，涵盖实现、运行时接线、公共导出、验证、构建输出、示例和权威文档。适用于编辑 XR Blocks 仓库本身，而非使用它的应用程序。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fxrblocks\u002Fblob\u002Fmain\u002Fskills\u002Fxb-contribute-sdk\u002FSKILL.md",[121,122],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[102,124,125,126,127,128,129,130,131,47,132,45,133,134,135,136,40,137,138,35],"xb contribute sdk","contribute","change","documentation","examples","repository","editing","public","implementation","across","runtime","proof","complete","output","wiring",{"skillNo":140,"name":141,"nameZh":142,"description":143,"descriptionZh":144,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":145,"categories":146,"keywords":149,"publishedAt":51},"01M6993PEZ751YR930CS86CKRY","xb-build-app","XR Blocks应用搭建","Build or extend a complete XR Blocks application. Use when the request concerns an app scaffold, a whole experience, several SDK areas, or an end-to-end simulator or XR handoff rather than one focused subsystem.","构建或扩展完整的 XR Blocks 应用。当请求涉及应用脚手架、完整体验、多个 SDK 领域，或端到端模拟器及 XR 交接，而非单个聚焦子系统时使用。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fxrblocks\u002Fblob\u002Fmain\u002Fskills\u002Fxb-build-app\u002FSKILL.md",[147,148],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[150,45,101,151,152,102,153,47,154,155,136,40,156,157,35],"xb build app","build app","handoff","scaffold","application","end","request","extend",{"skillNo":159,"name":160,"nameZh":161,"description":162,"descriptionZh":163,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":164,"categories":165,"keywords":168,"publishedAt":51},"01M6993MT5KMBBZEBYCNY4D0Y8","xb-anchors","WebXR空间锚点固定与恢复","Pin content to a real place with WebXR spatial anchors, and bring it back in a later session. Use when virtual content must stay put as the headset refines its map of the room, or when an app should remember where things were left. Covers `enableAnchors()`, `enableAnchorPersistence()`, creating and restoring anchors, the `capability` states, and the desktop fallback that lets anchor code be developed without a headset. Pair with xb-world for detecting what to anchor to.","使用 WebXR 空间锚点将内容固定在真实位置，并在后续会话中将其恢复。当虚拟内容必须在头显不断完善房间地图时保持原位，或应用需要记住物品的放置位置时使用。涵盖 `enableAnchors()`、`enableAnchorPersistence()`、创建与恢复锚点、`capability` 状态，以及无需头显即可开发锚点代码的桌面回退方案。可与 xb-world 配合使用，以检测可锚定到的对象。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fxrblocks\u002Fblob\u002Fmain\u002Fskills\u002Fxb-anchors\u002FSKILL.md",[166,167],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[169,170,171,172,173,174,175,176,177,178,179,180,101,181,182,183,184,185,186,35],"xb anchors","webxr","remember","code","virtual","pair","fallback","later","back","world","map","as","states","detecting","bring","for","things","capability",{"skillNo":188,"name":189,"nameZh":190,"description":191,"descriptionZh":192,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":193,"categories":194,"keywords":197,"publishedAt":51},"01M6993JZJGTVKZT028WFG4E5H","xb-add-world-sensing","XR Blocks 物理世界感知接入","Connect physical-world sensing to XR Blocks application state. Use when adding planes, scene meshes, depth, occlusion, world collision evidence, object or human recognition, face tracking, segmentation, or agent-facing scene context.","将物理世界感知连接到 XR Blocks 应用状态。适用于添加平面、场景网格、深度、遮挡、世界碰撞证据、物体或人体识别、面部追踪、分割，或面向智能体（agent）的场景上下文。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fxrblocks\u002Fblob\u002Fmain\u002Fskills\u002Fxb-add-world-sensing\u002FSKILL.md",[195,196],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[198,178,109,34,199,200,201,202,203,47,204,154,205,206,40,207,208,209,210,35],"xb add world sensing","connect","state","segmentation","context","tracking","evidence","human","physical","object","occlusion","depth","face",{"skillNo":212,"name":213,"nameZh":214,"description":215,"descriptionZh":216,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":217,"categories":218,"keywords":221,"publishedAt":51},"01M6993F57C01XXES7M8654GWD","xb-add-interactions","XR Blocks 交互设计与实现","Design and implement XR Blocks interactions. Use when adding selection, hover, direct touch, grab, gestures, event ownership, propagation, automatic manipulation, or physics-driven object behavior.","设计并实现 XR Blocks 交互。适用于添加选择、悬停、直接触摸、抓取、手势、事件所有权、事件传播、自动操作或物理驱动的对象行为。","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fxrblocks\u002Fblob\u002Fmain\u002Fskills\u002Fxb-add-interactions\u002FSKILL.md",[219,220],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[222,34,223,224,225,226,227,105,47,228,229,230,231,40,232,233,234,207,235,35],"xb add interactions","design","gestures","implement","hover","direct","selection","physics","propagation","touch","ownership","event","grab","automatic"]