threejs-image-generator
Skill by majidmanzarpour
Generates and edits 2D image assets for Three.js games using Google's Gemini image API. It serves game developers who need concept sheets, textures, decals, UI art and marketing stills.
Install threejs-image-generator
Built from the published package, never by AI.
git clone --depth 1 https://github.com/majidmanzarpour/threejs-game-skills /tmp/threejs-game-skills && mkdir -p ~/.claude/skills && cp -r /tmp/threejs-game-skills/skills/threejs-image-generator ~/.claude/skills/threejs-image-generatorRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install threejs-image-generator in Claude Code
git clone --depth 1 https://github.com/majidmanzarpour/threejs-game-skills /tmp/threejs-game-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/threejs-game-skills/skills/threejs-image-generator ~/.gemini/antigravity-cli/skills/threejs-image-generatorAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install threejs-image-generator in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
threejs-image-generator is an agent skill that creates and edits 2D image assets for Three.js games using Google's Gemini image API. It covers concept sheets, image-to-3D reference images, texture and material references, sky and background plates, decals, logos, icons, GUI art, title and menu art, and marketing stills. It can also edit an image the user supplies by path.
The skill runs a Python script through uv, reading the API key from --api-key or GEMINI_API_KEY. Users choose a model (gemini-3-pro-image by default, gemini-3.1-flash-image, or gemini-3.1-flash-lite-image), a resolution and an aspect ratio. Outputs are saved under assets folders in the game project and can be handed to threejs-3d-generator for image-to-3D. The API is a tooling step and is never called from game code. It suits Three.js game developers needing 2D art.
Written from the project's SKILL.md and checked against it.
What it can do
- Image-to-3D referencesCreates clean reference images of characters, creatures, vehicles, props and pickups for 3D generation.
- Texture and material referencesMakes top-down texture references for terrain, rock, metal, sci-fi panels, trim sheets and decals.
- Sky and background platesGenerates wide skies, horizon plates, nebulas and menu backgrounds for real-time Three.js scenes.
- UI artProduces logos, faction marks, icons, item cards, ability badges, GUI panels and title art.
- Image editingEdits an existing image from a supplied path, for style variants, cleanup and palette alignment.
- Multi-reference consistencyAccepts multiple reference images through repeated input image options for consistent assets.
- Model and resolution choiceOffers three Gemini image models with resolutions from 512px up to 4K.
- API key probeChecks whether the API key is set and can validate model access without spending image credits.
What you need
- Google Gemini API key (GEMINI_API_KEY or --api-key)
- uv to run the generate_image.py script
Try asking
- Create a 2K concept sheet of a battle-worn racing ship for my Three.js game
- Make a wide twilight cyberpunk skyline backdrop plate for my game menu
- Edit assets/concepts/ship.png into a red racing livery
Good to know
- The API is a tooling step and is never called from game code.
- The preview models gemini-3-pro-image-preview and gemini-3.1-flash-image-preview were shut down on June 25, 2026.
- Wide banner ratios such as 4:1 and 1:8 are listed for gemini-3.1-flash-image.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/threejs-image-generator/SKILL.md, skills/threejs-image-generator/scripts/generate_image.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB -
agents/openai.yaml272 B -
scripts/generate_image.py10 KB
Alternatives to threejs-image-generator
All alternatives →PaperBanana generates publication-quality academic diagrams from a paper's methodology text and figure caption. It is aimed at researchers preparing figures for venues such as NeurIPS, ICML, and ACL.
Creates a monochrome technical wireframe design system for dark diagnostic interfaces. It covers layout, typography, info labels, widgets and an exploded wireframe centerpiece. It is for designers and developers building teardown, systems dashboard or specification-style screens.
Guides an AI assistant through embedding interactive Spline.design 3D scenes in web projects. It covers vanilla, React, Next.js, Vue and iframe setups, for developers adding 3D to websites.
Code Slice Hero is a HyperFrames headline block. A tiled surface flips cell by cell to reveal a second headline behind the first, at 1920×1080 and 8 seconds.
Generates patent-office-compliant figures and converts drawings through the PatentFig AI API. Built for patent filers who need USPTO or EPO line art, CAD-ready vectors, or filing-ready TIFF, PDF, or PNG files.
Creates a framed dark technical design system for AI assistants, using border-gradient shells, asymmetrical grid panels, and mono labels. Suited to premium, instrument-like interfaces that need visible boundaries. Published by MengTo.
Compare with paperbanana, technical-wireframe-info-layout or spline-3d-integration
threejs-image-generator: common questions
Which Gemini models does threejs-image-generator use?
It offers gemini-3-pro-image (default), gemini-3.1-flash-image and gemini-3.1-flash-lite-image. Each model has its own list of supported resolutions.
Does this skill generate 3D meshes?
No. The source says 3D mesh generation belongs to the threejs-3d-generator skill, which takes image outputs from this skill as input.
Can game code call the Gemini image API directly?
No. The source states the API is a tooling step and is never called from game code.
How do I install threejs-image-generator?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is threejs-image-generator free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is threejs-image-generator safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to threejs-image-generator?
Similar skills: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.
