[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6K1364EZPCS4DJ689MAC5T4":3,"skill-same:01M6K1364EZPCS4DJ689MAC5T4":64},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":36,"linkOnly":37,"markdownContent":38,"markdownBody":39,"frontMatter":40,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":6,"ownerHtmlUrl":46,"ownerBlogUrl":47,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M6K1364EZPCS4DJ689MAC5T4","three-webgl-game",null,"Implement browser-game runtimes with plain Three.js. Use when the user wants imperative scene control in TypeScript or Vite with GLB assets, loaders, physics, and low-level WebGL debugging.","NagyVikt\u002Fcodex-plugins","NagyVikt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F137165288?v=4","01M6K0SJ3R2DAZRJKJJS10VN87","Viktor Nagy","01M6K0SJ9HXN0GBD91QDQ9WNVV",2,"MIT","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fgame-studio\u002Fskills\u002Fthree-webgl-game\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],"webgl","three webgl game","game","three","with","typescript","runtimes","control","physics","vite","use","user","assets","js","browser","debugging","implement","2026-11-10 10:12:30",false,"---\nname: three-webgl-game\ndescription: Implement browser-game runtimes with plain Three.js. Use when the user wants imperative scene control in TypeScript or Vite with GLB assets, loaders, physics, and low-level WebGL debugging.\n---\n\n# Three WebGL Game\n\n## Overview\n\nUse this skill for the default non-React 3D path in the plugin. This is not generic WebGL advice. It is an opinionated stack for browser 3D work:\n\n- `three`\n- TypeScript\n- Vite\n- GLB or glTF 2.0 assets\n- Three.js loaders such as `GLTFLoader`, `DRACOLoader`, and `KTX2Loader`\n- Rapier JS for physics\n- SpectorJS for GPU and frame debugging\n- DOM overlays for HUD, menus, and settings\n\nUse this skill when the project wants direct scene, camera, renderer, and game-loop control. If the app already lives in React, route to `..\u002Freact-three-fiber-game\u002FSKILL.md` instead.\n\n## Use This Skill When\n\n- the app is plain TypeScript or Vite rather than React-first\n- the project wants direct imperative control over the render loop\n- the user asks for Three.js specifically\n- the runtime needs engine-like control over scene, camera, loaders, and physics\n\n## Do Not Use This Skill When\n\n- the 3D scene lives inside an existing React app\n- the main problem is shipped-asset optimization rather than runtime code\n- the user explicitly chose Babylon.js or PlayCanvas\n\n## Core Rules\n\n1. Keep simulation state outside Three.js objects.\n   - Game rules, AI, quest state, timers, and progression should not live inside meshes or materials.\n2. Treat the render graph as an adapter.\n   - Scene graph, cameras, materials, loaders, and post-processing are view concerns layered over simulation state.\n3. Keep camera behavior explicit.\n   - Orbit, follow, chase, rail, and first-person styles each need their own control boundary.\n4. Keep UI out of WebGL unless the presentation absolutely depends on it.\n   - Menus, HUD, inventories, and settings should default to DOM.\n5. Use GLB or glTF 2.0 as the default shipping model format.\n   - Do not build the runtime around DCC-native formats.\n6. Use Rapier instead of ad hoc collision code when the game has meaningful 3D physics or collision response.\n7. Keep the first playable view low-chrome.\n   - Default to one compact objective or status cluster plus transient prompts.\n   - Long notes, lore, and controls references should be collapsed until asked for.\n   - Do not frame the scene with multiple equal-weight cards during normal play.\n\n## Initial Scaffold UX\n\nFor exploration, traversal, and character-control prototypes, start with a sparse shell:\n\n- one edge-aligned objective chip\n- one transient controls hint\n- one optional compact status strip\n\nOnly add larger UI surfaces when the game loop truly requires them. Journal, quest log, codex, map, and settings surfaces should open on demand, not occupy the viewport by default.\n\n## Recommended Structure\n\nUse the module shape in `..\u002F..\u002Freferences\u002Fthree-webgl-architecture.md`, then keep these boundaries clean:\n\n- `simulation\u002F`: rules, progression, state, and AI\n- `render\u002Fapp\u002F`: renderer, scene, camera, resize, context lifecycle\n- `render\u002Floaders\u002F`: GLTF, Draco, KTX2, texture, and environment loading\n- `render\u002Fobjects\u002F`: mesh instantiation and disposal\n- `render\u002Fmaterials\u002F`: material setup and shader boundaries\n- `physics\u002F`: Rapier world, bodies, colliders, and simulation bridge\n- `ui\u002F`: DOM overlays and menus\n- `diagnostics\u002F`: debug toggles, perf probes, and capture hooks\n\n## Good Fit Scenarios\n\n- Exploration demos\n- Lightweight 3D combat prototypes\n- Vehicle or traversal prototypes\n- Scene-driven product or world showcases with gameplay\n- Material, lighting, or post-process-led experiences\n- 3D games where camera movement and depth readability are central\n\n## Loaders, Assets, and Post-Processing\n\n- Start with `GLTFLoader` for shipped 3D content.\n- Add `DRACOLoader` or Meshopt-compatible optimization as part of the asset pipeline, not as a random runtime patch.\n- Use `KTX2Loader` for compressed textures when the asset pipeline provides them.\n- Prefer built-in Three.js render and post-processing utilities first. Add heavier abstraction only when the project actually needs it.\n- Keep post-processing optional and measurable. Bloom and color effects should not hide gameplay readability.\n\n## Shader and Material Guidance\n\n- Start with standard Three.js materials and correct lighting before reaching for custom shaders.\n- Use custom shaders only when the visual target genuinely needs them.\n- Keep shader parameters driven by game state, not by incidental scene mutations.\n- If a material stack gets complex, isolate it behind material factories instead of scattering shader setup across scene code.\n\n## Browser Safety\n\n- Handle resize explicitly.\n- Expect WebGL context loss and recovery.\n- Keep a fallback or degraded mode in mind for fragile GPU paths.\n- Watch texture size, geometry count, draw-call growth, and post-processing cost.\n- Use SpectorJS when the scene behaves incorrectly or frame cost is unclear.\n\n## Scope Warning\n\nDo not claim that this plugin offers equal 3D depth to the Phaser track. It supports serious 3D implementation, but the plugin is still 2D-first overall.\n\n## References\n\n- Shared architecture: `..\u002Fweb-game-foundations\u002FSKILL.md`\n- Frontend direction: `..\u002Fgame-ui-frontend\u002FSKILL.md`\n- 3D HUD layout patterns: `..\u002F..\u002Freferences\u002Fthree-hud-layout-patterns.md`\n- Three.js ecosystem: `..\u002F..\u002Freferences\u002Fthreejs-stack.md`\n- Three.js structure: `..\u002F..\u002Freferences\u002Fthree-webgl-architecture.md`\n- Vanilla starter: `..\u002F..\u002Freferences\u002Fthreejs-vanilla-starter.md`\n- GLB loader starter: `..\u002F..\u002Freferences\u002Fgltf-loading-starter.md`\n- Rapier starter: `..\u002F..\u002Freferences\u002Frapier-integration-starter.md`\n- 3D asset pipeline: `..\u002F..\u002Freferences\u002Fweb-3d-asset-pipeline.md`\n- WebGL debugging and perf: `..\u002F..\u002Freferences\u002Fwebgl-debugging-and-performance.md`\n","# Three WebGL Game\n\n## Overview\n\nUse this skill for the default non-React 3D path in the plugin. This is not generic WebGL advice. It is an opinionated stack for browser 3D work:\n\n- `three`\n- TypeScript\n- Vite\n- GLB or glTF 2.0 assets\n- Three.js loaders such as `GLTFLoader`, `DRACOLoader`, and `KTX2Loader`\n- Rapier JS for physics\n- SpectorJS for GPU and frame debugging\n- DOM overlays for HUD, menus, and settings\n\nUse this skill when the project wants direct scene, camera, renderer, and game-loop control. If the app already lives in React, route to `..\u002Freact-three-fiber-game\u002FSKILL.md` instead.\n\n## Use This Skill When\n\n- the app is plain TypeScript or Vite rather than React-first\n- the project wants direct imperative control over the render loop\n- the user asks for Three.js specifically\n- the runtime needs engine-like control over scene, camera, loaders, and physics\n\n## Do Not Use This Skill When\n\n- the 3D scene lives inside an existing React app\n- the main problem is shipped-asset optimization rather than runtime code\n- the user explicitly chose Babylon.js or PlayCanvas\n\n## Core Rules\n\n1. Keep simulation state outside Three.js objects.\n   - Game rules, AI, quest state, timers, and progression should not live inside meshes or materials.\n2. Treat the render graph as an adapter.\n   - Scene graph, cameras, materials, loaders, and post-processing are view concerns layered over simulation state.\n3. Keep camera behavior explicit.\n   - Orbit, follow, chase, rail, and first-person styles each need their own control boundary.\n4. Keep UI out of WebGL unless the presentation absolutely depends on it.\n   - Menus, HUD, inventories, and settings should default to DOM.\n5. Use GLB or glTF 2.0 as the default shipping model format.\n   - Do not build the runtime around DCC-native formats.\n6. Use Rapier instead of ad hoc collision code when the game has meaningful 3D physics or collision response.\n7. Keep the first playable view low-chrome.\n   - Default to one compact objective or status cluster plus transient prompts.\n   - Long notes, lore, and controls references should be collapsed until asked for.\n   - Do not frame the scene with multiple equal-weight cards during normal play.\n\n## Initial Scaffold UX\n\nFor exploration, traversal, and character-control prototypes, start with a sparse shell:\n\n- one edge-aligned objective chip\n- one transient controls hint\n- one optional compact status strip\n\nOnly add larger UI surfaces when the game loop truly requires them. Journal, quest log, codex, map, and settings surfaces should open on demand, not occupy the viewport by default.\n\n## Recommended Structure\n\nUse the module shape in `..\u002F..\u002Freferences\u002Fthree-webgl-architecture.md`, then keep these boundaries clean:\n\n- `simulation\u002F`: rules, progression, state, and AI\n- `render\u002Fapp\u002F`: renderer, scene, camera, resize, context lifecycle\n- `render\u002Floaders\u002F`: GLTF, Draco, KTX2, texture, and environment loading\n- `render\u002Fobjects\u002F`: mesh instantiation and disposal\n- `render\u002Fmaterials\u002F`: material setup and shader boundaries\n- `physics\u002F`: Rapier world, bodies, colliders, and simulation bridge\n- `ui\u002F`: DOM overlays and menus\n- `diagnostics\u002F`: debug toggles, perf probes, and capture hooks\n\n## Good Fit Scenarios\n\n- Exploration demos\n- Lightweight 3D combat prototypes\n- Vehicle or traversal prototypes\n- Scene-driven product or world showcases with gameplay\n- Material, lighting, or post-process-led experiences\n- 3D games where camera movement and depth readability are central\n\n## Loaders, Assets, and Post-Processing\n\n- Start with `GLTFLoader` for shipped 3D content.\n- Add `DRACOLoader` or Meshopt-compatible optimization as part of the asset pipeline, not as a random runtime patch.\n- Use `KTX2Loader` for compressed textures when the asset pipeline provides them.\n- Prefer built-in Three.js render and post-processing utilities first. Add heavier abstraction only when the project actually needs it.\n- Keep post-processing optional and measurable. Bloom and color effects should not hide gameplay readability.\n\n## Shader and Material Guidance\n\n- Start with standard Three.js materials and correct lighting before reaching for custom shaders.\n- Use custom shaders only when the visual target genuinely needs them.\n- Keep shader parameters driven by game state, not by incidental scene mutations.\n- If a material stack gets complex, isolate it behind material factories instead of scattering shader setup across scene code.\n\n## Browser Safety\n\n- Handle resize explicitly.\n- Expect WebGL context loss and recovery.\n- Keep a fallback or degraded mode in mind for fragile GPU paths.\n- Watch texture size, geometry count, draw-call growth, and post-processing cost.\n- Use SpectorJS when the scene behaves incorrectly or frame cost is unclear.\n\n## Scope Warning\n\nDo not claim that this plugin offers equal 3D depth to the Phaser track. It supports serious 3D implementation, but the plugin is still 2D-first overall.\n\n## References\n\n- Shared architecture: `..\u002Fweb-game-foundations\u002FSKILL.md`\n- Frontend direction: `..\u002Fgame-ui-frontend\u002FSKILL.md`\n- 3D HUD layout patterns: `..\u002F..\u002Freferences\u002Fthree-hud-layout-patterns.md`\n- Three.js ecosystem: `..\u002F..\u002Freferences\u002Fthreejs-stack.md`\n- Three.js structure: `..\u002F..\u002Freferences\u002Fthree-webgl-architecture.md`\n- Vanilla starter: `..\u002F..\u002Freferences\u002Fthreejs-vanilla-starter.md`\n- GLB loader starter: `..\u002F..\u002Freferences\u002Fgltf-loading-starter.md`\n- Rapier starter: `..\u002F..\u002Freferences\u002Frapier-integration-starter.md`\n- 3D asset pipeline: `..\u002F..\u002Freferences\u002Fweb-3d-asset-pipeline.md`\n- WebGL debugging and perf: `..\u002F..\u002Freferences\u002Fwebgl-debugging-and-performance.md`\n",{"name":5,"description":7},"main","9a4409c8751439c3aeeea2bc3940ba05dc3cd3b5","plugins\u002Fgame-studio\u002Fskills\u002Fthree-webgl-game",0,"https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins","https:\u002F\u002Fgithub.com\u002FNagyVikt","https:\u002F\u002Fwebu.hu\u002F","Codex is a tool they said...\r\n\r\nCreator of GitGuardex, CueCards. Tech stack: Next.js · TypeScript · Rust · Linux. ","2026-03-30 02:19:53",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add NagyVikt\u002Fcodex-plugins --skill three-webgl-game",{"tool":56,"command":57},"bunx","bunx skills add NagyVikt\u002Fcodex-plugins --skill three-webgl-game",{"tool":59,"command":60},"pnpm","pnpm dlx skills add NagyVikt\u002Fcodex-plugins --skill three-webgl-game","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fgame-studio\u002Fskills\u002Fthree-webgl-game\u002FSKILL.md",true,[],[65,91,115,138,160,182],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":36},"01M6K1ZEN8P9R2S6NPNJNJ8JVH","workflow","Vercel Workflow DevKit (WDK) expert guidance. Use when building durable workflows, long-running tasks, API routes or agents that need pause\u002Fresume, retries, step-based execution, or crash-safe orchestration with Vercel Workflow.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fworkflow\u002FSKILL.md",[],[67,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90],"workflows","create","run","streaming","logs","start","why","loop","wait for","branch","auto","log","conversation","human","lib","condition","rendering","retries","sleep",{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":36},"01M6K1Z71NWFSPHK2VJJ73MVSY","verification","Full-story verification — infers what the user is building, then verifies the complete flow end-to-end: browser → API → data → response. Triggers on dev server start and 'why isn't this working' signals.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fverification\u002FSKILL.md",[],[93,98,75,99,100,101,81,102,103,104,105,106,107,108,109,110,111,112,113,114],"auth","routing middleware","api","projects","user story","full stack","jest","local","project","end","app","false","unit","error","middleware","loading","unit test",{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":36},"01M6K1YPRYJS3BQEDP8HKBHPEJ","vercel-storage","Vercel storage expert guidance — Blob, Edge Config, and Marketplace storage (Neon Postgres, Upstash Redis). Use when choosing, configuring, or using data storage with Vercel applications.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-storage\u002FSKILL.md",[],[122,123,124,125,74,126,127,82,128,129,130,131,132,133,108,86,134,135,136,137],"storage","vercel storage","vercel","config","supabase","migrate","router","clerk","expert","prisma","connection pooling","neon","turso","upstash","URL","auth0",{"skillNo":139,"name":140,"nameZh":6,"description":141,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":36},"01M6K1YFEP0GPPGMQ3D0FPTS27","vercel-services","Vercel Services — deploy multiple services within a single Vercel project. Use for monorepo layouts or when combining a backend (Python, Go) with a frontend (Next.js, Vite) in one deployment.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-services\u002FSKILL.md",[],[145,146,124,147,148,149,150,151,152,153,154,41,155,156,106,157,108,158,111,159],"vercel services","services","frontend","docker compose","SET","configure","monorepo","go api","fastapi","up","aws lambda","go backend","get","apps","python backend",{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":36},"01M6K1Y8S3CRD43DPKX0PK1MTT","vercel-sandbox","Vercel Sandbox guidance — ephemeral Firecracker microVMs for running untrusted code safely. Supports AI agents, code generation, and experimentation. Use when executing user-generated or AI-generated code in isolation.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-sandbox\u002FSKILL.md",[],[167,168,124,169,170,73,74,171,172,173,174,175,176,177,178,179,113,180,162,181],"sandbox","vercel sandbox","safe","ai agents","code","ai sdk","Code Generation","playground","generated","spawn","install","runner","io","child","student",{"skillNo":183,"name":184,"nameZh":6,"description":185,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":186,"categories":187,"keywords":188,"publishedAt":36},"01M6K1Y1J8S7AN97H75SHBGF7J","vercel-queues","Vercel Queues guidance (public beta) — durable event streaming with topics, consumer groups, retries, and delayed delivery. $0.60\u002F1M ops. Powers Workflow DevKit. Use when building async processing, fan-out patterns, or event-driven architectures.","https:\u002F\u002Fgithub.com\u002FNagyVikt\u002Fcodex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fvercel\u002Fskills\u002Fvercel-queues\u002FSKILL.md",[],[189,124,67,72,75,190,149,100,150,154,191,192,193,194,108,86,195,89,113,196],"vercel queues","beta","message","delivery","across","worker","processing","at"]