3d-model-generator-by-threejs

Installation
SKILL.md

3D Model Generator by Three.js

Generate model-specific JavaScript while keeping model construction helpers, validation, export, and review deterministic and reusable.

Workflow

  1. Choose a task output directory outside this skill.

  2. Run node scripts/init-model-task.mjs --out <task-dir> to copy the build-module template without overwriting existing work.

  3. Read references/build-contract.md. Read references/builder-api.md before using bundled builders or helpers. Read references/export-formats.md before choosing formats.

  4. Edit only <task-dir>/model-build.mjs. Export one buildModel(ctx) function and keep it deterministic.

  5. Install the pinned runtime once with npm ci --prefix scripts.

  6. Build, validate, and export:

    node scripts/build-and-export.mjs --build <task-dir>/model-build.mjs --out <task-dir> --formats glb,obj,stl
    
  7. Inspect <task-dir>/validation.json. Fix every error and evaluate warnings that affect the requested formats.

  8. Render a deterministic PNG preview of the exported artifact:

Installs
8
GitHub Stars
68
First Seen
Aug 5, 2026
3d-model-generator-by-threejs — yuki001/game-dev-skills