threejs-node-tsl
$
npx mdskill add partme-ai/full-stack-skills/threejs-node-tslEnables node-based shader authoring and WebGPU pipelines in three.js, using TSL and NodeMaterial for graph-based workflows.
- Helps developers create materials and post-processing effects via visual graphs instead of writing raw GLSL code.
- Integrates with three.js Nodes API, TSL builtins, WebGPURenderer, and core PostProcessing class for modern rendering.
- Recommends usage based on mentions of NodeMaterial, TSL, WebGPU, or node-centric pipelines in user queries.
- Surfaces relevant documentation and guidance for node-based workflows, distinguishing from classic GLSL or EffectComposer approaches.
SKILL.md
.github/skills/threejs-node-tslView on GitHub ↗
--- name: threejs-node-tsl description: "three.js node-based shading: Nodes API surface, NodeMaterial and MeshStandardNodeMaterial-style families, TSL (Three.js Shading Language) entry at TSL.html, WebGPURenderer pairing, and core PostProcessing (class) versus addon EffectComposer at a high level. Use when authoring shaders as graphs, using TSL builtins, compute-oriented nodes, or modern WebGPU pipelines; for classic ShaderMaterial GLSL use threejs-materials; for stock EffectComposer passes use threejs-postprocessing; for WebGLRenderer-only tuning use threejs-renderers." --- ## When to use this skill **ALWAYS use this skill when the user mentions:** - `NodeMaterial`, `TSL`, imports from `three/nodes` or WebGPU entry points in docs - Building materials or post effects from nodes instead of string GLSL - `WebGPURenderer`, `PostProcessing` (core class) in a node-centric pipeline **IMPORTANT: node-tsl vs materials vs postprocessing** | Situation | Skill | |-----------|--------| | Standard PBR tuning, no nodes | **threejs-materials** | | TSL graph, NodeMaterial, WGSL path | **threejs-node-tsl** | | Classic `EffectComposer` + Pass classes | **threejs-postprocessing** | | Node post passes listed under Addons TSL in docs | **threejs-node-tsl** + **threejs-postprocessing** awareness | **Trigger phrases include:** - "TSL", "NodeMaterial", "three/nodes", "WebGPU", "node builder" - "节点材质", "着色语言 TSL" ## How to use this skill 1. **Decide path**: WebGPU + nodes vs WebGL + classic materials—do not hybridize blindly. 2. **Anchor docs**: start from [Nodes index](https://threejs.org/docs/#Nodes) and [TSL.html](https://threejs.org/docs/TSL.html); use [NodeMaterial](https://threejs.org/docs/NodeMaterial.html) for material entry. 3. **Progressive disclosure**: keep SKILL.md navigational; long symbol lists live in [references/official-links.md](references/official-links.md) and [references/tsl-vs-classic.md](references/tsl-vs-classic.md); see [examples/workflow-tsl-entry.md](examples/workflow-tsl-entry.md) for navigation habits. 4. **Renderer**: enable `WebGPURenderer` per docs; fall back notes belong in **threejs-renderers**. 5. **Debugging**: use version-stamped examples in three.js repo; avoid copying deprecated import paths. 6. **Post stack**: if user names `PostProcessing` core class vs addon composer, clarify table in **threejs-renderers** / **threejs-postprocessing**. ## Doc map (official) | Docs section | Representative links | |--------------|----------------------| | Nodes | https://threejs.org/docs/#Nodes | | TSL | https://threejs.org/docs/TSL.html | | NodeMaterial | https://threejs.org/docs/NodeMaterial.html | | WebGPU renderer | https://threejs.org/docs/WebGPURenderer.html | ## Scope - **In scope:** Nodes/TSL discovery, architecture, renderer pairing, where to look next, migration hints from ShaderMaterial. - **Out of scope:** Pasting entire TSL symbol tables into SKILL.md; guaranteeing API stability across rapid releases—always cite "current docs". ## Common pitfalls and best practices - Three.js node APIs evolve quickly—tie answers to a **version** or "current docs". - Do not confuse **core** `PostProcessing` class with **addons** `EffectComposer`—names collide in conversation. - WGSL vs GLSL expectations differ; TSL abstracts but limits still apply. - Keep graphs modular; use references for lookup instead of bloating agent context. ## Documentation and version The [Nodes](https://threejs.org/docs/#Nodes) index and [TSL](https://threejs.org/docs/TSL.html) page are large and **fast-moving**. Treat https://threejs.org/docs/ as the source of truth for the user’s installed three.js; prefer linking [NodeMaterial](https://threejs.org/docs/NodeMaterial.html) and [WebGPURenderer](https://threejs.org/docs/WebGPURenderer.html) over paraphrasing long symbol lists. ## Agent response checklist When answering under this skill, prefer responses that: 1. Anchor on [TSL.html](https://threejs.org/docs/TSL.html) and/or `#Nodes` rather than inventing API names. 2. Contrast **threejs-materials** (classic) vs node/TSL path explicitly. 3. Warn that WebGPU + nodes examples may require recent minors—cite version when known. 4. Point to [references/tsl-vs-classic.md](references/tsl-vs-classic.md) and [references/official-links.md](references/official-links.md) for long lookups. 5. Disambiguate core `PostProcessing` vs addon `EffectComposer` (**threejs-postprocessing**). ## References - https://threejs.org/docs/#Nodes - https://threejs.org/docs/TSL.html - https://threejs.org/docs/NodeMaterial.html - https://threejs.org/docs/WebGPURenderer.html ## Keywords **English:** tsl, node material, nodes, webgpu, wgsl, three.js shading language, node builder, nodematerial **中文:** TSL、节点材质、WebGPU、着色语言、NodeMaterial、three.js
More from partme-ai/full-stack-skills
- adobe-xd"Guides creation of UI/UX designs, interactive prototypes, reusable components, and design specs in Adobe XD. Use when the user asks about Adobe XD artboards, prototype links, repeat grids, component states, design tokens export, or developer handoff."
- angular"Provides comprehensive guidance for Angular framework including components, modules, services, dependency injection, routing, forms, and TypeScript integration. Use when the user asks about Angular, needs to create Angular applications, implement Angular components, or work with Angular features."
- ansible"Provides comprehensive guidance for Ansible automation including playbooks, roles, inventory, and module usage. Use when the user asks about Ansible, needs to automate IT tasks, create Ansible playbooks, or manage infrastructure with Ansible."
- ant-design-mini"Builds mini-program UIs with Ant Design Mini components for Alipay and WeChat mini-programs. Covers Button, Form, List, Modal, Tabs, NavBar, and 60+ components with theme customization and CSS variable theming. Use when the user needs to create mini-program interfaces with Ant Design Mini, configure themes, or implement mini-program-specific UI patterns."
- ant-design-mobile"Builds React mobile UIs with Ant Design Mobile (antd-mobile) components including Button, Form, List, Modal, Picker, Tabs, PullToRefresh, InfiniteScroll, and 50+ mobile-optimized components. Use when the user needs to create mobile-first React interfaces, implement mobile navigation, forms, or data display with Ant Design Mobile."
- ant-design-react"Builds enterprise React UIs with Ant Design (antd) including 60+ components (Button, Form, Table, Select, Modal, Message), design tokens, TypeScript support, and ConfigProvider theming. Use when the user needs to create React applications with Ant Design, build forms with validation, display data tables, or customize the Ant Design theme."
- ant-design-vueProvides comprehensive guidance for Ant Design Vue (AntDV) component library for Vue 3. Covers installation, usage, API reference, templates, and all component categories. Use when building enterprise-class UI with Vue 3 and Ant Design.
- api-doc-generator"Generate API documentation by scanning Controller classes, extracting endpoint URLs, HTTP methods, parameters, and response structures, then producing standardized docs from templates. Use when the user explicitly mentions generating API documentation, creating API docs, scanning interfaces, or documenting REST APIs. Do not trigger for generic documentation requests without explicit API mention."
- appium"Provides comprehensive guidance for Appium mobile testing including mobile app automation, element location, gestures, and cross-platform testing. Use when the user asks about Appium, needs to test mobile applications, automate mobile apps, or write Appium test scripts."
- ascii-ansi-colorizer"Add an ANSI color layer to existing ASCII/plain-text output (gradient/rainbow/highlights) with alignment-safe rules and a required no-color fallback. Use when the user wants to colorize terminal output, add rainbow effects to CLI text, or style ASCII art with ANSI colors."