threejs-primitive-reconstructor
Installation
SKILL.md
Three.js Primitive Reconstructor
Core workflow
Use this skill to generate a reliable single-file Three.js HTML scene from a low-poly, voxel, isometric, or stylized 3D reference image.
- Inspect the reference image visually before coding.
- Produce a short analysis inventory in the response and include the same inventory as a comment block at the top of the script.
- Generate one plain
.htmlfile, not React, JSX, iframe, orsrcDoc. - Use only primitive geometry:
BoxGeometry,CylinderGeometry,ConeGeometry,SphereGeometry,Group, andMeshStandardMaterial. - Use the import-map loading pattern from
assets/threejs-scene-template.html. - Keep objects aligned to integer or half-integer tile coordinates when reconstructing grid-based scenes.
- Add soft shadows, matte materials, and an immediate camera view where the asset is visible without user adjustment.
- When the user reports a loading or rendering error, first replace CDN/import patterns and wrappers with the robust plain HTML template in
assets/threejs-scene-template.html.
Required analysis inventory
Before the code, summarize: