Image to Three.js Model
img2threejs/img2threejs
Rebuilds the object in a reference image as a procedural, animation-ready Three.js model written entirely in code, using staged sculpting with quality checks.
Creates 3D components using the Experience singleton pattern.
$ npx skills add hexianWeb/Third-Person-MC --skill vtj-component-model -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install hexianWeb/Third-Person-MC vtj-component-model --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/hexianWeb/Third-Person-MC.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agent/skills/vtj-component-model .claude/skills/vtj-component-model && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "vtj-component-model" agent skill from https://github.com/hexianWeb/Third-Person-MC/tree/main/.agent/skills/vtj-component-model into .claude/skills/vtj-component-model/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vtj-component-model", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/hexianWeb/Third-Person-MC/tree/main/.agent/skills/vtj-component-modelType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add hexianWeb/Third-Person-MC --skill vtj-component-model -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install hexianWeb/Third-Person-MC vtj-component-model --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/hexianWeb/Third-Person-MC.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agent/skills/vtj-component-model .agents/skills/vtj-component-model && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "vtj-component-model" agent skill from https://github.com/hexianWeb/Third-Person-MC/tree/main/.agent/skills/vtj-component-model into .agents/skills/vtj-component-model/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vtj-component-model", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add hexianWeb/Third-Person-MC --skill vtj-component-model -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install hexianWeb/Third-Person-MC vtj-component-model --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/hexianWeb/Third-Person-MC.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agent/skills/vtj-component-model .cursor/skills/vtj-component-model && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "vtj-component-model" agent skill from https://github.com/hexianWeb/Third-Person-MC/tree/main/.agent/skills/vtj-component-model into .cursor/skills/vtj-component-model/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vtj-component-model", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/hexianWeb/Third-Person-MC.git --path .agent/skills/vtj-component-model--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add hexianWeb/Third-Person-MC --skill vtj-component-model -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install hexianWeb/Third-Person-MC vtj-component-model --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/hexianWeb/Third-Person-MC.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agent/skills/vtj-component-model .gemini/skills/vtj-component-model && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "vtj-component-model" agent skill from https://github.com/hexianWeb/Third-Person-MC/tree/main/.agent/skills/vtj-component-model into .gemini/skills/vtj-component-model/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vtj-component-model", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install hexianWeb/Third-Person-MC vtj-component-modelInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add hexianWeb/Third-Person-MC --skill vtj-component-model -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/hexianWeb/Third-Person-MC.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agent/skills/vtj-component-model .github/skills/vtj-component-model && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "vtj-component-model" agent skill from https://github.com/hexianWeb/Third-Person-MC/tree/main/.agent/skills/vtj-component-model into .github/skills/vtj-component-model/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vtj-component-model", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add hexianWeb/Third-Person-MC --skill vtj-component-model -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install hexianWeb/Third-Person-MC vtj-component-model --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/hexianWeb/Third-Person-MC.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agent/skills/vtj-component-model .opencode/skills/vtj-component-model && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "vtj-component-model" agent skill from https://github.com/hexianWeb/Third-Person-MC/tree/main/.agent/skills/vtj-component-model into .opencode/skills/vtj-component-model/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vtj-component-model", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
vtj-component-modelCreates 3D components using the Experience singleton pattern.
Vtj Component Model is an agent skill from hexianWeb/Third-Person-MC. Creates 3D components using the Experience singleton pattern. Use when building new classes in src/js/, implementing lifecycle methods, or managing Three.js objects.
Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Game Development, covering 3D graphics and WebGL. It works with Three.js. The repository describes itself as: Three.js web version Minecraft in browser. The licence is MIT.
Read from SKILL.md and the folder at commit 490203c. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are javascript).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Vtj Component Model loads about 1.5k tokens when it runs. Until then it costs about 46 tokens; SKILL.md has 196 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from hexianWeb/Third-Person-MC at commit 490203c, republished under its MIT licence (© hexianWeb). 196 words, ~1,481 tokens.
.claude/skills/vtj-component-model/SKILL.md (or your agent's skills folder).All 3D components in this project follow a class-based singleton pattern. Components access shared resources through the Experience singleton and implement standardized lifecycle methods.
Core principle: Extract only what you need, implement all required lifecycle methods, always clean up resources.
src/js/import Experience from '@/js/experience.js'
import emitter from '@/js/utils/event-bus.js'
import * as THREE from 'three'
export default class YourComponent {
constructor(options = {}) {
// 1. 获取 Experience 单例
this.experience = new Experience()
// 2. 按需提取依赖(仅取所需,避免冗余)
this.scene = this.experience.scene
this.resources = this.experience.resources
this.debug = this.experience.debug
// 3. 组件参数
this.params = {
enabled: options.enabled ?? true,
// ... 其他参数
}
// 4. 组件状态
this.mesh = null
// 5. 初始化
this._init()
// 6. 调试面板(必须在 debug.active 条件下调用)
if (this.debug.active) {
this.debugInit()
}
}
_init() {
// 创建 3D 对象并添加到场景
this.mesh = new THREE.Mesh(/* ... */)
this.scene.add(this.mesh)
}
debugInit() {
// 调试面板 - 详见 vtj-debug-panel skill
}
update() {
// 每帧更新逻辑
// 时间通过 this.experience.time 访问,不通过参数传递
}
resize() {
// 窗口尺寸变化时调用
}
destroy() {
// 清理资源 - 涉及 Object3D 的组件必须实现
if (this.mesh) {
this.scene.remove(this.mesh)
this.mesh.geometry?.dispose()
this.mesh.material?.dispose()
this.mesh = null
}
}
}只提取组件实际需要的依赖:
| 组件类型 | 典型依赖 |
|---|---|
| 渲染对象 | scene, resources |
| 交互组件 | scene, camera.instance, iMouse |
| 动画组件 | scene, time |
| 调试组件 | debug |
| UI 相关 | sizes, canvas |
// ✅ GOOD: 只取所需
this.scene = this.experience.scene
this.resources = this.experience.resources
// ❌ BAD: 提取全部
this.scene = this.experience.scene
this.camera = this.experience.camera
this.renderer = this.experience.renderer
this.time = this.experience.time
this.sizes = this.experience.sizes
this.iMouse = this.experience.iMouse
this.debug = this.experience.debug
// ... 大部分根本用不到| 方法 | 必需条件 | 调用方 |
|---|---|---|
debugInit() | 有可调参数 | 构造函数,if (debug.active) |
update() | 有逐帧逻辑 | 父组件的 update() |
resize() | 响应尺寸变化 | 父组件的 resize() |
destroy() | 涉及 Object3D | 父组件的 destroy() |
任何涉及 Object3D 的组件必须实现 destroy() 方法。
destroy() {
// 1. 移除事件监听
emitter.off('some:event', this._handler)
// 2. 从场景移除对象
if (this.mesh) {
this.scene.remove(this.mesh)
}
// 3. 销毁几何体
this.mesh?.geometry?.dispose()
// 4. 销毁材质
if (this.mesh?.material) {
if (Array.isArray(this.mesh.material)) {
this.mesh.material.forEach(m => m.dispose())
} else {
this.mesh.material.dispose()
}
}
// 5. 销毁纹理(如果组件自己创建的)
this.texture?.dispose()
// 6. 销毁子组件
this.childComponent?.destroy()
// 7. 清空引用
this.mesh = null
}统一使用以下方式访问调试系统:
// 在构造函数中
this.debug = this.experience.debug
// 检查是否激活
if (this.debug.active) {
this.debugInit()
}
// 在 debugInit() 中创建面板
debugInit() {
this.debugFolder = this.debug.ui.addFolder({
title: 'Component Name',
expanded: false,
})
this.debugFolder.addBinding(this.params, 'someValue', {
label: '参数名称',
min: 0,
max: 1,
})
}注意:
debugInit()(不是 debugInit 或 setDebug)this.debug.ui 访问 Tweakpane 实例this.debug.active 判断是否启用// BAD: 组件创建了 mesh 但没有 destroy
class BadComponent {
constructor() {
this.mesh = new THREE.Mesh(...)
this.scene.add(this.mesh)
}
// 没有 destroy() → 内存泄漏
}// BAD: 使用其他命名
debuggerInit() { } // ❌
setDebug() { } // ❌
// GOOD: 统一命名
debugInit() { } // ✅// BAD: 直接提取 ui
this.debug = this.experience.debug.ui // ❌
// GOOD: 提取 debug 对象
this.debug = this.experience.debug // ✅
// 然后通过 this.debug.ui 访问面板// BAD: 绑定事件但没清理
constructor() {
emitter.on('game:event', this.handler.bind(this))
}
// 没有在 destroy() 中 emitter.off()
// GOOD: 保存引用并清理
constructor() {
this._boundHandler = this.handler.bind(this)
emitter.on('game:event', this._boundHandler)
}
destroy() {
emitter.off('game:event', this._boundHandler)
}// BAD: 通过参数传递
update(deltaTime) {
this.mesh.rotation.y += deltaTime
}
// GOOD: 通过 Experience 访问
update() {
const delta = this.experience.time.delta
this.mesh.rotation.y += delta * 0.001
}如需创建独立于主场景的 3D 视图(如 UI 预览),不使用 Experience 单例:
// 参考 src/js/components/skin-preview-scene.js
class IndependentScene {
constructor(canvas) {
// 创建独立的 scene/camera/renderer
this.scene = new THREE.Scene()
this.camera = new THREE.PerspectiveCamera(...)
this.renderer = new THREE.WebGLRenderer({ canvas })
}
}这是唯一允许不使用 Experience 单例的情况。
| 规则 | 要求 |
|---|---|
| 单例访问 | this.experience = new Experience() |
| 依赖提取 | 只取所需 |
| 调试方法 | debugInit()(统一命名) |
| 调试访问 | this.debug = this.experience.debug |
| 时间访问 | this.experience.time(不通过参数) |
| destroy | 涉及 Object3D 必须实现 |
| 事件清理 | destroy() 中 emitter.off() |
© hexianWeb, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agent/skills/vtj-component-model of hexianWeb/Third-Person-MC.
Open the folder on GitHubat commit 490203c
Vtj Component Model next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Vtj Component Model this skillhexianWeb/Third-Person-MC | 194 | — | ~1.5k | Automated safety check: Pass | MIT | |
| Image to Three.js Modelimg2threejs/img2threejs | 18k | 1 repos | ~8.2k | Automated safety check: Pass | Apache-2.0 | |
| Web CloneJane-xiaoer/claude-skill-web-clone | 1k | 1 repos | ~2.7k | Automated safety check: Pass | MIT | |
| Threejs Game Directormajidmanzarpour/threejs-game-skills | 2.4k | — | ~2.2k | Automated safety check: Pass | MIT | |
| Threejs Gameplay Systemsvalkor-ai/loom | 1.2k | 1 repos | ~1.4k | Automated safety check: Pass | Apache-2.0 | |
| Threejs World Generationcalesthio/OpenMontage | 65k | — | ~2k | Automated safety check: Pass | AGPL-3.0 |
img2threejs/img2threejs
Rebuilds the object in a reference image as a procedural, animation-ready Three.js model written entirely in code, using staged sculpting with quality checks.
Jane-xiaoer/claude-skill-web-clone
网站复刻 / 克隆方法论。USE WHEN 用户说 复刻网站、克隆网站、clone website、抄个站、仿站、 照着这个站做一个、reproduce site、还原某个网页效果、把这个站搬下来改成我的、 复刻某个交互/WebGL/Canvas/Three.js 效果。提供「先拿真源码 → 判路径 → 逆向拆解 → 搭工程 → 替换内容」的可移植决策树,覆盖静态站 /…
majidmanzarpour/threejs-game-skills
Entrypoint for building, upgrading, and finishing Three.js browser games.
valkor-ai/loom
Build and iterate playable Three.js game systems: starter scaffold, architecture, design briefs, core loops, level and encounter design, entities, input, camera, collision and physics, scoring…
calesthio/OpenMontage
Build deterministic, editable, free-viewpoint Three.js worlds from text or structured briefs.
viettranx/3dviz-pro-max
Guides building an expressive 3D scene in Three.js or Blender by reasoning through intent, object construction and scientific grounding before using a catalog of recipes and kits.
hexianWeb/Third-Person-MC
Configures Tweakpane debug panels for 3D components. An agent skill from hexianWeb/Third-Person-MC.
hexianWeb/Third-Person-MC
Configures third-person camera systems with collision avoidance.
hexianWeb/Third-Person-MC
Handles mouse, keyboard, and touch input via the IMouse and InputManager systems.
hexianWeb/Third-Person-MC
Optimizes Three.js rendering performance. An agent skill from hexianWeb/Third-Person-MC.
hexianWeb/Third-Person-MC
Implements ray picking and collision detection. An agent skill from hexianWeb/Third-Person-MC.
hexianWeb/Third-Person-MC
Loads and manages 3D assets via the Resources system. An agent skill from hexianWeb/Third-Person-MC.
Works with
Categories
Creates 3D components using the Experience singleton pattern. Vtj Component Model is an agent skill from hexianWeb/Third-Person-MC. Creates 3D components using the Experience singleton pattern.
Vtj Component Model fits situations like: building new classes in src/js/; implementing lifecycle methods; managing Three.js objects.
Run `npx skills add hexianWeb/Third-Person-MC --skill vtj-component-model -a claude-code`. Or copy the skill folder (.agent/skills/vtj-component-model in hexianWeb/Third-Person-MC) into .claude/skills/vtj-component-model in your project. Claude Code loads it when a task matches its description.
Run `npx skills add hexianWeb/Third-Person-MC --skill vtj-component-model -a codex`. Or copy the skill folder (.agent/skills/vtj-component-model in hexianWeb/Third-Person-MC) into .agents/skills/vtj-component-model in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add hexianWeb/Third-Person-MC --skill vtj-component-model -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/vtj-component-model, .gemini/skills/vtj-component-model, .github/skills/vtj-component-model and .opencode/skills/vtj-component-model in your project.
SKILL.md names no scripts, command-line tools or credentials: Vtj Component Model is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Vtj Component Model is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.5k tokens (SKILL.md is roughly 5.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Vtj Component Model: Image to Three.js Model (img2threejs/img2threejs, 18k stars), Web Clone (Jane-xiaoer/claude-skill-web-clone, 1k stars), Threejs Game Director (majidmanzarpour/threejs-game-skills, 2.4k stars) and Threejs Gameplay Systems (valkor-ai/loom, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
hexianWeb (a GitHub user) maintains it in hexianWeb/Third-Person-MC, which has 194 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on July 27, 2026.
Source: hexianWeb/Third-Person-MC on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.