img2threejs
Ce qu’il fait
Ce skill amène l'IA à transformer une image de référence d'un objet ou d'un personnage en scène 3D prête à être animée, construite par du code. Il s'adresse aux personnes qui veulent un modèle 3D fidèle à une image sans télécharger un modèle 3D tout fait.
Quand l’utiliser
- ✓Quand vous avez une photo ou un dessin d'un objet et voulez en obtenir un modèle 3D pour le web.
- ✓Quand vous voulez un personnage 3D stylisé à partir d'une image de référence.
- ✓Quand vous devez vérifier la proximité du modèle 3D avec la référence et corriger les écarts.
Lien du skill
https://github.com/img2threejs/img2threejs/blob/main/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Peux-tu reconstruire cette photo de chaise en modèle 3D que je pourrai afficher dans une page web Three.js ?”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'IA travaille par étapes : elle écrit le code de la forme, compare son rendu à l'image de référence, puis corrige le modèle en boucle jusqu'à ce qu'il corresponde suffisamment.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis GitHub.
img2threejs — Image to procedural Three.js
Rebuild the object visible in a reference image as a code-only procedural Three.js model,
gated by a staged sculpting pipeline and an AI-vision self-correction loop. This is
reconstruction-by-code, not photogrammetry, mesh extraction, or downloaded art packs. That
promise governs how the model is built — it says nothing about which file formats it can
subsequently be exported to; an explicitly-selected emission target (--target <kind>) is a
terminal, whole-artifact transform of the already-built model, verified to its own stated limit,
never a second way to build one.
Agent-agnostic: works under Hermes, Claude Code, Codex, or OpenCode. Wherever this doc says "agent vision" or "agent browser tool", use whatever the host provides — native image reading, a browser MCP (playwright/chrome-devtools), the project preview, or a user-supplied screenshot.
This file is the always-loaded router: it holds the order of operations and every hard rule as one
line. The full contract behind each rule lives in the grimoire/ or docs/ file that rule names —
read the named file at the moment you reach that stage, not before.
Canonical shared checkout
Keep one checkout of this repository and let every host enter it through a symlink, so the hosts
execute the same code instead of drifting apart. npx --yes img2threejs@latest install does this
for the hosts it detects (hermes, claude, codex, opencode); it refuses (exit 2) to replace a
link it does not manage, so a hand-made link is never silently swapped for a release copy.
Hermes reads skills per profile: also link ~/.hermes/profiles/<profile>/skills/img2threejs
(the installer writes only ~/.hermes/skills/). Install, manual symlinks, and troubleshooting:
docs/INSTALL.md.
When To Use
The user attaches/points to an object image and wants a procedural Three.js model, a reconstruction/animation/destruction plan, a sculpt spec, or code. Also for material studies, action-ready props, game objects, botanical/mechanical parts, and stylized reconstructions.
Profile preflight (once per run, before forge/next.py)
Domain knowledge (CS2 skins, animated characters, emission targets) lives in plugins, not in this checkout. Pick the profile from the subject, then confirm this environment can start it:
python3 forge/state.py init --help | grep -- --profile # profiles available here
generic/characterare built in: no harness, no plugin, nothing else to check.- A missing domain profile (e.g.
cs2) is a setup gap: never downgrade togenericsilently. Installing it edits the user's machine, so give them the commands indocs/INSTALL.md§3, get their go-ahead, re-check, and continue. - Installed but not listed (wrong
$IMG2_HOME), or a Hermes plugin link:docs/PLUGINS.md. - Then read what the profile's own steps name, at the moment you reach them: the plugin's
SKILL.mdand contracts govern that domain.
Core Promise
Sculpt from a photo, in order — never one-shot a mesh:
- Run
python3 forge/next.py --state .img2threejs/state.json [<spec>]first, at every start, resume, and before every correction iteration. It reports the ordered checklist, exact next command, evidence status, and bounded correction-loop status; it never replaces the spec/pass gates. Obey a hard stop; never continue from memory. - Validate the image is a suitable 3D target (
grimoire/intake/validation_rubric.md). - Assess object class + complexity, then write a
qualityContractbefore any code. - Spec it: component hierarchy, materials, lighting, pivots, sockets, action anchors.
- Build pass-by-pass from blockout → structure → form → material → lighting → interaction → optimization.
- Verify each pass with a screenshot compared against the reference; fail a pass if an identity-defining feature is wrong even when the global score looks fine.
State explicitly when output is approximate/stylized/low-poly. A single image cannot reveal hidden sides or guarantee exact geometry — say so instead of faking confidence.
Mandatory Local State Gate
Conversation context is disposable; .img2threejs/state.json is the local checklist authority.
Initialize once per reconstruction, then gate every step through it:
python3 forge/state.py init --state .img2threejs/stat
Questions fréquentes
Scanne-t-il ou copie-t-il l'objet ?
Non. Le skill décrit une reconstruction uniquement par code, et non une photogrammétrie ni une extraction de maillage.
Exporte-t-il des fichiers ?
Le skill mentionne un export facultatif vers d'autres formats pour une cible choisie, une fois le modèle construit.
Que dois-je fournir ?
Une image de référence. L'IA peut utiliser un outil de navigateur pour voir son propre rendu pendant la vérification.
Détails
Description originale de l’auteur
Turn an object or character reference image into a quality-gated, animation-ready procedural Three.js model built in code. Use for image-to-3D reconstruction, detail-accurate object rebuilds, stylized/likeness-maximized human characters, sculpt specs, and staged code generation.
repo: img2threejs/img2threejs
Popularité
- Étoiles GitHub
- 20k
- Position au classement
- #10388
- Licence
- Apache-2.0
- Mis à jour
- 28/10/2026
Commentaires
- …
Skills similaires
gifgrep
394kPermet à votre agent de chercher dans des bibliothèques de GIF, d'en prévisualiser les résultats, de télécharger un GIF et d'en extraire une image fixe ou une planche d'images.
meme-maker
394kPermet à votre agent de choisir un modèle de mème, d'ajouter vos propres légendes et de créer le mème sous forme d'image SVG ou PNG.
ios-icon-gen
280kPermet à votre agent de générer des icônes pour applications iOS. Il utilise les symboles Apple ou d'autres sources pour créer les fichiers adéquats.