← ClaudeAtlas

3d-model-generator-by-threejslisted

Generate procedural 3D models from natural-language requests by writing a constrained buildModel(ctx) module that uses Three.js, bundled builders and helpers, deterministic validation and export scripts, PNG previews, and optional browser visual review. Use when needs to create, revise, export, or visually audit programmatic 3D assets in GLB, glTF, OBJ, or STL without Blender or another DCC tool.
Yuki001/game-dev-skills · ★ 65 · AI & Automation · score 72
Install: claude install-skill Yuki001/game-dev-skills
# 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: ```text 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: ```text node scripts/render-preview.mjs --model <task-dir>/model.glb --out <task-dir>/preview.png --views iso,front,top ``` Read `references/preview-rendering.md` for supported formats, views, and rendering limitations. 9. When interactive visual review is useful, run: ```text node scripts/serve-viewer.mjs --artifact-dir <task-dir> --model model.glb ``` Open the printed local URL with an available browser tool.