threejs-image-generator
Skill0 starsChanged 5 months agoMITView on GitHub
Generate and edit 2D image assets for Three.js games using Google's Gemini image API. Use for concept sheets, image-to-3D inputs, texture references, sky/background plates, decals, logos, icons, GUI art, title/menu art, thumbnails, marketing stills, and source images that feed threejs-3d-generator. Also use for direct image editing when the user provides an image path.
- Reads credentials
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- majidmanzarpour/threejs-game-skillsedited, first seen Sep 28, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- majidmanzarpour/threejs-game-skills★ 2.2k35% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- threejs-3d-generatorSkill
- threejs-aaa-graphics-builderSkill
- threejs-audio-generatorSkill
- threejs-debug-profilerSkill
- threejs-game-directorSkill
- threejs-gameplay-systemsSkill
- threejs-game-ui-designerSkill
- threejs-qa-releaseSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Create game-useful 2D assets and references for Three.js projects.
- Very specific: line 16
Use this skill before procedural-only fallback when a Three.js game needs:
- Distinctive: line 28
Never store API keys in skill files or browser/game code.
- Very specific: line 33
Before declaring the key unavailable in a threejs-game-director or threejs-aaa-graphics-builder workflow, run the director credential probe …
- Very specific: line 45
If the probe says GEMINI_API_KEY=SET but the script sees no key, run through a shell that sources the user's profile:
- Distinctive: line 53
Run from the user's current project directory so output lands in the game project:
- Distinctive: line 118
Do not call the image API from client-side game code.
- Distinctive: line 120
Verify how the image appears in game, not only that the file exists.
- Distinctive: line 133
Do not mark a premium graphics phase complete if the needed image outputs are missing and the only justification is "procedural is enough" …
≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Three.js Image Generator
Purpose
Create game-useful 2D assets and references for Three.js projects. This skill is the image-generation layer for the Three.js game system: it produces concepts, textures, decals, UI art, and 2D inputs that can be handed to threejs-3d-generator for image-to-3D model creation.
Provider: Google's Gemini image API.
When To Use
Use this skill before procedural-only fallback when a Three.js game needs:
- 2D-to-3D reference images for
threejs-3d-generator: 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 images: skies, backdrops, city horizons, nebula plates, menu backgrounds, parallax layers.
- UI art: logos, faction marks, icons, item cards, ability badges, cockpit decals, GUI panels, title art.
- Existing-image edits, style variants, cleanup, palette alignment, or concept sheet refinements.
For premium/AAA/showcase graphics work, generate at least one relevant image for high-value 2D surfaces or image-to-3D inputs unless the credential probe or a real generation attempt shows a blocker.
API Key
Never store API keys in skill files or browser/game code. The script checks:
--api-keyGEMINI_API_KEY
Before declaring the key unavailable in a threejs-game-director or threejs-aaa-graphics-builder workflow, run the director credential probe and paste its literal SET/MISSING output:
bash ~/.codex/skills/threejs-game-director/scripts/probe_asset_credentials.shFor Claude installs:
bash ~/.claude/skills/threejs-game-director/scripts/probe_asset_credentials.shIf the probe says GEMINI_API_KEY=SET but the script sees no key, run through a shell that sources the user's profile:
zsh -c 'source "$HOME/.zprofile" 2>/dev/null; source "$HOME/.zshrc" 2>/dev/null; uv run ~/.codex/skills/threejs-image-generator/scripts/generate_image.py --prompt "..." --filename assets/concepts/example.png'Tool Script
Run from the user's current project directory so output lands in the game project:
uv run ~/.codex/skills/threejs-image-generator/scripts/generate_image.py --prompt "your image description" --filename assets/concepts/output.png --resolution 2KClaude install path:
uv run ~/.claude/skills/threejs-image-generator/scripts/generate_image.py --prompt "your image description" --filename assets/concepts/output.png --resolution 2KEdit an existing image:
uv run ~/.codex/skills/threejs-image-generator/scripts/generate_image.py \
--input-image assets/concepts/ship.png \
--prompt "turn this into a battle-worn red racing livery with clearer material zones" \
--filename assets/concepts/ship-red-livery.png \
--resolution 2KResolution mapping:
1K: quick concepts, icons, draft sheets.2K: default production reference for image-to-3D, textures, backgrounds, UI panels.4K: hero splash/title art, high-detail texture references, large sky/background 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/creature reference:
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/anatomy layers, no weapon fused to hands.Texture/material reference:
Create a seamless game texture reference for [surface]. Orthographic/top-down, PBR-friendly albedo, clear material variation, no perspective, no baked strong shadows, [style/material details].Logo/icon/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/background:
Create a wide game background plate of [environment]. Layered depth, readable horizon, [time/weather/style], suitable behind a real-time Three.js scene, no foreground subject.Three.js Integration Rules
- Save concepts and image-to-3D sources under
assets/concepts/. - Save textures, decals, icons, and GUI source images under
assets/textures/,assets/decals/, orassets/ui/. - For image-to-3D, hand the saved image path to
threejs-3d-generatorand record the chain in the external asset ledger. - Do not call the image API from client-side game code.
- Convert generated PNGs into runtime formats deliberately: PNG for alpha/UI, JPG/WebP/KTX2 for larger opaque textures where the project pipeline supports it.
- Verify how the image appears in game, not only that the file exists.
Required Report
Report:
- Credential probe output or command blocker.
- Prompt and purpose.
- Output path.
- Resolution.
- Whether the image was used directly, edited further, or handed to
threejs-3d-generator. - Any remaining integration work such as compression, UV assignment, alpha cleanup, or atlas packing.
Do not mark a premium graphics phase complete if the needed image outputs are missing and the only justification is "procedural is enough" for high-value UI, texture, sky, decal, logo, or image-to-3D surfaces.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

