Web Clone
Jane-xiaoer/claude-skill-web-clone
网站复刻 / 克隆方法论。USE WHEN 用户说 复刻网站、克隆网站、clone website、抄个站、仿站、 照着这个站做一个、reproduce site、还原某个网页效果、把这个站搬下来改成我的、 复刻某个交互/WebGL/Canvas/Three.js 效果。提供「先拿真源码 → 判路径 → 逆向拆解 → 搭工程 → 替换内容」的可移植决策树,覆盖静态站 /…
Manages state between Vue and Three.js via Pinia and mitt. An agent skill from hexianWeb/Third-Person-MC.
$ npx skills add hexianWeb/Third-Person-MC --skill vtj-state-management -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install hexianWeb/Third-Person-MC vtj-state-management --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-state-management .claude/skills/vtj-state-management && 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-state-management" agent skill from https://github.com/hexianWeb/Third-Person-MC/tree/main/.agent/skills/vtj-state-management into .claude/skills/vtj-state-management/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vtj-state-management", 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-state-managementType 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-state-management -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install hexianWeb/Third-Person-MC vtj-state-management --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-state-management .agents/skills/vtj-state-management && 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-state-management" agent skill from https://github.com/hexianWeb/Third-Person-MC/tree/main/.agent/skills/vtj-state-management into .agents/skills/vtj-state-management/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vtj-state-management", 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-state-management -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install hexianWeb/Third-Person-MC vtj-state-management --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-state-management .cursor/skills/vtj-state-management && 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-state-management" agent skill from https://github.com/hexianWeb/Third-Person-MC/tree/main/.agent/skills/vtj-state-management into .cursor/skills/vtj-state-management/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vtj-state-management", 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-state-management--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-state-management -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install hexianWeb/Third-Person-MC vtj-state-management --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-state-management .gemini/skills/vtj-state-management && 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-state-management" agent skill from https://github.com/hexianWeb/Third-Person-MC/tree/main/.agent/skills/vtj-state-management into .gemini/skills/vtj-state-management/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vtj-state-management", 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-state-managementInstalls 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-state-management -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-state-management .github/skills/vtj-state-management && 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-state-management" agent skill from https://github.com/hexianWeb/Third-Person-MC/tree/main/.agent/skills/vtj-state-management into .github/skills/vtj-state-management/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vtj-state-management", 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-state-management -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-state-management --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-state-management .opencode/skills/vtj-state-management && 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-state-management" agent skill from https://github.com/hexianWeb/Third-Person-MC/tree/main/.agent/skills/vtj-state-management into .opencode/skills/vtj-state-management/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "vtj-state-management", 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-state-managementManages state between Vue and Three.js via Pinia and mitt. An agent skill from hexianWeb/Third-Person-MC.
Vtj State Management is an agent skill from hexianWeb/Third-Person-MC. Manages state between Vue and Three.js via Pinia and mitt. Use when synchronizing UI state, emitting events, or implementing cross-layer communication.
Its SKILL.md is about 2.2k 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 and State management. It works with Three.js and Vue.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 and vue).
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 State Management loads about 2.2k tokens when it runs. Until then it costs about 43 tokens; SKILL.md has 238 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). 238 words, ~2,187 tokens.
.claude/skills/vtj-state-management/SKILL.md (or your agent's skills folder).本项目使用 双通道状态管理:
核心原则:Pinia 管状态,mitt 管事件。状态变更通过 Pinia,通知 Three.js 通过 mitt emit。
┌─────────────────────────────────────────────────────────────┐
│ Vue UI Layer │
│ ┌─────────────────┐ ┌─────────────────┐ │
│ │ Components │◄────────►│ Pinia Stores │ │
│ └─────────────────┘ └────────┬────────┘ │
└────────────────────────────────────────┼────────────────────┘
│ emitter.emit()
▼
┌─────────────────────────────────────────────────────────────┐
│ mitt Event Bus │
└─────────────────────────────────────────────────────────────┘
│ emitter.on()
▼
┌─────────────────────────────────────────────────────────────┐
│ Three.js Layer │
│ ┌─────────────────┐ ┌─────────────────┐ │
│ │ Components │◄────────►│ Experience │ │
│ └─────────────────┘ └─────────────────┘ │
└─────────────────────────────────────────────────────────────┘// src/pinia/settingsStore.js
import emitter from '@three/utils/event-bus.js'
import { defineStore } from 'pinia'
import { ref } from 'vue'
export const useSettingsStore = defineStore('settings', () => {
// 状态
const shadowQuality = ref('high')
// Action:修改状态 + 通知 Three.js
function setShadowQuality(quality) {
shadowQuality.value = quality
emitter.emit('shadow:quality-changed', quality) // 通知 Three.js
saveSettings() // 持久化
}
return { shadowQuality, setShadowQuality }
})<script setup>
import { useSettingsStore } from '@pinia/settingsStore.js'
const settings = useSettingsStore()
function handleQualityChange(quality) {
settings.setShadowQuality(quality)
}
</script>
<template>
<select v-model="settings.shadowQuality" @change="handleQualityChange">
<option value="low">Low</option>
<option value="medium">Medium</option>
<option value="high">High</option>
</select>
</template>// 方式一:监听 mitt 事件(推荐)
import emitter from './utils/event-bus.js'
emitter.on('shadow:quality-changed', (quality) => {
this.updateShadowQuality(quality)
})
// 方式二:直接读取 Pinia(需要时)
import { useSettingsStore } from '@pinia/settingsStore.js'
const settings = useSettingsStore()
const quality = settings.shadowQuality// src/js/utils/event-bus.js
import mitt from 'mitt'
const emitter = mitt()
export default emitter| 前缀 | 来源 | 用途 | 示例 |
|---|---|---|---|
ui: | Vue UI | UI 状态变化 | ui:pause-changed |
game: | Vue/Three.js | 游戏逻辑事件 | game:create_world |
settings: | Pinia Store | 设置变更通知 | settings:environment-changed |
core: | Experience | 核心系统事件 | core:ready, core:resize |
shadow: | 渲染相关 | 阴影设置 | shadow:quality-changed |
// 发送事件(Vue/Pinia 层)
emitter.emit('game:create_world', { seed, terrain, trees })
emitter.emit('ui:pause-changed', true)
emitter.emit('settings:environment-changed', { skyMode: 'HDR' })
// 监听事件(Three.js 层)
emitter.on('game:create_world', ({ seed, terrain, trees }) => {
this.world.reset({ seed, terrain, trees })
})
emitter.on('ui:pause-changed', (paused) => {
this.isPaused = paused
})
// 移除监听(destroy 时)
this._boundHandler = this.handleEvent.bind(this)
emitter.on('some:event', this._boundHandler)
// ...
emitter.off('some:event', this._boundHandler)// 1. Pinia Store 中定义 action
function setEnvFogDensity(value) {
envFogDensity.value = value
emitter.emit('settings:environment-changed', { fogDensity: value })
saveSettings()
}
// 2. Three.js 组件监听
emitter.on('settings:environment-changed', (patch) => {
if (patch.fogDensity !== undefined) {
this.updateFog(patch.fogDensity)
}
})// 1. Three.js 中发送事件
emitter.emit('game:player-health-changed', { health: 80, maxHealth: 100 })
// 2. Vue 组件监听
import emitter from '@three/utils/event-bus.js'
import { onMounted, onUnmounted, ref } from 'vue'
const health = ref(100)
onMounted(() => {
emitter.on('game:player-health-changed', handleHealthChange)
})
onUnmounted(() => {
emitter.off('game:player-health-changed', handleHealthChange)
})
function handleHealthChange({ health: newHealth }) {
health.value = newHealth
}// Pinia Store 持有状态
const isPaused = ref(false)
function toPauseMenu() {
isPaused.value = true
emitter.emit('ui:pause-changed', true)
}
function toPlaying() {
isPaused.value = false
emitter.emit('ui:pause-changed', false)
}
// Three.js 层响应
emitter.on('ui:pause-changed', (paused) => {
this.isPaused = paused
})| Store | 文件 | 职责 |
|---|---|---|
useUiStore | uiStore.js | 屏幕状态、菜单导航、世界管理 |
useSettingsStore | settingsStore.js | 游戏设置、持久化、Three.js 通知 |
useHudStore | hudStore.js | HUD 状态(血量、快捷栏等) |
useSkinStore | skinStore.js | 皮肤选择状态 |
| 事件 | 数据 | 触发时机 |
|---|---|---|
core:ready | - | 所有资源加载完成 |
core:resize | - | 窗口尺寸变化 |
core:tick | - | 每帧更新 |
| 事件 | 数据 | 触发时机 |
|---|---|---|
ui:pause-changed | boolean | 暂停/恢复 |
| 事件 | 数据 | 触发时机 |
|---|---|---|
game:create_world | { seed, terrain, trees } | 创建新世界 |
game:reset_world | { seed, terrain, trees } | 重置世界 |
game:request_pointer_lock | - | 请求锁定鼠标 |
| 事件 | 数据 | 触发时机 |
|---|---|---|
settings:environment-changed | { skyMode?, sunIntensity?, ... } | 环境设置变更 |
settings:postprocess-changed | { speedLines } | 后期处理变更 |
settings:camera-rig-changed | { fov, bobbing } | 相机设置变更 |
settings:chunks-changed | { viewDistance?, unloadPadding? } | 区块设置变更 |
settings:front-view-changed | { enabled } | 前视图开关 |
settings:mouse-sensitivity-changed | number | 鼠标灵敏度变更 |
| 事件 | 数据 | 触发时机 |
|---|---|---|
shadow:quality-changed | string | 阴影质量变更 |
// BAD: Vue 组件直接操作 Three.js
import Experience from '@three/experience.js'
function handleClick() {
const exp = new Experience()
exp.world.player.setPosition(0, 0, 0) // ❌ 直接操作
}
// GOOD: 通过 mitt 事件
function handleClick() {
emitter.emit('game:player-teleport', { x: 0, y: 0, z: 0 })
}// BAD: 没有清理
constructor() {
emitter.on('some:event', (data) => this.handle(data))
}
// GOOD: 保存引用并清理
constructor() {
this._boundHandler = this.handle.bind(this)
emitter.on('some:event', this._boundHandler)
}
destroy() {
emitter.off('some:event', this._boundHandler)
}// BAD: Three.js 直接写 Pinia
import { useUiStore } from '@pinia/uiStore.js'
function onPlayerDeath() {
const ui = useUiStore()
ui.screen = 'gameOver' // ❌ 直接写状态
}
// GOOD: 通过事件让 Vue 层处理
function onPlayerDeath() {
emitter.emit('game:player-died')
}
// Vue 层响应
emitter.on('game:player-died', () => {
ui.toGameOver()
})// BAD: 无前缀、大小写混乱
emitter.emit('pauseChanged', true)
emitter.emit('CreateWorld', data)
// GOOD: 使用规范前缀
emitter.emit('ui:pause-changed', true)
emitter.emit('game:create_world', data)// BAD: 有时传对象,有时传原始值
emitter.emit('settings:fog-changed', 0.01)
emitter.emit('settings:fog-changed', { density: 0.01 })
// GOOD: 统一使用对象(可扩展)
emitter.emit('settings:environment-changed', { fogDensity: 0.01 })| 场景 | 使用 |
|---|---|
| 持久化状态 | Pinia Store |
| UI → Three.js 通知 | Pinia action + emitter.emit() |
| Three.js → UI 通知 | emitter.emit() |
| Three.js 读取状态 | Pinia Store 或 emitter.on() |
| 事件清理 | destroy() 中 emitter.off() |
| 事件前缀 | 用途 |
|---|---|
core: | 系统级(ready/resize/tick) |
ui: | UI 状态变化 |
game: | 游戏逻辑 |
settings: | 设置变更 |
shadow: | 渲染相关 |
© 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-state-management of hexianWeb/Third-Person-MC.
Open the folder on GitHubat commit 490203c
Vtj State Management 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 State Management this skillhexianWeb/Third-Person-MC | 195 | — | ~2.2k | Automated safety check: Pass | MIT | |
| Web CloneJane-xiaoer/claude-skill-web-clone | 1k | 1 repos | ~2.7k | Automated safety check: Pass | MIT | |
| New ExperimentTresjs/tres | 3.8k | — | ~782 | Automated safety check: Pass | MIT | |
| Polycsslayoutit/polycss | 761 | — | ~2.4k | Automated safety check: Pass | MIT | |
| Tresjs Core Skilldskilld-dev/vue-ecosystem-skills | 181 | — | ~2.2k | Automated safety check: Pass | MIT | |
| Lint Commit PRTresjs/tres | 3.8k | — | ~1.1k | Automated safety check: Pass | MIT |
Jane-xiaoer/claude-skill-web-clone
网站复刻 / 克隆方法论。USE WHEN 用户说 复刻网站、克隆网站、clone website、抄个站、仿站、 照着这个站做一个、reproduce site、还原某个网页效果、把这个站搬下来改成我的、 复刻某个交互/WebGL/Canvas/Three.js 效果。提供「先拿真源码 → 判路径 → 逆向拆解 → 搭工程 → 替换内容」的可移植决策树,覆盖静态站 /…
Tresjs/tres
Create a new experiment in TresJS Lab with all necessary files
layoutit/polycss
Build PolyCSS scenes that render 3D meshes, primitive shapes, or custom polygons as DOM/CSS polygon elements.
skilld-dev/vue-ecosystem-skills
Declarative Three.js using Vue components. An agent skill from skilld-dev/vue-ecosystem-skills.
Tresjs/tres
Lint local changes, auto-fix, conventional commit, and optionally create PR
secondsky/claude-skills
120+ Vue/Nuxt animated components with TailwindCSS v4, motion-v, GSAP, Three.js.
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
Creates 3D components using the Experience singleton pattern.
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.
Categories
Manages state between Vue and Three.js via Pinia and mitt. An agent skill from hexianWeb/Third-Person-MC. Vtj State Management is an agent skill from hexianWeb/Third-Person-MC.js via Pinia and mitt.
Vtj State Management fits situations like: synchronizing UI state; emitting events; implementing cross-layer communication.
Run `npx skills add hexianWeb/Third-Person-MC --skill vtj-state-management -a claude-code`. Or copy the skill folder (.agent/skills/vtj-state-management in hexianWeb/Third-Person-MC) into .claude/skills/vtj-state-management in your project. Claude Code loads it when a task matches its description.
Run `npx skills add hexianWeb/Third-Person-MC --skill vtj-state-management -a codex`. Or copy the skill folder (.agent/skills/vtj-state-management in hexianWeb/Third-Person-MC) into .agents/skills/vtj-state-management 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-state-management -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-state-management, .gemini/skills/vtj-state-management, .github/skills/vtj-state-management and .opencode/skills/vtj-state-management in your project.
SKILL.md names no scripts, command-line tools or credentials: Vtj State Management 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 State Management is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.2k tokens (SKILL.md is roughly 8.7k 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 State Management: Web Clone (Jane-xiaoer/claude-skill-web-clone, 1k stars), New Experiment (Tresjs/tres, 3.8k stars), Polycss (layoutit/polycss, 761 stars) and Tresjs Core Skilld (skilld-dev/vue-ecosystem-skills, 181 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 195 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.