[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74XK9ASXGQGMV47F1GCP86M":3,"skill-same:01M74XK9ASXGQGMV47F1GCP86M":49},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M74XK9ASXGQGMV47F1GCP86M","three-best-practices",null,"Three.js performance optimization and best practices guidelines. Use when writing, reviewing, or optimizing Three.js code. Triggers on tasks involving 3D scenes, WebGL\u002FWebGPU rendering, geometries, materials, textures, lighting, shaders, or TSL.","roman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade","roman-ryzenadvanced","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F239662551?v=4","01M74W4V145ZM75RFTGXF80YQS","Roman | RyzenAdvanced","01M74W4V1TY266Y791RQEN44JF",0,"MIT","https:\u002F\u002Fgithub.com\u002Froman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Fthree-best-practices\u002Fskill.md",[],[],"2026-11-12 13:55:43",false,"---\nname: three-best-practices\ndescription: Three.js performance optimization and best practices guidelines. Use when writing, reviewing, or optimizing Three.js code. Triggers on tasks involving 3D scenes, WebGL\u002FWebGPU rendering, geometries, materials, textures, lighting, shaders, or TSL.\nlicense: MIT\nmetadata:\n  author: three-agent-skills\n  version: \"2.0.0\"\n  three-version: \"0.182.0+\"\n---\n\n# Three.js Best Practices\n\nComprehensive performance optimization guide for Three.js applications. Contains 100+ rules across 17 categories, prioritized by impact.\n\n> Based on official guidelines from Three.js `llms` branch maintained by mrdoob.\n\n## When to Apply\n\nReference these guidelines when:\n- Setting up a new Three.js project\n- Writing or reviewing Three.js code\n- Optimizing performance or fixing memory leaks\n- Working with custom shaders (GLSL or TSL)\n- Implementing WebGPU features\n- Building VR\u002FAR experiences with WebXR\n- Integrating physics engines\n- Optimizing for mobile devices\n\n## Rule Categories by Priority\n\n| Priority | Category | Impact | Prefix |\n|----------|----------|--------|--------|\n| 0 | Modern Setup & Imports | FUNDAMENTAL | `setup-` |\n| 1 | Memory Management & Dispose | CRITICAL | `memory-` |\n| 2 | Render Loop Optimization | CRITICAL | `render-` |\n| 3 | Geometry & Buffer Management | HIGH | `geometry-` |\n| 4 | Material & Texture Optimization | HIGH | `material-` |\n| 5 | Lighting & Shadows | MEDIUM-HIGH | `lighting-` |\n| 6 | Scene Graph Organization | MEDIUM | `scene-` |\n| 7 | Shader Best Practices (GLSL) | MEDIUM | `shader-` |\n| 8 | TSL (Three.js Shading Language) | MEDIUM | `tsl-` |\n| 9 | Loading & Assets | MEDIUM | `loading-` |\n| 10 | Camera & Controls | LOW-MEDIUM | `camera-` |\n| 11 | Animation System | MEDIUM | `animation-` |\n| 12 | Physics Integration | MEDIUM | `physics-` |\n| 13 | WebXR \u002F VR \u002F AR | MEDIUM | `webxr-` |\n| 14 | Audio | LOW-MEDIUM | `audio-` |\n| 15 | Mobile Optimization | HIGH | `mobile-` |\n| 16 | Production | HIGH | `error-`, `migration-` |\n| 17 | Debug & DevTools | LOW | `debug-` |\n\n## Quick Reference\n\n### 0. Modern Setup (FUNDAMENTAL)\n\n- `setup-use-import-maps` - Use Import Maps, not old CDN scripts\n- `setup-choose-renderer` - WebGLRenderer (default) vs WebGPURenderer (TSL\u002Fcompute)\n- `setup-animation-loop` - Use `renderer.setAnimationLoop()` not manual RAF\n- `setup-basic-scene-template` - Complete modern scene template\n\n### 1. Memory Management (CRITICAL)\n\n- `memory-dispose-geometry` - Always dispose geometries\n- `memory-dispose-material` - Always dispose materials and textures\n- `memory-dispose-textures` - Dispose dynamically created textures\n- `memory-dispose-render-targets` - Always dispose WebGLRenderTarget\n- `memory-dispose-recursive` - Use recursive disposal for hierarchies\n- `memory-dispose-on-unmount` - Dispose in React cleanup\u002Funmount\n- `memory-renderer-dispose` - Dispose renderer when destroying view\n- `memory-reuse-objects` - Reuse geometries and materials\n\n### 2. Render Loop (CRITICAL)\n\n- `render-single-raf` - Single requestAnimationFrame loop\n- `render-conditional` - Render on demand for static scenes\n- `render-delta-time` - Use delta time for animations\n- `render-avoid-allocations` - Never allocate in render loop\n- `render-cache-computations` - Cache expensive computations\n- `render-frustum-culling` - Enable frustum culling\n- `render-update-matrix-manual` - Disable auto matrix updates for static objects\n- `render-pixel-ratio` - Limit pixel ratio to 2\n- `render-antialias-wisely` - Use antialiasing judiciously\n\n### 3. Geometry (HIGH)\n\n- `geometry-buffer-geometry` - Always use BufferGeometry\n- `geometry-merge-static` - Merge static geometries\n- `geometry-instanced-mesh` - Use InstancedMesh for identical objects\n- `geometry-lod` - Use Level of Detail for complex models\n- `geometry-index-buffer` - Use indexed geometry\n- `geometry-vertex-count` - Minimize vertex count\n- `geometry-attributes-typed` - Use appropriate typed arrays\n- `geometry-interleaved` - Consider interleaved buffers\n\n### 4. Materials & Textures (HIGH)\n\n- `material-reuse` - Reuse materials across meshes\n- `material-simplest-sufficient` - Use simplest material that works\n- `material-texture-size-power-of-two` - Power-of-two texture dimensions\n- `material-texture-compression` - Use compressed textures (KTX2\u002FBasis)\n- `material-texture-mipmaps` - Enable mipmaps appropriately\n- `material-texture-anisotropy` - Use anisotropic filtering for floors\n- `material-texture-atlas` - Use texture atlases\n- `material-avoid-transparency` - Minimize transparent materials\n- `material-onbeforecompile` - Use onBeforeCompile for shader mods (or TSL)\n\n### 5. Lighting & Shadows (MEDIUM-HIGH)\n\n- `lighting-limit-lights` - Minimize dynamic lights\n- `lighting-bake-static` - Bake lighting for static scenes\n- `lighting-shadow-camera-tight` - Fit shadow camera tightly\n- `lighting-shadow-map-size` - Choose appropriate shadow resolution\n- `lighting-shadow-selective` - Enable shadows selectively\n- `lighting-shadow-cascade` - Use CSM for large scenes\n- `lighting-probe` - Use Light Probes\n\n### 6. Scene Graph (MEDIUM)\n\n- `scene-group-objects` - Use Groups for organization\n- `scene-layers` - Use Layers for selective rendering\n- `scene-visible-toggle` - Use visible flag, not add\u002Fremove\n- `scene-flatten-static` - Flatten static hierarchies\n- `scene-name-objects` - Name objects for debugging\n- `scene-object-pooling` - Use object pooling\n\n### 7. Shaders GLSL (MEDIUM)\n\n- `shader-precision` - Use appropriate precision\n- `shader-avoid-branching` - Minimize branching\n- `shader-precompute-cpu` - Precompute on CPU\n- `shader-avoid-discard` - Avoid discard, use alphaTest\n- `shader-texture-lod` - Use textureLod for known mip levels\n- `shader-uniform-arrays` - Prefer uniform arrays\n- `shader-varying-interpolation` - Use flat when appropriate\n- `shader-chunk-injection` - Use Three.js shader chunks\n\n### 8. TSL - Three.js Shading Language (MEDIUM)\n\n- `tsl-why-use` - Use TSL instead of onBeforeCompile\n- `tsl-setup-webgpu` - WebGPU setup for TSL\n- `tsl-complete-reference` - Full TSL type system and functions\n- `tsl-material-slots` - Material node properties reference\n- `tsl-node-materials` - Use NodeMaterial classes\n- `tsl-basic-operations` - Types, operations, swizzling\n- `tsl-functions` - Creating TSL functions with Fn()\n- `tsl-conditionals` - If, select, loops in TSL\n- `tsl-textures` - Textures and triplanar mapping\n- `tsl-post-processing` - bloom, blur, dof, ao\n- `tsl-compute-shaders` - GPGPU and compute operations\n- `tsl-glsl-to-tsl` - GLSL to TSL translation\n\n### 9. Loading & Assets (MEDIUM)\n\n- `loading-draco-compression` - Use Draco for large meshes\n- `loading-gltf-preferred` - Use glTF format\n- `gltf-loading-optimization` - Full loader setup with DRACO\u002FMeshopt\u002FKTX2\n- `loading-progress-feedback` - Show loading progress\n- `loading-async-await` - Use async\u002Fawait for loading\n- `loading-lazy` - Lazy load non-critical assets\n- `loading-cache-assets` - Enable caching\n- `loading-dispose-unused` - Unload unused assets\n\n### 10. Camera & Controls (LOW-MEDIUM)\n\n- `camera-near-far` - Set tight near\u002Ffar planes\n- `camera-fov` - Choose appropriate FOV\n- `camera-controls-damping` - Use damping for smooth controls\n- `camera-resize-handler` - Handle resize properly\n- `camera-orbit-limits` - Set orbit control limits\n\n### 11. Animation (MEDIUM)\n\n- `animation-system` - AnimationMixer, blending, morph targets, skeletal\n\n### 12. Physics (MEDIUM)\n\n- `physics-integration` - Rapier, Cannon-es integration patterns\n\n### 13. WebXR (MEDIUM)\n\n- `webxr-setup` - VR\u002FAR buttons, controllers, hit testing\n\n### 14. Audio (LOW-MEDIUM)\n\n- `audio-spatial` - PositionalAudio, HRTF, spatial sound\n\n### 15. Optimization (HIGH)\n\n- `mobile-optimization` - Mobile-specific optimizations and checklist\n- `raycasting-optimization` - BVH, layers, GPU picking\n\n### 16. Production (HIGH)\n\n- `error-handling-recovery` - WebGL context loss and recovery\n- `migration-checklist` - Breaking changes by version\n\n### 17. Debug (LOW)\n\n- `debug-stats` - Use Stats.js\n- `debug-helpers` - Use built-in helpers\n- `debug-gui` - Use lil-gui for tweaking\n- `debug-renderer-info` - Check renderer.info\n- `debug-conditional` - Remove debug code in production\n\n## How to Use\n\nRead individual rule files for detailed explanations and code examples:\n\n```\nrules\u002Fsetup-use-import-maps.md\nrules\u002Fmemory-dispose-geometry.md\nrules\u002Ftsl-complete-reference.md\nrules\u002Fmobile-optimization.md\n```\n\nEach rule file contains:\n- Brief explanation of why it matters\n- BAD code example with explanation\n- GOOD code example with explanation\n- Additional context and references\n\n## Key Patterns\n\n### Modern Import Maps\n\n```html\n\u003Cscript type=\"importmap\">\n{\n  \"imports\": {\n    \"three\": \"https:\u002F\u002Fcdn.jsdelivr.net\u002Fnpm\u002Fthree@0.182.0\u002Fbuild\u002Fthree.module.js\",\n    \"three\u002Faddons\u002F\": \"https:\u002F\u002Fcdn.jsdelivr.net\u002Fnpm\u002Fthree@0.182.0\u002Fexamples\u002Fjsm\u002F\",\n    \"three\u002Ftsl\": \"https:\u002F\u002Fcdn.jsdelivr.net\u002Fnpm\u002Fthree@0.182.0\u002Fbuild\u002Fthree.tsl.js\"\n  }\n}\n\u003C\u002Fscript>\n```\n\n### Proper Disposal\n\n```javascript\nfunction disposeObject(obj) {\n  if (obj.geometry) obj.geometry.dispose();\n  if (obj.material) {\n    if (Array.isArray(obj.material)) {\n      obj.material.forEach(m => m.dispose());\n    } else {\n      obj.material.dispose();\n    }\n  }\n}\n```\n\n### TSL Basic Usage\n\n```javascript\nimport { texture, uv, color, time, sin } from 'three\u002Ftsl';\n\nconst material = new THREE.MeshStandardNodeMaterial();\nmaterial.colorNode = texture(map).mul(color(0xff0000));\nmaterial.colorNode = color(0x00ff00).mul(sin(time).mul(0.5).add(0.5));\n```\n\n### Mobile Detection\n\n```javascript\nconst isMobile = \u002FAndroid|iPhone|iPad|iPod\u002Fi.test(navigator.userAgent);\nrenderer.setPixelRatio(Math.min(window.devicePixelRatio, isMobile ? 1.5 : 2));\n```\n","# Three.js Best Practices\n\nComprehensive performance optimization guide for Three.js applications. Contains 100+ rules across 17 categories, prioritized by impact.\n\n> Based on official guidelines from Three.js `llms` branch maintained by mrdoob.\n\n## When to Apply\n\nReference these guidelines when:\n- Setting up a new Three.js project\n- Writing or reviewing Three.js code\n- Optimizing performance or fixing memory leaks\n- Working with custom shaders (GLSL or TSL)\n- Implementing WebGPU features\n- Building VR\u002FAR experiences with WebXR\n- Integrating physics engines\n- Optimizing for mobile devices\n\n## Rule Categories by Priority\n\n| Priority | Category | Impact | Prefix |\n|----------|----------|--------|--------|\n| 0 | Modern Setup & Imports | FUNDAMENTAL | `setup-` |\n| 1 | Memory Management & Dispose | CRITICAL | `memory-` |\n| 2 | Render Loop Optimization | CRITICAL | `render-` |\n| 3 | Geometry & Buffer Management | HIGH | `geometry-` |\n| 4 | Material & Texture Optimization | HIGH | `material-` |\n| 5 | Lighting & Shadows | MEDIUM-HIGH | `lighting-` |\n| 6 | Scene Graph Organization | MEDIUM | `scene-` |\n| 7 | Shader Best Practices (GLSL) | MEDIUM | `shader-` |\n| 8 | TSL (Three.js Shading Language) | MEDIUM | `tsl-` |\n| 9 | Loading & Assets | MEDIUM | `loading-` |\n| 10 | Camera & Controls | LOW-MEDIUM | `camera-` |\n| 11 | Animation System | MEDIUM | `animation-` |\n| 12 | Physics Integration | MEDIUM | `physics-` |\n| 13 | WebXR \u002F VR \u002F AR | MEDIUM | `webxr-` |\n| 14 | Audio | LOW-MEDIUM | `audio-` |\n| 15 | Mobile Optimization | HIGH | `mobile-` |\n| 16 | Production | HIGH | `error-`, `migration-` |\n| 17 | Debug & DevTools | LOW | `debug-` |\n\n## Quick Reference\n\n### 0. Modern Setup (FUNDAMENTAL)\n\n- `setup-use-import-maps` - Use Import Maps, not old CDN scripts\n- `setup-choose-renderer` - WebGLRenderer (default) vs WebGPURenderer (TSL\u002Fcompute)\n- `setup-animation-loop` - Use `renderer.setAnimationLoop()` not manual RAF\n- `setup-basic-scene-template` - Complete modern scene template\n\n### 1. Memory Management (CRITICAL)\n\n- `memory-dispose-geometry` - Always dispose geometries\n- `memory-dispose-material` - Always dispose materials and textures\n- `memory-dispose-textures` - Dispose dynamically created textures\n- `memory-dispose-render-targets` - Always dispose WebGLRenderTarget\n- `memory-dispose-recursive` - Use recursive disposal for hierarchies\n- `memory-dispose-on-unmount` - Dispose in React cleanup\u002Funmount\n- `memory-renderer-dispose` - Dispose renderer when destroying view\n- `memory-reuse-objects` - Reuse geometries and materials\n\n### 2. Render Loop (CRITICAL)\n\n- `render-single-raf` - Single requestAnimationFrame loop\n- `render-conditional` - Render on demand for static scenes\n- `render-delta-time` - Use delta time for animations\n- `render-avoid-allocations` - Never allocate in render loop\n- `render-cache-computations` - Cache expensive computations\n- `render-frustum-culling` - Enable frustum culling\n- `render-update-matrix-manual` - Disable auto matrix updates for static objects\n- `render-pixel-ratio` - Limit pixel ratio to 2\n- `render-antialias-wisely` - Use antialiasing judiciously\n\n### 3. Geometry (HIGH)\n\n- `geometry-buffer-geometry` - Always use BufferGeometry\n- `geometry-merge-static` - Merge static geometries\n- `geometry-instanced-mesh` - Use InstancedMesh for identical objects\n- `geometry-lod` - Use Level of Detail for complex models\n- `geometry-index-buffer` - Use indexed geometry\n- `geometry-vertex-count` - Minimize vertex count\n- `geometry-attributes-typed` - Use appropriate typed arrays\n- `geometry-interleaved` - Consider interleaved buffers\n\n### 4. Materials & Textures (HIGH)\n\n- `material-reuse` - Reuse materials across meshes\n- `material-simplest-sufficient` - Use simplest material that works\n- `material-texture-size-power-of-two` - Power-of-two texture dimensions\n- `material-texture-compression` - Use compressed textures (KTX2\u002FBasis)\n- `material-texture-mipmaps` - Enable mipmaps appropriately\n- `material-texture-anisotropy` - Use anisotropic filtering for floors\n- `material-texture-atlas` - Use texture atlases\n- `material-avoid-transparency` - Minimize transparent materials\n- `material-onbeforecompile` - Use onBeforeCompile for shader mods (or TSL)\n\n### 5. Lighting & Shadows (MEDIUM-HIGH)\n\n- `lighting-limit-lights` - Minimize dynamic lights\n- `lighting-bake-static` - Bake lighting for static scenes\n- `lighting-shadow-camera-tight` - Fit shadow camera tightly\n- `lighting-shadow-map-size` - Choose appropriate shadow resolution\n- `lighting-shadow-selective` - Enable shadows selectively\n- `lighting-shadow-cascade` - Use CSM for large scenes\n- `lighting-probe` - Use Light Probes\n\n### 6. Scene Graph (MEDIUM)\n\n- `scene-group-objects` - Use Groups for organization\n- `scene-layers` - Use Layers for selective rendering\n- `scene-visible-toggle` - Use visible flag, not add\u002Fremove\n- `scene-flatten-static` - Flatten static hierarchies\n- `scene-name-objects` - Name objects for debugging\n- `scene-object-pooling` - Use object pooling\n\n### 7. Shaders GLSL (MEDIUM)\n\n- `shader-precision` - Use appropriate precision\n- `shader-avoid-branching` - Minimize branching\n- `shader-precompute-cpu` - Precompute on CPU\n- `shader-avoid-discard` - Avoid discard, use alphaTest\n- `shader-texture-lod` - Use textureLod for known mip levels\n- `shader-uniform-arrays` - Prefer uniform arrays\n- `shader-varying-interpolation` - Use flat when appropriate\n- `shader-chunk-injection` - Use Three.js shader chunks\n\n### 8. TSL - Three.js Shading Language (MEDIUM)\n\n- `tsl-why-use` - Use TSL instead of onBeforeCompile\n- `tsl-setup-webgpu` - WebGPU setup for TSL\n- `tsl-complete-reference` - Full TSL type system and functions\n- `tsl-material-slots` - Material node properties reference\n- `tsl-node-materials` - Use NodeMaterial classes\n- `tsl-basic-operations` - Types, operations, swizzling\n- `tsl-functions` - Creating TSL functions with Fn()\n- `tsl-conditionals` - If, select, loops in TSL\n- `tsl-textures` - Textures and triplanar mapping\n- `tsl-post-processing` - bloom, blur, dof, ao\n- `tsl-compute-shaders` - GPGPU and compute operations\n- `tsl-glsl-to-tsl` - GLSL to TSL translation\n\n### 9. Loading & Assets (MEDIUM)\n\n- `loading-draco-compression` - Use Draco for large meshes\n- `loading-gltf-preferred` - Use glTF format\n- `gltf-loading-optimization` - Full loader setup with DRACO\u002FMeshopt\u002FKTX2\n- `loading-progress-feedback` - Show loading progress\n- `loading-async-await` - Use async\u002Fawait for loading\n- `loading-lazy` - Lazy load non-critical assets\n- `loading-cache-assets` - Enable caching\n- `loading-dispose-unused` - Unload unused assets\n\n### 10. Camera & Controls (LOW-MEDIUM)\n\n- `camera-near-far` - Set tight near\u002Ffar planes\n- `camera-fov` - Choose appropriate FOV\n- `camera-controls-damping` - Use damping for smooth controls\n- `camera-resize-handler` - Handle resize properly\n- `camera-orbit-limits` - Set orbit control limits\n\n### 11. Animation (MEDIUM)\n\n- `animation-system` - AnimationMixer, blending, morph targets, skeletal\n\n### 12. Physics (MEDIUM)\n\n- `physics-integration` - Rapier, Cannon-es integration patterns\n\n### 13. WebXR (MEDIUM)\n\n- `webxr-setup` - VR\u002FAR buttons, controllers, hit testing\n\n### 14. Audio (LOW-MEDIUM)\n\n- `audio-spatial` - PositionalAudio, HRTF, spatial sound\n\n### 15. Optimization (HIGH)\n\n- `mobile-optimization` - Mobile-specific optimizations and checklist\n- `raycasting-optimization` - BVH, layers, GPU picking\n\n### 16. Production (HIGH)\n\n- `error-handling-recovery` - WebGL context loss and recovery\n- `migration-checklist` - Breaking changes by version\n\n### 17. Debug (LOW)\n\n- `debug-stats` - Use Stats.js\n- `debug-helpers` - Use built-in helpers\n- `debug-gui` - Use lil-gui for tweaking\n- `debug-renderer-info` - Check renderer.info\n- `debug-conditional` - Remove debug code in production\n\n## How to Use\n\nRead individual rule files for detailed explanations and code examples:\n\n```\nrules\u002Fsetup-use-import-maps.md\nrules\u002Fmemory-dispose-geometry.md\nrules\u002Ftsl-complete-reference.md\nrules\u002Fmobile-optimization.md\n```\n\nEach rule file contains:\n- Brief explanation of why it matters\n- BAD code example with explanation\n- GOOD code example with explanation\n- Additional context and references\n\n## Key Patterns\n\n### Modern Import Maps\n\n```html\n\u003Cscript type=\"importmap\">\n{\n  \"imports\": {\n    \"three\": \"https:\u002F\u002Fcdn.jsdelivr.net\u002Fnpm\u002Fthree@0.182.0\u002Fbuild\u002Fthree.module.js\",\n    \"three\u002Faddons\u002F\": \"https:\u002F\u002Fcdn.jsdelivr.net\u002Fnpm\u002Fthree@0.182.0\u002Fexamples\u002Fjsm\u002F\",\n    \"three\u002Ftsl\": \"https:\u002F\u002Fcdn.jsdelivr.net\u002Fnpm\u002Fthree@0.182.0\u002Fbuild\u002Fthree.tsl.js\"\n  }\n}\n\u003C\u002Fscript>\n```\n\n### Proper Disposal\n\n```javascript\nfunction disposeObject(obj) {\n  if (obj.geometry) obj.geometry.dispose();\n  if (obj.material) {\n    if (Array.isArray(obj.material)) {\n      obj.material.forEach(m => m.dispose());\n    } else {\n      obj.material.dispose();\n    }\n  }\n}\n```\n\n### TSL Basic Usage\n\n```javascript\nimport { texture, uv, color, time, sin } from 'three\u002Ftsl';\n\nconst material = new THREE.MeshStandardNodeMaterial();\nmaterial.colorNode = texture(map).mul(color(0xff0000));\nmaterial.colorNode = color(0x00ff00).mul(sin(time).mul(0.5).add(0.5));\n```\n\n### Mobile Detection\n\n```javascript\nconst isMobile = \u002FAndroid|iPhone|iPad|iPod\u002Fi.test(navigator.userAgent);\nrenderer.setPixelRatio(Math.min(window.devicePixelRatio, isMobile ? 1.5 : 2));\n```\n",{"name":5,"license":15,"metadata":24,"description":7},{"author":25,"version":26,"three-version":27},"three-agent-skills","2.0.0","0.182.0+","main","d1b1a29ddb408336ea3867f7c9fbab956be7747e","skills\u002Fthree-best-practices","https:\u002F\u002Fgithub.com\u002Froman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade","https:\u002F\u002Fgithub.com\u002Froman-ryzenadvanced","Dive into Vibe Coding World with me.","2026-05-26 00:28:40",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add roman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade --skill three-best-practices",{"tool":41,"command":42},"bunx","bunx skills add roman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade --skill three-best-practices",{"tool":44,"command":45},"pnpm","pnpm dlx skills add roman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade --skill three-best-practices","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Froman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Fthree-best-practices\u002Fskill.md",true,[],[50,57,64,71,78,85],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":19},"01M74XP1BS37A34J2QEKQ3K3VN","vueuse","Use when working with VueUse composables - provides reactive utilities for state, browser APIs, sensors, network, animations. Check VueUse before writing custom composables - most patterns already implemented.","https:\u002F\u002Fgithub.com\u002Froman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Fvueuse\u002Fskill.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M74XNYP2CET8GQB3M2K40T0H","vue","Use when editing .vue files, creating Vue 3 components, writing composables, or testing Vue code - provides Composition API patterns, props\u002Femits best practices, VueUse integration, and reactive destructuring guidance","https:\u002F\u002Fgithub.com\u002Froman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Fvue\u002Fskill.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M74XNW8REWTQMQ46R59BYK54","vue-best-practices","Vue 3 and Vue.js best practices for TypeScript, vue-tsc, and Volar. This skill should be used when writing, reviewing, or refactoring Vue components to ensure correct typing patterns. Triggers on tasks involving Vue components, props extraction, wrapper components, template type checking, or Volar configuration.","https:\u002F\u002Fgithub.com\u002Froman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Fvue-best-practices\u002Fskill.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M74XMFHSC86NGP23XRSB9XSF","ts-library","Use when authoring TypeScript libraries - covers project setup, package exports, build tooling (tsdown\u002Funbuild), API design patterns, type inference tricks, testing, and release workflows. Patterns extracted from 20+ high-quality ecosystem libraries.","https:\u002F\u002Fgithub.com\u002Froman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Fts-library\u002Fskill.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M74XH5YERRKW90EJ4S5HC2GA","supabase-best-practices","Supabase security and performance guidelines with Clerk authentication integration. Contains 40+ rules across 10 categories covering RLS policies, Clerk setup, database security, and more.","https:\u002F\u002Fgithub.com\u002Froman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Fsupabase-best-practices\u002Fskill.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M74XE0ZR92ZAMEHH804D6H9Q","agent-pipeline-builder","Build multi-agent pipelines with structured data flow between agents. Use when creating workflows where each agent has a specialized role and passes output to the next agent.","https:\u002F\u002Fgithub.com\u002Froman-ryzenadvanced\u002FSuperCharged-Claude-Code-Upgrade\u002Fblob\u002Fmain\u002Fskills\u002Fskills\u002Fagent-pipeline-builder\u002FSKILL.md",[],[]]