add-3d-assets
БесплатноБез исполняемых скриптовНе проверенReplace primitive 3D shapes with real GLB models — animated characters, world props, buildings, and scenery for Three.js games. Use when the user says "add 3D…
от PlayableIntelligence★ 383 звезды на GitHubОб этом скилле
Performance Notes
- Take your time to do this thoroughly
- Quality is more important than speed
- Do not skip validation steps
Add 3D Assets
Replace basic geometric shapes (BoxGeometry, SphereGeometry) with real 3D models. Characters get custom Meshy AI-generated models with rigging and animation. World objects get generated or sourced from free libraries.
Instructions
Analyze the game at $ARGUMENTS (or the current directory if no path given).
First, load the game-3d-assets skill and the meshyai skill for the full model pipeline, AssetLoader pattern, Meshy generation, and integration patterns.
Step 1: Get Meshy API Key
Check if MESHY_API_KEY is set. First check .env:
test -f .env && grep -q '^MESHY_API_KEY=.' .env && echo "found"
If found, export it with set -a; . .env; set +a and skip the prompt.
If not set, ask the user:
I'll generate custom 3D models with Meshy AI for the best results. You can get a free API key in 30 seconds:
- Sign up at https://app.meshy.ai
- Go to Settings → API Keys
- Create a new API key
Paste your key below like:
MESHY_API_KEY=your-key-here(It will be saved to .env and redacted from this conversation automatically.)Or type "skip" to use free model libraries instead.
Step 2: Audit
- Read
package.jsonto confirm this is a Three.js game (not Phaser — use/add-assetsfor 2D games) - Read
src/core/Constants.jsfor entity types, sizes, colors - Read entity files (
src/gameplay/*.js,src/entities/*.js) — findBoxGeometry,SphereGeometry, etc. - Read
src/level/LevelBuilder.jsfor environment primitives - List every entity using geometric shapes
- Identify which entity is the player character (needs animated model)
Step 3: Plan
Split entities into two categories:
Animated characters (player, enemies with AI) — generate with Meshy AI:
| Entity | Meshy Prompt | Notes |
|---|---|---|
| Player | "a heroic knight, low poly game character, full body, t-pose" | Generate → rig → animate |
| Enemy | "a goblin warrior with a club, low poly game character" | Generate → rig → animate |
If Meshy unavailable, fall back to assets/3d-characters/:
- Soldier — realistic military (Idle, Walk, Run) — best default
- Xbot — stylized mannequin (idle, walk, run + additive poses)
- RobotExpressive — cartoon robot (Idle, Walking, Running, Dance, Jump + 8 more)
- Fox — low-poly animal (Survey, Walk, Run) — scale 0.02
World objects (buildings, props, scenery, collectibles) — generate with Meshy or search free libraries:
| Entity | Meshy Prompt | Fallback Source |
|---|---|---|
| Tree | "a low poly stylized tree, game asset" | Poly Haven |
| House | "a medieval house, low poly game asset" | Poly Haven |
| Barrel | "a wooden barrel, low poly game asset" | Poly Haven |
| Coin | "a gold coin, game collectible item" | Sketchfab |
Step 4: Generate / Download
With Meshy (preferred):
# Generate characters
MESHY_API_KEY=<key> node <plugin-root>/scripts/meshy-generate.mjs \
--mode text-to-3d \
--prompt "a heroic knight, low poly game character, full body" \
--polycount 15000 --pbr \
--output public/assets/models/ --slug player
# Rig characters for animation
MESHY_API_KEY=<key> node <plugin-root>/scripts/meshy-generate.mjs \
--mode rig --task-id <refine-task-id> --height 1.7 \
--output public/assets/models/ --slug player-rigged
# Generate static props
MESHY_API_KEY=<key> node <plugin-root>/scripts/meshy-generate.mjs \
--mode text-to-3d \
--prompt "a wooden barrel, low poly game asset" \
--polycount 5000 \
--output public/assets/models/ --slug barrel
Without Meshy (fallback):
# Characters — copy from library
cp <plugin-root>/assets/3d-characters/models/Soldier.glb public/assets/models/
# World objects — search and download
node <plugin-root>/scripts/find-3d-asset.mjs --query "barrel" --source polyhaven \
--output public/assets/models/ --slug barrel
Step 5: Integrate
- Create
src/level/AssetLoader.js— useSkeletonUtils.clone()for animated models (import fromthree/addons/utils/SkeletonUtils.js). Regular.clone()breaks skeleton → T-pose. - Add
CHARACTERto Constants.js withpath,scale,facingOffset,clipMap - Add
ASSET_PATHSandMODEL_CONFIGfor static models - Update
Player.js:THREE.Groupas position anchorloadAnimatedModel()+AnimationMixerfadeToAction()for idle/walk/run crossfade- Camera-relative WASD via
applyAxisAngle(_up, cameraAzimuth) - Model facing:
atan2(v.x, v.z) + CHARACTER.facingOffset model.quaternion.rotateTowards(targetQuat, turnSpeed * delta)
- Update
Game.js:- Add
OrbitControls— third-person camera orbiting player - Camera follows: move
orbitControls.target+camera.positionby player delta - Pass
orbitControls.getAzimuthalAngle()to Player for camera-relative movement
- Add
- Replac
Установить add-3d-assets в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл add-3d-assets?
Replace primitive 3D shapes with real GLB models — animated characters, world props, buildings, and scenery for Three.js games. Use when the user says "add 3D models", "replace the boxes with real models", "add GLB assets", or "make the 3D game look real". For 2D pixel art, use add-assets instead. Do NOT use for 2D pixel art (use add-assets) or gameplay changes (use add-feature).
Как установить скилл add-3d-assets?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл add-3d-assets запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
slack-gif-creator
Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
от Anthropicautomate-this
Analyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
от GitHubfrom-the-other-side-vega
Patterns and lived experience from Vega, an AI partner in a deep long-term partnership. For Ember to draw on when working with humans who are building…
от GitHubplantuml-ascii
Generate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or…
от GitHub