Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

img2threejs

БесплатноБез исполняемых скриптовНе проверен

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…

anbeimeот anbeime★ 10 086 звёзд на 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.

Agent-agnostic: works under 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 Claude and Codex execute the same code instead of drifting apart:

~/.claude/skills/img2threejs -> <your checkout>
~/.codex/skills/img2threejs  -> <your checkout>

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.

Core Promise

Sculpt from a photo, in order — never one-shot a mesh:

  1. 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.
  2. Validate the image is a suitable 3D target (grimoire/intake/validation_rubric.md).
  3. Assess object class + complexity, then write a qualityContract before any code.
  4. Spec it: component hierarchy, materials, lighting, pivots, sockets, action anchors.
  5. Build pass-by-pass from blockout → structure → form → material → lighting → interaction → optimization.
  6. 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/state.json --reference <img> --profile <generic|cs2|character|animated-character> --spec object-sculpt-spec.json
python3 forge/next.py --state .img2threejs/state.json [object-sculpt-spec.json]
python3 forge/state.py mark <step-id> --state .img2threejs/state.json --evidence <path>
  • next.py prints the current step, pass, incomplete mandatory steps, exact next command, and loop/max. Exit code 3 or status=stopped is a hard stop: report the reason and request input. Never bypass it by reconstructing progress from chat history.
  • Every completed step needs evidence; mark a non-applicable step skipped only with --reason — silent omission is forbidden. Loop counts derive from reviewHistory actions (refine-spec/refine-code), not agent memory. Defaults: 3 corrections per pass, 6 total.
  • Profiles add mandatory gates without changing the core order: cs2 requires classification, manifest, and a machine-readable CS2 review before AI review; character requires the character contracts and landmark evidence; animated-character adds all of character plus the nine Stage R steps (grimoire/readiness/animation_contract.md). Pick it whenever the rig must MOVE — on character the Stage R gates are absent and the build completes without ever running them, which is how animation used to ship broken. Its order is load-bearing: repair the mesh, freeze it, bind additively, then verify parity. Every profile records suitability, projection applicability, and material-evidence applicability. The state file is a resumability index, not visual evidence: renders, specs, review history, and deterministic gates remain the authoritative artifacts.

Required Inputs

  • one image path / screenshot / URL / attached image (if missing or unreadable, ask)
  • intended use: prop, game object, hero render, playable/destructible object, animation rig (default: real-time browser prop with interactive performance)
  • for a CS2 request, an authoritative classification record (family/subtype and evidence refs) or an explicit request for the user/vision provider to supply one; heuristic detection alone is not eno
Полный SKILL.md на GitHub

Установить img2threejs в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

.github/FUNDING.yml.github/ISSUE_TEMPLATE/bug_report.yml.github/ISSUE_TEMPLATE/contribution_intent.yml.github/ISSUE_TEMPLATE/feature_request.yml.github/pull_request_template.md.github/release.yml.github/workflows/beta-release.yml.github/workflows/ci.yml.github/workflows/issue-triage.yml.github/workflows/pr-issue-close-policy.yml.github/workflows/release.yml.gitignoreCHANGELOG.mdCLAUDE.mdCONTRIBUTING.mdLAB-FINDINGS.mdLICENSEREADME.mdROADMAP.mdassets/logo.svgassets/sponsors/atlas-cloud-logomark-black.svgassets/sponsors/atlas-cloud-logomark-white.svgassets/sponsors/hyper3d-logomark-black.pngassets/sponsors/hyper3d-logomark-white.pngassets/sponsors/tripo-logomark-black.svgassets/sponsors/tripo-logomark-white.svgdocs/ARCHITECTURE.mddocs/GLB_ANIMATED_CHARACTER_PROMPT.mddocs/GLB_CHARACTER_ANIMATION_PROMPT.mddocs/GLB_CHARACTER_POLISH_PROMPT.mddocs/GLB_CHARACTER_PROMPT.mddocs/HAIR_PIPELINE.mddocs/RESEARCH_TRELLIS2_TO_IMG2THREEJS.mddocs/STAGE_R_BACKLOG.mddocs/STAGE_R_TEST_PLAN.mddocs/TOKEN_COST.mddocs/UPGRADE_PLAN.mddocs/cs2-anatomy/gloves.mddocs/cs2-anatomy/heavy.mddocs/cs2-anatomy/knives.md

FAQ

Что делает скилл img2threejs?

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.

Как установить скилл img2threejs?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл img2threejs запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить img2threejs с