threejs-image-generator
БесплатноЗапускает вложенные скриптыНе проверенGenerate and edit 2D image assets for Three.js games with Google's Gemini image API: concept sheets, image-to-3D inputs, texture and material references, sky…
от majidmanzarpour★ 3 309 звёзд на GitHubОб этом скилле
Three.js Image Generator
The 2D layer for Three.js games: concepts, textures, decals, UI art, and the source images that feed threejs-3d-generator for image-to-3D.
Resolve <this-skill-dir> from the actual loaded skill file. Resolve sibling skills beside it first, then use the runner's discovered paths. Do not mix installed versions or assume a particular home directory.
When to use
- Image-to-3D references: characters, creatures, buildings, ships, cars, weapons, props, pickups, terrain modules.
- Texture and material references: terrain, road, rock, sand, metal, sci-fi panels, trim sheets, decals, hazard labels, signs.
- Environment plates: skies, backdrops, city horizons, nebulas, menu backgrounds, parallax layers.
- UI art: logos, faction marks, icons, item cards, ability badges, cockpit decals, GUI panels, title art.
- Editing an existing image: style variants, cleanup, palette alignment, concept refinement.
For premium graphics work with generation in scope, generate the high-value 2D surfaces rather than defaulting to hand-coded CSS and flat colors. Respect explicitly procedural art and external-service restrictions. Choose assets from the game's design, not a fixed quota of logos, skies, or icons.
API key
The script reads --api-key or GEMINI_API_KEY. Keys never go in skill files, game code, or reports.
uv run <this-skill-dir>/scripts/generate_image.py probe # GEMINI_API_KEY=SET|MISSING
uv run <this-skill-dir>/scripts/generate_image.py probe --validate # verifies key + model access (no image credits)
Keys defined only in a shell profile can be absent from the process env. If the plain probe unexpectedly prints MISSING, use threejs-game-director/scripts/probe_asset_credentials.sh, which sources the profile and probes all three providers.
Models and Aspect Ratios
Preview retirement:
gemini-3-pro-image-previewandgemini-3.1-flash-image-previewwere shut down on June 25, 2026. Use the stable GA models below.
Model (--model) |
Best for | Resolutions (--resolution) |
|---|---|---|
gemini-3-pro-image (default) |
Hero concepts, crisp UI/title typography, complex image-to-3D inputs, multi-turn edits | 1K, 2K (default), 4K |
gemini-3.1-flash-image |
Fast production textures, skies, multi-reference asset consistency, wide banners/trim sheets (1:4, 4:1, 1:8, 8:1) |
512px, 1K, 2K, 4K |
gemini-3.1-flash-lite-image |
Rapid low-cost draft icons and concept exploration | 512px, 1K, 2K |
Recommended --aspect-ratio by asset role: 1:1 for textures, decals, icons, and single-prop 3D inputs · 3:4 for full-body T-pose character sheets · 16:9 or 21:9 for skies, horizon plates, and menu backgrounds · 4:1 (with gemini-3.1-flash-image) for trim sheets and HUD banners.
Commands
Run from the game project so output lands in it:
uv run <this-skill-dir>/scripts/generate_image.py \
--prompt "your image description" --filename assets/concepts/output.png \
--aspect-ratio 1:1 --resolution 2K
uv run <this-skill-dir>/scripts/generate_image.py \
--model gemini-3.1-flash-image --aspect-ratio 16:9 --resolution 2K \
--prompt "wide twilight cyberpunk skyline backdrop plate, readable horizon, no foreground subject" \
--filename assets/textures/sky-backdrop.png
# Edit or enforce multi-reference consistency (repeat --input-image for multiple references):
uv run <this-skill-dir>/scripts/generate_image.py \
--input-image assets/concepts/ship.png \
--prompt "battle-worn red racing livery with clearer material zones" \
--filename assets/concepts/ship-red-livery.png --resolution 2K
Resolution: 512px (Flash) / 1K for quick concepts, icons, and drafts · 2K (default) for production references, image-to-3D, textures, backgrounds, UI panels · 4K for hero splash art, high-detail texture references, and large sky plates.
Prompt patterns
Image-to-3D reference:
Create a clean 3D-generation reference image of [asset]. Centered single object, full object visible, plain light background, readable silhouette, clear material zones, game-ready [genre/style], no motion blur, no cropped parts, no text.
Riggable character or creature:
Create a full-body [T-pose / A-pose / side-view creature] reference for 3D rigging: [details]. Symmetric stance, visible hands/feet/limbs, plain background, readable costume and anatomy layers, no weapon fused to hands.
Texture or material:
Create a seamless game texture reference for [surface]. Orthographic top-down, PBR-friendly albedo, clear material variation, no perspective, no baked strong shadows, [style details].
Logo, icon, or UI art:
Create a crisp game UI [logo/icon/badge/panel] for [faction/item/ability]. Transparent-friendly silhouette, high contrast at small size, [genre styling], no tiny unreadable text.
Sky or background:
Create a wide game background plate of [environment]. Layered depth, readable horizon, [time/weather/st
Установить threejs-image-generator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл threejs-image-generator?
Generate and edit 2D image assets for Three.js games with Google's Gemini image API: concept sheets, image-to-3D inputs, texture and material references, sky and background plates, decals, logos, icons, GUI art, title and menu art, and marketing stills. Use for 2D asset creation or image editing; not for runtime procedural VFX noise/flowmaps (threejs-aaa-vfx-builder) or 3D mesh generation (threejs-3d-generator).
Как установить скилл threejs-image-generator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл threejs-image-generator запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic