threejs-primitive-reconstructor
Skill by jasonkneen
Generates a single-file Three.js HTML scene from a low-poly, voxel, isometric, or stylized game-art reference image. Built for developers who want browser-runnable primitive reconstructions.
Install threejs-primitive-reconstructor
Built from the published package, never by AI.
git clone --depth 1 https://github.com/jasonkneen/tiny-world-builder /tmp/tiny-world-builder && mkdir -p ~/.claude/skills && cp -r /tmp/tiny-world-builder/.codex/skills/threejs-primitive-reconstructor ~/.claude/skills/threejs-primitive-reconstructorRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install threejs-primitive-reconstructor in Claude Code
git clone --depth 1 https://github.com/jasonkneen/tiny-world-builder /tmp/tiny-world-builder && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tiny-world-builder/.codex/skills/threejs-primitive-reconstructor ~/.gemini/antigravity-cli/skills/threejs-primitive-reconstructorAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install threejs-primitive-reconstructor in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
Threejs-primitive-reconstructor is an agent skill that turns static low-poly, voxel, isometric, or stylized game-art reference images into one plain HTML file that renders a Three.js scene. The skill tells the assistant to inspect the image first, write an analysis inventory covering camera, palette, structures, nature, and atmosphere, and then build the scene only from primitive geometry such as boxes, cylinders, cones, spheres, and groups.
The generated file loads Three.js through an import map from unpkg.com and uses MeshStandardMaterial, soft shadows, and a resize listener. The skill also includes a debugging checklist for scenes that do not render, a reusable prompt reference, and an HTML starter template. It is intended for users who want quick, runnable 3D asset drafts in the browser.
Written from the project's SKILL.md and checked against it.
What it can do
- Image to Three.js sceneTurns a low-poly, voxel, isometric, or game-art image into one self-contained HTML file.
- Analysis inventoryWrites a short inventory of camera, palette, structures, nature, and atmosphere before coding.
- Primitive-only geometryBuilds the scene from box, cylinder, cone, sphere, and group primitives with MeshStandardMaterial.
- Non-rendering debuggingLists steps to fix scenes that do not render, such as removing wrappers and checking the import map.
- Reusable prompt and templateProvides reconstruction prompt wording and an HTML starter template for reuse.
- Cottage reference shortcutIncludes a built-in breakdown of elements for a cropped cottage reference image.
What you need
- A web browser to open the generated HTML file
- Python 3, for the example local server and the template copy script
Try asking
- Turn this low-poly cottage image into a single Three.js HTML scene
- Debug why my Three.js HTML output is not rendering in the browser
- Give me a reusable prompt for low-poly Three.js reconstruction
Good to know
- Uses only primitive geometry, with no external assets, textures, GLTF, OBJ, FBX, or SVG.
- Generated files should stay under roughly 500 lines unless more detail is requested.
- Loads Three.js only through the unpkg.com import map, not esm.sh or cdn.jsdelivr.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .codex/skills/threejs-primitive-reconstructor/SKILL.md, .codex/skills/threejs-primitive-reconstructor/scripts/write_scene_from_template.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md4 KB -
agents/openai.yaml206 B -
assets/threejs-scene-template.html5 KB -
references/reconstruction-prompt.md5 KB -
scripts/write_scene_from_template.py687 B
Alternatives to threejs-primitive-reconstructor
All alternatives →Antigravity Workflows guides an assistant through multi-skill workflows for shipping a SaaS MVP, auditing web app security, building AI agents, running browser QA, and designing a domain model. It is for users who want several skills combined with verified checkpoints.
Guides building end-to-end test suites with Playwright and Cypress. It is for developers who write E2E tests, debug flaky tests, or set testing standards.
Upgrades Chrome or Firefox versions in the Flutter Web Engine and Framework tests. It verifies the version, updates config files, syncs CI builder JSON and runs local tests before the CIPD upload.
Builds reliable browser checks for real web workflows using semantic locators, bounded waits, isolated test data and explicit outcome checks. It is for developers and testers writing or debugging browser tests.
Diagnoses memory leaks in the Qwen Code CLI using heap snapshots and the chrome-devtools CLI. Built for developers investigating high memory use, unbounded growth, or object retention.
Guides an assistant through using Claude in Chrome, a browser extension whose tools act in the person's real Chrome with their own sign-ins. It is for users who want the assistant to work in their browser safely.
Compare with antigravity-workflows, e2e-testing-patterns or upgrade-browser
threejs-primitive-reconstructor: common questions
Does it need external 3D models or textures?
No. The skill says not to use external assets, textures, GLTF, OBJ, FBX, SVG, or postprocessing.
What output does it produce?
It produces one self-contained .html file that loads Three.js through an import map and renders in the browser.
How do I fix a scene that does not render?
The skill says to remove React, JSX, iframe, and srcDoc wrappers, serve the file from a local server, and confirm the renderer canvas is appended to document.body.
How do I install threejs-primitive-reconstructor?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is threejs-primitive-reconstructor free?
The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.
Is threejs-primitive-reconstructor safe to use?
It scores 82 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to threejs-primitive-reconstructor?
Similar skills: antigravity-workflows, e2e-testing-patterns, upgrade-browser, browser-automation.
