img2threejs
/img2threejs
An Agent Skill that rebuilds the object or character in a reference image as a code-only, animation-ready Three.js model, checked pass by pass.
- License
- Apache-2.0
- By
- By GameSkill
Tested by GameSkill
17/17 checks passed on Three.js procedural factory (Python 3.13 forge) (2026-10-28): trigger, a runnable example, a screenshot and self-check, one job per skill, and English + Chinese docs. Trigger checks match prompts against skill descriptions; they are not a live agent run.
Test reportWhat this skill does
What the AI learns
Rebuild the object or character in one reference image as procedural Three.js code, pass by pass, with vision review and Python quality gates.
When it triggers
When you invoke /img2threejs in Claude Code, or ask another agent to use the installed img2threejs skill with a reference image.
Example result
A TypeScript THREE.Group factory built from primitives and procedural shaders, with pivots, sockets and colliders so it is ready to animate.
GameSkill's tested copy
GameSkill's tuned build of this skill: the skill files from commit 3e7099e1b7fe, plus our runnable example, test report, self-check list and Chinese guide, put through our skill process.
License: based on img2threejs/img2threejs by img2threejs, under Apache-2.0. The ZIP keeps the license files (LICENSE) and lists everything GameSkill added in CHANGES.md.

Self-check
- 先做 pre-spec 评估,再写 ObjectSculptSpec / Do the pre-spec assessment before writing the ObjectSculptSpec
- 规格过不了 strict-quality 就不生成代码 / No code is generated until the spec passes strict-quality
- 模型完全用代码搭,不用下载的模型或摄影测量 / The model is built in code only, never from downloaded meshes or photogrammetry
- 每一轮都对照参考图截图复查 / Each pass is reviewed against the reference image with a capture
- 要导出别的格式时用 --target,导出前模型已经建好 / Export to other formats with --target only after the model is built
Install
Tell your AI
Install the skill from https://gameskill.dev/skills/img2threejs/install.md
GameSkill's tested copy
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/img2threejs.zip -o /tmp/gameskill-img2threejs.zip
unzip -oq /tmp/gameskill-img2threejs.zip -d .claude/skills
rm /tmp/gameskill-img2threejs.zipHow to use
/img2threejs Rebuild the object in ./reference.png as a procedural Three.js model.
Keep its proportions, silhouette and colours. Follow the quality gates.
Report the output files, render-review evidence and any inferred regions.Use img2threejs with the installed character plugin and ./reference.png.
Follow the animated-character profile. Do not claim animation readiness until its rig gates pass.Use img2threejs with the installed cs2 domain and ./reference.png.
Follow the cs2 profile and its family-specific reconstruction and review gates.What you should get (per the author's docs)
The agent validates the image, writes an assessment and spec, generates the factory pass by pass and reviews rendered comparisons. The README says it states plainly when a result is approximate or stylized, and that characters are stylized reconstructions, not photoreal likenesses. The last two prompts need the optional plugins.
What you get
- A staged pipeline: blockout → structural → form → material → surface → lighting → interaction → optimization
- A vision review after each pass and Python gates that block weak results
- Separate tracks for objects and characters
- Resumable state (forge/state.py and forge/next.py)
Good fit
- Game props, vehicles and stylized characters for Three.js games without mesh files
- Animation-ready models made from primitives and procedural shaders
Not for
- Photogrammetry or exact mesh extraction: it rebuilds the object in code
- Guaranteed likeness from one photo: the README reports per-region confidence and asks for more views
About this skill
img2threejs is a single agent skill with a narrow job: take a reference image and rebuild the subject as a procedural Three.js model. It does not use photogrammetry or downloaded art packs. The live gallery at img2threejs.io shows every result running as generated code in the browser.
The skill first turns the image into a spec, then builds the model in eight passes. Deterministic Python scripts handle validation and gating, so model tokens go only to visual review and code. The authors describe this as token-efficient image-to-3D. Characters go through a separate anatomy-aware track, and plugins add rigging, CS2 weapon skins or GLB export.
It pairs well with Three.js Game Skills: one pack builds the game, the other builds its hero models.
Requirements
- Node.js 18+, Git and Python 3.10+
- Claude Code, Codex, OpenCode or Hermes
Topics
FAQ
AI 2D Asset & Sprite Pipeline Kit
Turn raw AI-generated video clips into crisp transparent 2D sprite sheets: chroma-key + despill commands, 0px foot-root anchor locking, non-linear hit-stop action pacing (4.33s -> 1.88s), and Phaser 3 / Godot 4 SpriteFrames exporters.
- FFmpeg colorkey + despill frame extraction builder
- 0px foot-root anchor packer (zero character float or jitter)
Based on img2threejs/img2threejs by img2threejs (Apache-2.0). The author's LICENSE and NOTICE files ship in the ZIP; ATTRIBUTION.md and CHANGES.md list the source commit and what GameSkill added.
Works well with
Skills the author points to as related or as the better fit for neighbouring tasks.
Similar skills
Godogen
Autonomous game development with Claude Code and Codex. Publishes a ready game repo for Godot, Bevy, Babylon.js or three.js.
3AGameFactory (GameFactory-3A)
An Apache-2.0 framework of agent skills and pipelines that turns a game requirement into assets (image, 3D, motion, audio, CG video) and engine-ready code for UE5, Blender, Unity, Godot 4 and three.js.
3dviz Pro Max
Turn an idea into a Three.js or Blender scene: 223 recipes, 440 knowledge records and runnable studio examples.
Construct
Describe a prop as data (parts in metres, joints, assembly order) and a deterministic engine builds it: an animated hologram page, and a glTF model with named parts, working joints and optional colliders for Godot, Unity, Unreal or Blender. Python standard library only.