Skip to content
skillcellar
All skills

img2threejs

Design

Rebuilds the object in one reference image as a code-only, animation-ready Three.js model, with quality gates.

Stars22.6k
Forks1.9k
Watchers75
Open issues129
LicenseApache-2.0
Last push3 days ago

Install

install

$ npx --yes img2threejs@latest install

Update

update

$ npx --yes img2threejs@latest update --host claude

Run npx --yes img2threejs@latest doctor first to see how each agent is linked. Needs Node 18+, Git and Python 3.10+.

When to use it

  • You have one reference picture of an object or character and want a procedural Three.js model, not a mesh download
  • The model must be animation-ready, with pivots and sockets
  • You want detail accuracy enforced by gates rather than a one-shot guess

Commands & flags

npx --yes img2threejs@latest install
Link the skill into every agent it finds; restart your agent afterwards.
npx --yes img2threejs@latest doctor
One line per agent; "managed" means installed.
npx --yes img2threejs@latest update --host claude
Update the Claude Code install.
Rebuild the object in this image as a Three.js model
Runs the staged reconstruction with render checks against the reference.

How to use it

Install, restart the agent, then ask for a reconstruction from an image:

npx --yes img2threejs@latest install
npx --yes img2threejs@latest doctor

The result is a TypeScript factory returning a THREE.Group, built from primitives and procedural shaders. Python scripts do the heavy lifting; the agent judges visual quality against the reference. Optional plugins (character, GLB conversion and others) come from a separate img2 harness; do not install them by default.

It is reconstruction by code: for photogrammetry or an exact mesh, use another tool.

Why it earns its place

Image-to-3D usually means a downloaded or generated mesh you cannot edit. This produces readable code you can change, animate and ship at small size, and its gates stop the agent from declaring a model done before it matches the reference.

Try it

claude

> Rebuild the guitar in reference.png as a Three.js model with a pivot at the neck