
Added Nov 14, 2026
img2threejs
An agent skill that rebuilds the object in one reference image as a code-only Three.js model, for Claude Code, Codex and similar agents.
- Ecosystem
- Agent Skills
- Skill category
- Media
- Creator / organization
- img2threejs(GitHub img2threejs)
More images
Screenshot from the project's website. All rights belong to the original creator. Contact us if you would like it removed.
What it is
img2threejs is an open-source Agent Skill published by the GitHub organization img2threejs. You give it one reference image of an object or character, and it writes a TypeScript THREE.Group factory that recreates the object from primitives, procedural shaders and generated geometry as a Three.js model. It does not do photogrammetry or mesh extraction. The work runs in stages: the reference image becomes a spec, then each build pass is generated and reviewed by vision, with quality gates along the way. The output has a layered structure that is ready for animation. It runs under Hermes, Claude Code, Codex or OpenCode and uses whatever image reading or browser tools the host agent provides.
Highlights:
- Models are rebuilt purely in code and run in the browser with Three.js.
- Every stage has a quality gate and a vision review.
- The output is layered and animation-ready.
- The page says a single image cannot reveal hidden sides or guarantee exact geometry, and it states when output is approximate or stylized.
How to use:
- First, install Node.js 18 or later, Git, Python 3.10 or later, and one of Claude Code, Codex, OpenCode or Hermes.
- Then run `npx --yes img2threejs@latest install`, followed by `npx --yes img2threejs@latest doctor` to check. Hermes users need one extra linking step described on the page.
- Finally, give your agent a reference image and ask it to build the Three.js model with this skill.
Who it's for:
Frontend and 3D developers who want a coding agent to turn one object or character image into an animatable Three.js model.
Before you start:
- You need Node.js, Git, Python and one of the agents listed above.
- The page says runs spend the agent's model tokens, and the workflow is token-hungry by design.
- The img2glb plugin mentioned on the page sends images to an external hosted TRELLIS space, and the environment plugin lives in a private repository that needs GitHub authorization. The page does not say which local data is read or which system permissions are needed.