[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M732609EPJWV13PVTX3GT4TM":3,"skill-same:01M732609EPJWV13PVTX3GT4TM":111},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M732609EPJWV13PVTX3GT4TM","webgpu-threejs-tsl",null,"Comprehensive guide for developing WebGPU-enabled Three.js applications using TSL (Three.js Shading Language). Covers WebGPU renderer setup, TSL syntax and node materials, compute shaders, post-processing effects, and WGSL integration. Use this skill when working with Three.js WebGPU, TSL shaders, node materials, or GPU compute in Three.js.","SriramGandhiS\u002FSkills","SriramGandhiS","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F211849986?v=4","01M72WQCW12BYX71C6WN584TTA","Sriram S","01M72WQCWTJ2RD0ET1X31AF1RC",1,"MIT","https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fwebgpu-threejs-tsl\u002Fskills\u002Fwebgpu-threejs-tsl\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: webgpu-threejs-tsl\ndescription: Comprehensive guide for developing WebGPU-enabled Three.js applications using TSL (Three.js Shading Language). Covers WebGPU renderer setup, TSL syntax and node materials, compute shaders, post-processing effects, and WGSL integration. Use this skill when working with Three.js WebGPU, TSL shaders, node materials, or GPU compute in Three.js.\n---\n\n# WebGPU Three.js with TSL\n\nTSL (Three.js Shading Language) is a node-based shader abstraction that lets you write GPU shaders in JavaScript instead of GLSL\u002FWGSL strings.\n\n## Quick Start\n\n```javascript\nimport * as THREE from 'three\u002Fwebgpu';\nimport { color, time, oscSine } from 'three\u002Ftsl';\n\nconst renderer = new THREE.WebGPURenderer();\nawait renderer.init();\n\nconst material = new THREE.MeshStandardNodeMaterial();\nmaterial.colorNode = color(0xff0000).mul(oscSine(time));\n```\n\n## Skill Contents\n\n### Documentation\n- `docs\u002Fcore-concepts.md` - Types, operators, uniforms, control flow\n- `docs\u002Fmaterials.md` - Node materials and all properties\n- `docs\u002Fcompute-shaders.md` - GPU compute with instanced arrays\n- `docs\u002Fpost-processing.md` - Built-in and custom effects\n- `docs\u002Fwgsl-integration.md` - Custom WGSL functions\n- `docs\u002Fdevice-loss.md` - Handling GPU device loss and recovery\n- `docs\u002Flimits-and-features.md` - WebGPU device limits and optional features\n\n### Examples\n- `examples\u002Fbasic-setup.js` - Minimal WebGPU project\n- `examples\u002Fcustom-material.js` - Custom shader material\n- `examples\u002Fparticle-system.js` - GPU compute particles\n- `examples\u002Fpost-processing.js` - Effect pipeline\n- `examples\u002Fearth-shader.js` - Complete Earth with atmosphere\n\n### Templates\n- `templates\u002Fwebgpu-project.js` - Starter project template\n- `templates\u002Fcompute-shader.js` - Compute shader template\n\n### Reference\n- `REFERENCE.md` - Quick reference cheatsheet\n\n## Key Concepts\n\n### Import Pattern\n```javascript\n\u002F\u002F Always use the WebGPU entry point\nimport * as THREE from 'three\u002Fwebgpu';\nimport { \u002F* TSL functions *\u002F } from 'three\u002Ftsl';\n```\n\n### Node Materials\nReplace standard material properties with TSL nodes:\n```javascript\nmaterial.colorNode = texture(map);        \u002F\u002F instead of material.map\nmaterial.roughnessNode = float(0.5);      \u002F\u002F instead of material.roughness\nmaterial.positionNode = displaced;         \u002F\u002F vertex displacement\n```\n\n### Method Chaining\nTSL uses method chaining for operations:\n```javascript\n\u002F\u002F Instead of: sin(time * 2.0 + offset) * 0.5 + 0.5\ntime.mul(2.0).add(offset).sin().mul(0.5).add(0.5)\n```\n\n### Custom Functions\nUse `Fn()` for reusable shader logic:\n```javascript\nconst fresnel = Fn(([power = 2.0]) => {\n  const nDotV = normalWorld.dot(viewDir).saturate();\n  return float(1.0).sub(nDotV).pow(power);\n});\n```\n\n## When to Use This Skill\n\n- Setting up Three.js with WebGPU renderer\n- Creating custom shader materials with TSL\n- Writing GPU compute shaders\n- Building post-processing pipelines\n- Migrating from GLSL to TSL\n- Implementing visual effects (particles, water, terrain, etc.)\n\n## Resources\n\n- [Three.js TSL Wiki](https:\u002F\u002Fgithub.com\u002Fmrdoob\u002Fthree.js\u002Fwiki\u002FThree.js-Shading-Language)\n- [WebGPU Examples](https:\u002F\u002Fgithub.com\u002Fmrdoob\u002Fthree.js\u002Ftree\u002Fmaster\u002Fexamples) (files prefixed with `webgpu_`)\n","# WebGPU Three.js with TSL\n\nTSL (Three.js Shading Language) is a node-based shader abstraction that lets you write GPU shaders in JavaScript instead of GLSL\u002FWGSL strings.\n\n## Quick Start\n\n```javascript\nimport * as THREE from 'three\u002Fwebgpu';\nimport { color, time, oscSine } from 'three\u002Ftsl';\n\nconst renderer = new THREE.WebGPURenderer();\nawait renderer.init();\n\nconst material = new THREE.MeshStandardNodeMaterial();\nmaterial.colorNode = color(0xff0000).mul(oscSine(time));\n```\n\n## Skill Contents\n\n### Documentation\n- `docs\u002Fcore-concepts.md` - Types, operators, uniforms, control flow\n- `docs\u002Fmaterials.md` - Node materials and all properties\n- `docs\u002Fcompute-shaders.md` - GPU compute with instanced arrays\n- `docs\u002Fpost-processing.md` - Built-in and custom effects\n- `docs\u002Fwgsl-integration.md` - Custom WGSL functions\n- `docs\u002Fdevice-loss.md` - Handling GPU device loss and recovery\n- `docs\u002Flimits-and-features.md` - WebGPU device limits and optional features\n\n### Examples\n- `examples\u002Fbasic-setup.js` - Minimal WebGPU project\n- `examples\u002Fcustom-material.js` - Custom shader material\n- `examples\u002Fparticle-system.js` - GPU compute particles\n- `examples\u002Fpost-processing.js` - Effect pipeline\n- `examples\u002Fearth-shader.js` - Complete Earth with atmosphere\n\n### Templates\n- `templates\u002Fwebgpu-project.js` - Starter project template\n- `templates\u002Fcompute-shader.js` - Compute shader template\n\n### Reference\n- `REFERENCE.md` - Quick reference cheatsheet\n\n## Key Concepts\n\n### Import Pattern\n```javascript\n\u002F\u002F Always use the WebGPU entry point\nimport * as THREE from 'three\u002Fwebgpu';\nimport { \u002F* TSL functions *\u002F } from 'three\u002Ftsl';\n```\n\n### Node Materials\nReplace standard material properties with TSL nodes:\n```javascript\nmaterial.colorNode = texture(map);        \u002F\u002F instead of material.map\nmaterial.roughnessNode = float(0.5);      \u002F\u002F instead of material.roughness\nmaterial.positionNode = displaced;         \u002F\u002F vertex displacement\n```\n\n### Method Chaining\nTSL uses method chaining for operations:\n```javascript\n\u002F\u002F Instead of: sin(time * 2.0 + offset) * 0.5 + 0.5\ntime.mul(2.0).add(offset).sin().mul(0.5).add(0.5)\n```\n\n### Custom Functions\nUse `Fn()` for reusable shader logic:\n```javascript\nconst fresnel = Fn(([power = 2.0]) => {\n  const nDotV = normalWorld.dot(viewDir).saturate();\n  return float(1.0).sub(nDotV).pow(power);\n});\n```\n\n## When to Use This Skill\n\n- Setting up Three.js with WebGPU renderer\n- Creating custom shader materials with TSL\n- Writing GPU compute shaders\n- Building post-processing pipelines\n- Migrating from GLSL to TSL\n- Implementing visual effects (particles, water, terrain, etc.)\n\n## Resources\n\n- [Three.js TSL Wiki](https:\u002F\u002Fgithub.com\u002Fmrdoob\u002Fthree.js\u002Fwiki\u002FThree.js-Shading-Language)\n- [WebGPU Examples](https:\u002F\u002Fgithub.com\u002Fmrdoob\u002Fthree.js\u002Ftree\u002Fmaster\u002Fexamples) (files prefixed with `webgpu_`)\n",{"name":5,"description":7},"master","d6ca01da0f24a3b0e26e4a8b7b66cbd25d429f5d","webgpu-threejs-tsl\u002Fskills\u002Fwebgpu-threejs-tsl",0,"https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills","https:\u002F\u002Fgithub.com\u002FSriramGandhiS","https:\u002F\u002Fsriram.website\u002F","Curious guy who keeps tinkering until something works","2026-05-20 16:21:34",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add SriramGandhiS\u002FSkills --skill webgpu-threejs-tsl",{"tool":39,"command":40},"bunx","bunx skills add SriramGandhiS\u002FSkills --skill webgpu-threejs-tsl",{"tool":42,"command":43},"pnpm","pnpm dlx skills add SriramGandhiS\u002FSkills --skill webgpu-threejs-tsl","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fwebgpu-threejs-tsl\u002Fskills\u002Fwebgpu-threejs-tsl\u002FSKILL.md",true,[47,53,57,61,65,69,73,77,83,87,91,95,99,103,107],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"docs\u002Fcompute-shaders.md","REFERENCE","参考文档",15640,"https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fwebgpu-threejs-tsl\u002Fskills\u002Fwebgpu-threejs-tsl\u002Fdocs\u002Fcompute-shaders.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"docs\u002Fcore-concepts.md",10969,"https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fwebgpu-threejs-tsl\u002Fskills\u002Fwebgpu-threejs-tsl\u002Fdocs\u002Fcore-concepts.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"docs\u002Fdevice-loss.md",9198,"https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fwebgpu-threejs-tsl\u002Fskills\u002Fwebgpu-threejs-tsl\u002Fdocs\u002Fdevice-loss.md",{"path":62,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":63,"sourceHtmlUrl":64},"docs\u002Flimits-and-features.md",5017,"https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fwebgpu-threejs-tsl\u002Fskills\u002Fwebgpu-threejs-tsl\u002Fdocs\u002Flimits-and-features.md",{"path":66,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":67,"sourceHtmlUrl":68},"docs\u002Fmaterials.md",8786,"https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fwebgpu-threejs-tsl\u002Fskills\u002Fwebgpu-threejs-tsl\u002Fdocs\u002Fmaterials.md",{"path":70,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":71,"sourceHtmlUrl":72},"docs\u002Fpost-processing.md",13299,"https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fwebgpu-threejs-tsl\u002Fskills\u002Fwebgpu-threejs-tsl\u002Fdocs\u002Fpost-processing.md",{"path":74,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":75,"sourceHtmlUrl":76},"docs\u002Fwgsl-integration.md",6592,"https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fwebgpu-threejs-tsl\u002Fskills\u002Fwebgpu-threejs-tsl\u002Fdocs\u002Fwgsl-integration.md",{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"examples\u002Fbasic-setup.js","SCRIPT","脚本",2279,"https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fwebgpu-threejs-tsl\u002Fskills\u002Fwebgpu-threejs-tsl\u002Fexamples\u002Fbasic-setup.js",{"path":84,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":85,"sourceHtmlUrl":86},"examples\u002Fcustom-material.js",4251,"https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fwebgpu-threejs-tsl\u002Fskills\u002Fwebgpu-threejs-tsl\u002Fexamples\u002Fcustom-material.js",{"path":88,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":89,"sourceHtmlUrl":90},"examples\u002Fearth-shader.js",8568,"https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fwebgpu-threejs-tsl\u002Fskills\u002Fwebgpu-threejs-tsl\u002Fexamples\u002Fearth-shader.js",{"path":92,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":93,"sourceHtmlUrl":94},"examples\u002Fparticle-system.js",7338,"https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fwebgpu-threejs-tsl\u002Fskills\u002Fwebgpu-threejs-tsl\u002Fexamples\u002Fparticle-system.js",{"path":96,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":97,"sourceHtmlUrl":98},"examples\u002Fpost-processing.js",5201,"https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fwebgpu-threejs-tsl\u002Fskills\u002Fwebgpu-threejs-tsl\u002Fexamples\u002Fpost-processing.js",{"path":100,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":101,"sourceHtmlUrl":102},"REFERENCE.md",9053,"https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fwebgpu-threejs-tsl\u002Fskills\u002Fwebgpu-threejs-tsl\u002FREFERENCE.md",{"path":104,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":105,"sourceHtmlUrl":106},"templates\u002Fcompute-shader.js",9473,"https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fwebgpu-threejs-tsl\u002Fskills\u002Fwebgpu-threejs-tsl\u002Ftemplates\u002Fcompute-shader.js",{"path":108,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":109,"sourceHtmlUrl":110},"templates\u002Fwebgpu-project.js",6319,"https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fwebgpu-threejs-tsl\u002Fskills\u002Fwebgpu-threejs-tsl\u002Ftemplates\u002Fwebgpu-project.js",[112,117,123,130,137,144],{"skillNo":113,"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":114,"categories":115,"keywords":116,"publishedAt":19},"01M7325XM47AGWB6K6C4VXKE6B","https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fwebgpu-threejs-tsl\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":19},"01M7325WP6DES69JKC840VMFEP","verification-loop","https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fweb-assets\u002Fdocs\u002Fzh-TW\u002Fskills\u002Fverification-loop\u002FSKILL.md",[],[],{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":19},"01M7325TFQF1DZTQ6J3WGQQ1VR","tdd-workflow","Use this skill when writing new features, fixing bugs, or refactoring code. Enforces test-driven development with 80%+ coverage including unit, integration, and E2E tests.","https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fweb-assets\u002Fdocs\u002Fzh-TW\u002Fskills\u002Ftdd-workflow\u002FSKILL.md",[],[],{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":19},"01M7325RGV9AY9PK92D2V8KKPW","strategic-compact","Suggests manual context compaction at logical intervals to preserve context through task phases rather than arbitrary auto-compaction.","https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fweb-assets\u002Fdocs\u002Fzh-TW\u002Fskills\u002Fstrategic-compact\u002FSKILL.md",[],[],{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":19},"01M7325MZC28SE86E7NMCNEFS4","security-review","Use this skill when adding authentication, handling user input, working with secrets, creating API endpoints, or implementing payment\u002Fsensitive features. Provides comprehensive security checklist and patterns.","https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fweb-assets\u002Fdocs\u002Fzh-TW\u002Fskills\u002Fsecurity-review\u002FSKILL.md",[],[],{"skillNo":145,"name":146,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":147,"categories":148,"keywords":149,"publishedAt":19},"01M7325K6R8BQQBYXJ0KR00NA3","project-guidelines-example","https:\u002F\u002Fgithub.com\u002FSriramGandhiS\u002FSkills\u002Fblob\u002Fmaster\u002Fweb-assets\u002Fdocs\u002Fzh-TW\u002Fskills\u002Fproject-guidelines-example\u002FSKILL.md",[],[]]