Skip to content
SkillModel-led6,729 tokens in use

threejs-materials

Gives an AI coding agent current three.js r186 knowledge of choosing and configuring materials, from unlit and PBR to toon, plus WebGPU node materials.

4,322 stars on the repository MIT LicenseCloudAI-X/threejs-skills · skills/threejs-materials
npx skills add cloudai-x/threejs-skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing threejs-materials costs

60tokens idle
6,729tokens in use

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

Nothing detected: no shell, network, file writes, git or credentials in its files.

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Excellent
  • Frontmatter12/15
  • Structure25/25
  • Examples15/15
  • Output10/15
  • Size11/15
  • Resources10/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent

No findings.

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Fair
  • Development activity68
  • Maintenance40
  • Community52
  • Maturity32
  • Momentum40

threejs-materials helps an agent pick and tune the right three.js material. It tabulates the material types with their use case and lighting model, including basic, Lambert, Phong, standard and physical PBR, toon, matcap, shadow, points and line materials, and ShaderMaterial for custom GLSL.

It also covers shared properties such as blending and stencil, how materials respond to environments, and the node-material and TSL equivalents under WebGPU.

What You Get

  • A quick start with MeshStandardMaterial, roughness and metalness
  • A table of material types, use cases and lighting models
  • Notes on color space for color textures versus data textures
  • Coverage of blending, stencil and other shared material properties
  • The WebGPU node-material and TSL equivalents

Common Use Cases

  • Choosing between standard, physical and toon materials
  • Making a mesh look like metal, plastic or glass
  • Using matcap for a lit look with no lights
  • Showing only shadows on a transparent ground plane
  • Moving a material setup to WebGPU node materials

What Makes It Unique

A single table covers every built-in material, including less obvious ones such as ShadowMaterial and MeshMatcapMaterial, and it states which ones need lights. It also covers the node-material path that the three.js docs now recommend for custom materials on WebGPU. It is one of thirteen skills pinned to r186.

Under The Hood

The skill is a single SKILL.md of explanation, a table and JavaScript examples, with no scripts, and it tells the agent to run no commands. The agent reads it and writes three.js code into your project. It fetches nothing and writes no files itself.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers