Agent skill
gemini-image-generator
Generate images using Google Gemini with customizable options
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/gemini-image-generator
SKILL.md
gemini-image-generator
Instructions
Use this skill to generate images using Google Gemini's image generation model. The skill supports:
- Text-to-image generation from prompts
- Image-to-image generation with a reference image
- Multiple output sizes (1K, 2K, 4K)
- Custom output paths
The API key must be set via the GEMINI_API_KEY environment variable.
Parameters
--prompt(required): The text prompt describing the image to generate--output(required): Output file path for the generated image--reference: Optional reference image for style/content guidance--size: Image size - "1K", "2K", or "4K" (default: 4K)
Examples
Basic text-to-image generation
./scripts/generate.py --prompt "A serene mountain landscape at sunset" --output images/landscape.png
With reference image for style guidance
./scripts/generate.py --prompt "Same character but wearing a party hat" --reference images/character.png --output images/party.png
Different output size
./scripts/generate.py --prompt "Abstract art" --output art.png --size 2K
Setup
Before first use, set up the virtual environment:
cd scripts && python3 -m venv venv && ./venv/bin/pip install -r requirements.txt
Set your API key:
export GEMINI_API_KEY="your-api-key-here"
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?