Skip to content
Back to search

threejs-skills

SkillWorks with Claude CodeGitHub

Three.js Skills for Claude Code

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/cloudai-x-threejs-skills/badge.svg)](/listings/cloudai-x-threejs-skills)

HTML

<a href="/listings/cloudai-x-threejs-skills"><img src="/api/listings/cloudai-x-threejs-skills/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

Clone this repository into your project or copy the `.claude/skills` directory:

git clone https://github.com/pinkforest/threejs-playground.git

Or add as a submodule:

git submodule add https://github.com/pinkforest/threejs-playground.git

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 100 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.

  1. # Three.js Skills for Claude Code
  2. Skill files that give Claude Code current, verified knowledge of three.js, so the code it writes runs on the release you actually install.
  3. The skills target **three.js r186** (`three@0.186`), React Three Fiber 9.8 with drei 10.7, and gltf-transform 4.5. Rendering examples use `WebGLRenderer`, directly or through React Three Fiber; the WebGPU and TSL section in every skill covers `WebGPURenderer`.
  4. ## Why
  5. Claude Code knows three.js from its training data, which mixes many releases. A lot changed between r160 and r186: `RGBELoader` became `HDRLoader`, `Clock` gave way to `Timer`, `PostProcessing` became `RenderPipeline`, WebGL 1 support is gone, and the three.js docs now tell LLMs to use `WebGPURenderer` with TSL for custom shaders and materials. These skills give Claude Code the current API, working examples, and a Common Mistakes list of the outdated patterns models still reach for.
  6. ## Installation
  7. With the [skills](https://skills.sh) CLI:
  8. ```bash
  9. npx skills add cloudai-x/threejs-skills
  10. ```
  11. Or manually. Claude Code loads skills from `~/.claude/skills/` (all your projects) or `.claude/skills/` (one project):
  12. ```bash
  13. git clone https://github.com/CloudAI-X/threejs-skills.git
  14. # all your projects
  15. mkdir -p ~/.claude/skills && cp -r threejs-skills/skills/* ~/.claude/skills/
  16. # or one project (run from the project root)
  17. mkdir -p .claude/skills && cp -r threejs-skills/skills/* .claude/skills/
  18. ```
  19. ## Skills Included
  20. | Skill | Covers |
  21. | -------------------------- | ------------------------------------------------------------------------------- |
  22. | **threejs-fundamentals** | Scene, cameras, renderer setup, animation loop, object hierarchy, transforms |
  23. | **threejs-geometry** | Built-in shapes, BufferGeometry, merging, instancing, BatchedMesh, points, lines |
  24. | **threejs-materials** | Material types, PBR, blending, stencil, recompiles, node materials |
  25. | **threejs-lighting** | Light types and physical units, shadows, HDR environments, light probes |
  26. | **threejs-textures** | Loading, color spaces, UV channels, texture types, render targets, memory |
  27. | **threejs-animation** | Keyframes, the animation mixer, skeletal and morph animation, blending |
  28. | **threejs-loaders** | glTF with Draco, meshopt and KTX2, other formats, HDR, progress, disposal |
  29. | **threejs-shaders** | ShaderMaterial and RawShaderMaterial, shader chunks, TSL and node materials |
  30. | **threejs-postprocessing** | EffectComposer, built-in renderer effects, the WebGPU RenderPipeline |
  31. | **threejs-interaction** | Raycasting, camera controls, transform gizmos, drag and box selection |
  32. | **threejs-performance** | Measuring frame cost, draw calls, GPU memory, fill rate, compile stalls |
  33. | **threejs-react-three-fiber** | React Three Fiber 9 and a verified set of drei helpers, on WebGL or WebGPU |
  34. | **threejs-asset-pipeline** | gltf-transform: Draco, meshopt, KTX2, WebP, and the matching loader setup |
  35. ## How It Works
  36. Claude Code loads a skill when your request matches its description. When you ask it to:
  37. - create a 3D scene → `threejs-fundamentals`
  38. - add lights and shadows → `threejs-lighting`
  39. - load a glTF model → `threejs-loaders`
  40. - write a custom shader or screen effect → `threejs-shaders` and `threejs-postprocessing`
  41. - make a slow scene faster → `threejs-performance`
  42. - build the scene with React → `threejs-react-three-fiber`
  43. - shrink a glTF before shipping it → `threejs-asset-pipeline`
  44. ## Skill File Structure
  45. Every skill follows the same layout:
  46. ```markdown
  47. ---
  48. name: threejs-<topic>
  49. description: "What the skill covers. Use when ..."
  50. ---
  51. # Three.js <Topic>
  52. Targets three.js r186. Examples use WebGLRenderer; the WebGPU and TSL section uses WebGPURenderer.
  53. ## Quick Start a complete, runnable example
  54. ## <topic sections> the API with working examples
  55. ## WebGPU and TSL the same topic under WebGPURenderer
  56. ## Common Mistakes outdated or wrong code → the r186 fix, with the reason
  57. ## See Also related skills
  58. ```
  59. ## Verification
  60. The skills were checked against the published `three@0.186.1` package and the official Migration Guide, and against `@react-three/fiber@9.8.2`, `@react-three/drei@10.7.9`, `@gltf-transform/cli@4.5.1` and `gltfjsx@6.5.3` where they apply:
  61. - every three.js, React Three Fiber, drei and gltf-transform import path, and every `THREE.*` class used in an example, exists in its package
  62. - every JavaScript block parses as an ES module
  63. - shader chunk names exist, and no removed or renamed API appears in example code
  64. - every gltf-transform command and flag exists in the CLI, and every React Three Fiber element maps to a three.js class
  65. - every skill was reviewed against the library source, with rendering, timing and shader claims measured where possible
  66. If you find something that is wrong on the current release, please open an issue with the skill name, the line and the three.js version you use.
  67. ## License
  68. MIT, see [LICENSE](LICENSE).
  69. ## Acknowledgments
  70. - [Three.js](https://threejs.org/) - the 3D library these skills document

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.