Skip to content
SkillModel-led6,547 tokens in use

threejs-geometry

Gives an AI coding agent current three.js r186 knowledge of built-in shapes, custom vertex buffers, 3D text, instancing, point clouds and lines.

4,322 stars on the repository MIT LicenseCloudAI-X/threejs-skills · skills/threejs-geometry
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-geometry costs

73tokens idle
6,547tokens 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 →
Good
  • Frontmatter12/15
  • Structure17/25
  • Examples15/15
  • Output5/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-geometry covers how to build and shape meshes in three.js r186. It lists the built-in geometries with their constructor arguments, shows how to create 3D text, and explains BufferGeometry with its attributes, indices, interleaved buffers and in-place updates.

It also covers edges and wireframes, point clouds, lines, merging, instancing and batching, with a WebGPU and TSL section at the end.

What You Get

  • A reference of built-in shapes with constructor arguments, from boxes and spheres to capsules, lathe, extrude and tube geometry
  • A working TextGeometry example with the font loader
  • Custom BufferGeometry recipes for positions, indices, normals, UVs and vertex colors
  • Update patterns for needsUpdate, draw ranges and recomputing normals and bounds
  • Examples for edges, wireframes and point clouds

Common Use Cases

  • Building a custom mesh from vertex arrays
  • Extruding a 2D shape into a 3D object
  • Adding extruded 3D text to a scene
  • Drawing thousands of copies of one shape cheaply with instancing
  • Rendering a point cloud or line set from data

What Makes It Unique

The skill gives constructor argument order for each built-in geometry in the example comments, and it covers the buffer details that often go wrong, such as normalized byte colors, index array sizes and fixed-size attribute buffers. It is one of thirteen skills pinned to r186 and cross-linked for materials, performance and loaders.

Under The Hood

The skill is a single SKILL.md of explanation 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. One example loads a font file from a relative path in the browser; the skill itself fetches nothing and writes no files.

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