img2threejs
Turn an object or character reference image into a quality-gated, animation-ready procedural Three.js model built in code.
Skill by anbeime
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/anbeime-img2threejs
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
img2threejs- Description
- 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.
- License
- Apache-2.0
- Instructions
- 419 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (200)
- FUNDING.yml · .github/
- bug_report.yml · .github/ISSUE_TEMPLATE/
- contribution_intent.yml · .github/ISSUE_TEMPLATE/
- feature_request.yml · .github/ISSUE_TEMPLATE/
- pull_request_template.md · .github/
- release.yml · .github/
- beta-release.yml · .github/workflows/
- ci.yml · .github/workflows/
- issue-triage.yml · .github/workflows/
- pr-issue-close-policy.yml · .github/workflows/
- release.yml · .github/workflows/
- .gitignore
- CHANGELOG.md
- CLAUDE.md
- CONTRIBUTING.md
- LAB-FINDINGS.md
- LICENSE
- README.md
- ROADMAP.md
- SKILL.md
- logo.svg · assets/
- atlas-cloud-logomark-black.svg · assets/sponsors/
- atlas-cloud-logomark-white.svg · assets/sponsors/
- hyper3d-logomark-black.png · assets/sponsors/
- hyper3d-logomark-white.png · assets/sponsors/
- tripo-logomark-black.svg · assets/sponsors/
- tripo-logomark-white.svg · assets/sponsors/
- ARCHITECTURE.md · docs/
- GLB_ANIMATED_CHARACTER_PROMPT.md · docs/
- GLB_CHARACTER_ANIMATION_PROMPT.md · docs/
- GLB_CHARACTER_POLISH_PROMPT.md · docs/
- GLB_CHARACTER_PROMPT.md · docs/
- HAIR_PIPELINE.md · docs/
- RESEARCH_TRELLIS2_TO_IMG2THREEJS.md · docs/
- STAGE_R_BACKLOG.md · docs/
- STAGE_R_TEST_PLAN.md · docs/
- TOKEN_COST.md · docs/
- UPGRADE_PLAN.md · docs/
- gloves.md · docs/cs2-anatomy/
- heavy.md · docs/cs2-anatomy/
- knives.md · docs/cs2-anatomy/
- pistols.md · docs/cs2-anatomy/
- rifles.md · docs/cs2-anatomy/
- smgs.md · docs/cs2-anatomy/
- snipers.md · docs/cs2-anatomy/
- 3D_Technical_Mapping.json · docs/cs2/
- 3D_Technical_Reference.md · docs/cs2/
- 3D_Vocabulary_CS2.json · docs/cs2/
- 3D_Vocabulary_CS2_Dictionary.md · docs/cs2/
- distill.md · docs/cs2/
- review-gates.md · docs/cs2/
- reference_fidelity_tooling.md · docs/integrations/
- issue-triage.md · docs/
- IMAGE_MATERIAL_ANALYSIS.md · docs/materials/
- README.md · docs/materials/
- THREEJS_MATERIAL_REFERENCE.md · docs/materials/
- material-reference.json · docs/materials/
- character-rigging-animation-1.5.2.md · docs/pipelines/
- .keep · docs/raw/
- img2threejs-skill-dataset.json · docs/raw/
- …and 140 more
SKILL.md (first lines)
# 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:
```text
~/.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:
```bash
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
enough to select a geometry adapter
## The Loop (scripts do enforcement; agent vision does judgment)
Run scripts from the skill root (`forge/...`). Pure Python 3.10+ stdlib, no pip installs.
Full flags: `grimoire/scripts.md`. Never let a script *score* visuals — that is the agent's job.
1. **Analyze the image first** (agent vision, before any script): work the layered observation
protocol in `grimoire/intake/image_analysis.md` — identify/classify, decompose macro→meso→micro,
map part relationships, name materials in PBR terms, list identity-defining features, and flag
what the single view hides. Observation before inference; controlled 3D vocabulary; 3D
object-space not 2D image-space. Then probe local images:
`forge/stage1_intake/probe_image.py <image>` (metadata only, not a visual check).
1a. **Local Spec Search** — after image analysis, before writing or refining a spec, pull local
domain evidence (anatomy/PBR/wear/geometry/runtime/physics) rather than inventing it:
`python3 forge/stage2_spec/new_pre_spec_assessment.py "Name" --image <img> --out assessment.json`
(auto-runs BM25, auto-picks `cs2`/`core_3d` collection, writes a `localSpecSearch` bundle that
`new_sculpt_spec.py --assessment` carries into the spec). Full query-expansion recipe
(bilingual terms, focused `search_specs.py` retrieval, cache rules):
`grimoire/intake/local_spec_search.md`. MUST read it before retrying an incomplete or
domain-specific query.
1b. **CS2 intake manifest** — for a CS2 request, create and validate `cs2-intake.json` before
pre-spec authoring (admission, heuristic signal, classification, family/route resolution).
MUST read `grimoire/intake/cs2_intake_contract.md` completely before creating the manifest or
running pre-spec assessment.
1c. **Optional fidelity evidence adapters** — only when they improve an observed weak point; the
stdlib core remains authoritative. Thin/complex masks → local SAM2; character face/pose →
MediaPipe; weak front/back cues → Depth Anything V2
(`forge/stage1_intake/run_vision_adapter.py <segment|landmarks|depth> ...`; every adapter emits
provenance; monocular depth is relative only). **MCP-only scene mutations never count as
implementation** — write the proven change back to the spec or TypeScript, rebuild, recapture.
Full adapter + MCP routing and authority boundaries:
`docs/integrations/reference_fidelity_tooling.md`.
2. **Pre-Spec Assessment Gate** — classify + score complexity + write the quality contract:
`forge/stage2_spec/new_pre_spec_assessment.py "Name" --image <img> --complexity <simple|moderate|complex|ultra-complex> --out assessment.json`. Rules: `grimoire/intake/quality_contract.md`.
Set `objectClass.primaryDomain` (`object` | `character` | `hybrid`) and fill the seeded
`detailInventory` (its `targetMinDetails` scales with complexity). **Supported CS2 knife skins
and Glock-18 assets**: always pass `--cs2`, which defaults the complexity tier to `ultra-complex`From anbeime/skill, Apache-2.0.
More from anbeime/skill
- 0.806score
convert-documents-to-markdown
firecrawl
Convert Word (.doc, .docx), PowerPoint (.ppt, .pptx), Excel (.xls, .xlsx), OpenDocument (.odt, .ods, .odp), RTF, EPUB, CSV, and PDF files to GitHub-Flavored…
SkillBFreshness: B★ 8.6KClaude Code +9 - 0.798score
diagram-design
anbeime
Create branded architecture, architecture delta, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant…
SkillAFreshness: A★ 8.6KClaude Code +9 - 0.789score
srt-whiteboard-animation
anbeime
将 SRT 字幕做成暖米黄纸张底的白板手绘动画:读字幕→输出配图策略→确认后生成统一风格线稿→按叙事语义标注分区→预览台调整→渲染 MP4。编排沿用分区遮罩揭示(annotation.json / sequence / startMs / protectedRegions),但每个区域内的落墨换成 stream…
SkillAFreshness: A★ 8.6KClaude Code +9 - 0.789score
kb-to-mpt
anbeime
知易知识库 → 短视频 流水线。把 knowledge_cards(蓝/绿/红卡)批量生成书摘/知识类短视频(复用 MoneyPrinterTurbo),并提供本地 faster-whisper 转写桥,把任意视频转文字入库成为脚本源。触发:用户想"把书/知识库做成视频""批量产出书摘视频""把视频转写进知识库"。
SkillAFreshness: A★ 8.6KClaude Code +9 - 0.787score
email-concierge
anbeime
Local AI email assistant that automates unread-mail processing, offline-safe classification and reply drafting, local draft editing/approval queues, calendar…
SkillAFreshness: A★ 8.6KClaude Code +9 - 0.752score
gpt-image-2-prompt-engine
anbeime
面向电商设计师、海报美工、品牌视觉、UI设计师、信息图编辑、商业摄影师、内容创作者等需要高质量可控出图的角色,在需要用 GPT-Image-2 生成电商主图、电影海报、信息图、品牌视觉、UI截图、古籍国风、角色IP等场景时,通过「Prompt as…
SkillBFreshness: B★ 8.6KClaude Code +9 - 0.750score
photo-abstract-editorial
anbeime
Create a clean, vertical editorial artwork that preserves an uploaded photograph as the original image and pairs it with a restrained, photo-derived abstract…
SkillBFreshness: B★ 8.6KClaude Code +9 - 0.747score
voltagent-awesome-design-md
anbeime
73 个真实网站 DESIGN.md 提取集合(Claude / Cursor / Vercel / Stripe / Apple / Tesla / Ferrari ...)。 把 DESIGN.md 复制到项目根目录,AI agent 读 DESIGN.md 后能生成风格一致的高质量 UI。 本仓库同步自…
SkillBFreshness: B★ 8.6KClaude Code +9 - 0.747score
video-creation-pro
anbeime
电商运营与自媒体创作者在为美妆、家居、智能硬件等商品制作短视频时,请使用此技能。10大AI智能体协同,从卖点提炼、分镜生图到音效字幕,一键调用COZE API自动合成高质量商品视频,彻底告别本地代码依赖,轻松实现从创作、质检到数据迭代的全流程闭环。
SkillBFreshness: B★ 8.6KClaude Code +9 - 0.747score
law-to-markdown
anbeime
律师助理与法律助手在处理繁杂法条时,当需要将 PDF/Word/TXT 格式的法律规范文件转为结构化 Markdown 时适用。自动完成 OCR 解析、法律层级识别与三阶段保真校验,一键生成排版完美的法条 Markdown 文档及审核报告,让法律文本数字化工作事半功倍。
SkillBFreshness: B★ 8.6KClaude Code +9 - 0.745score
ip-as-logo
anbeime
Generate extremely simple, cute, personified square character images with rounded heavy forms, two purposeful character colors, one solid background color…
SkillBFreshness: B★ 8.6KClaude Code +9 - 0.743score
agent-team
anbeime
产品经理与项目管理专家在应对复杂项目时,使用此技能可动态组建包含“执行、指挥、评审”的专属AI团队。实时查看多智能体辩论与决策全过程,共享统一上下文记忆,一键完成从会议决策到系统构建的全流程高效协同!
SkillBFreshness: B★ 8.6KClaude Code +9
Signals
- Stars
- 8,591
- Forks
- 764
- Open issues
- 18
- Last commit (this folder)
- Sep 4, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/anbeime/skill
- Website
- skill.miyucaicai.cn
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from anbeime
- 0.798score
diagram-design
anbeime
Create branded architecture, architecture delta, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant…
SkillAFreshness: A★ 8.6KClaude Code +9 - 0.789score
srt-whiteboard-animation
anbeime
将 SRT 字幕做成暖米黄纸张底的白板手绘动画:读字幕→输出配图策略→确认后生成统一风格线稿→按叙事语义标注分区→预览台调整→渲染 MP4。编排沿用分区遮罩揭示(annotation.json / sequence / startMs / protectedRegions),但每个区域内的落墨换成 stream…
SkillAFreshness: A★ 8.6KClaude Code +9 - 0.789score
kb-to-mpt
anbeime
知易知识库 → 短视频 流水线。把 knowledge_cards(蓝/绿/红卡)批量生成书摘/知识类短视频(复用 MoneyPrinterTurbo),并提供本地 faster-whisper 转写桥,把任意视频转文字入库成为脚本源。触发:用户想"把书/知识库做成视频""批量产出书摘视频""把视频转写进知识库"。
SkillAFreshness: A★ 8.6KClaude Code +9 - 0.787score
email-concierge
anbeime
Local AI email assistant that automates unread-mail processing, offline-safe classification and reply drafting, local draft editing/approval queues, calendar…
SkillAFreshness: A★ 8.6KClaude Code +9 - 0.752score
gpt-image-2-prompt-engine
anbeime
面向电商设计师、海报美工、品牌视觉、UI设计师、信息图编辑、商业摄影师、内容创作者等需要高质量可控出图的角色,在需要用 GPT-Image-2 生成电商主图、电影海报、信息图、品牌视觉、UI截图、古籍国风、角色IP等场景时,通过「Prompt as…
SkillBFreshness: B★ 8.6KClaude Code +9 - 0.750score
photo-abstract-editorial
anbeime
Create a clean, vertical editorial artwork that preserves an uploaded photograph as the original image and pairs it with a restrained, photo-derived abstract…
SkillBFreshness: B★ 8.6KClaude Code +9
Cite this page
img2threejs skill. Agent Mart. https://agentmart.dev/skills/anbeime-img2threejs (last updated 2026-10-24)