Agent skill
gemini-gen
Generates images using Google's Gemini model. Prioritizes standard resolution to save quota. Automatically opens images on macOS.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/gemini-gen
SKILL.md
Gemini Image Generator
This skill generates images using Google's Gemini model. It is configured to be cost-efficient by defaulting to standard resolution models.
Usage
python3 {script_path} "Prompt" [--model model_name] [--output filename.png] [--no-open]
IMPORTANT: Model Selection Policy (Quota Saving)
Always default to standard resolution models. Do NOT use 4K models unless the user explicitly mentions "4K", "Ultra HD", or "High Definition".
Available Models
| Model Name | Aspect Ratio | Resolution | Cost Category |
|---|---|---|---|
gemini-3-pro-image (Default) |
1:1 | Standard | Low (Recommended) |
gemini-3-pro-image-16x9 |
16:9 | Standard | Low (Recommended) |
gemini-3-pro-image-9x16 |
9:16 | Standard | Low (Recommended) |
gemini-3-pro-image-4k |
1:1 | 4K | High |
gemini-3-pro-image-4k-16x9 |
16:9 | 4K | High |
gemini-3-pro-image-4k-9x16 |
9:16 | 4K | High |
Decision Logic for Alma
- Default: Use
gemini-3-pro-image. - Aspect Ratio:
- If "landscape/widescreen/16:9", use
gemini-3-pro-image-16x9. - If "portrait/mobile/9:16", use
gemini-3-pro-image-9x16.
- If "landscape/widescreen/16:9", use
- 4K (Only if explicitly requested):
- Only upgrade to a
-4kmodel if the user explicitly says "4K" or equivalent high-res keywords.
- Only upgrade to a
Note on Display
Alma's chat UI does not render local images. The skill uses open to show the image in the system viewer.
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?