Agent skill · Backend & API

gemini-imagegen

This skill should be used when generating and editing images using the Gemini API (Nano Banana Pro). It applies when creating images from text prompts, editing existing images, applying style transfers, generating logos with text, creating stickers, product mockups, or any image generation/manipulation task. Supports text-to-image, image editing, multi-turn refinement, and composition from multiple reference images.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill gemini-imagegen --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 8 KB
Bundled scripts: none
Path: skills/ai-llm/gemini-imagegen/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Gemini Image Generation (Nano Banana Pro) Generate and edit images using Google's Gemini API. Use `op run -- uv run ...` to run Python scripts. ## Default Model | Model | Resolution | Best For | |-------|------------|----------| | `gemini-3-pro-image-preview` | 1K-4K | All image generation (default) | **Note:** Always use this Pro model. Only use a different model if explicitly requested. ## Quick Reference ### Default Settings - **Model:** `gemini-3-pro-image-preview` - **Resolution:** 1K (default, options: 1K, 2K, 4K) - **Aspect Ratio:** 1:1 (default) ### Available Aspect Ratios `1:1`, `2:3`, `3:2`, `3:4`, `4:3`, `4:5`, `5:4`, `9:16`, `16:9`, `21:9` ### Available Resolutions `1K` (default), `2K`, `4K` ## CLI Scripts Ready-to-use scripts for common tasks. All scripts are in the `scripts/` directory. ### Generate Image from Text ```bash op run -- uv run scripts/generate.py "A sunset over mountains" -o sunset.jpg op run -- uv run scripts/generate.py "A minimalist logo" --aspect 1:1 --size 2K -o logo.jpg ``` Options: - `-o, --output`: Output file path (default: output.jpg) - `--aspect`: Aspect ratio (1:1, 16:9, 9:16, etc.) - `--size`: Resolution (1K, 2K, 4K) ### Edit an Existing Im

What's inside
Steps it walks through
  1. Default Model
  2. Quick Reference
  3. Default Settings
  4. Available Aspect Ratios
  5. Available Resolutions
  6. CLI Scripts
  7. Generate Image from Text
  8. Edit an Existing Image
  9. Compose Multiple Images
  10. Core API Pattern
  11. Custom Resolution & Aspect Ratio
  12. Resolution Examples
  13. Aspect Ratio Examples
  14. Editing Images
Ships with 1 file
  • metadata.json
Commands it runs
op run -- uv run scripts/generate.py "A sunset over mountains" -o sunset.jpg
op run -- uv run scripts/generate.py "A minimalist logo" --aspect 1:1 --size 2K -o logo.jpg
op run -- uv run scripts/edit.py input.jpg "Add a sunset to the sky" -o edited.jpg
op run -- uv run scripts/edit.py photo.png "Make it look like a watercolor painting" --size 2K
op run -- uv run scripts/compose.py "Create a group photo in an office" person1.jpg person2.jpg -o group.jpg
op run -- uv run scripts/compose.py "Combine these into a collage" img1.png img2.png img3.png --aspect 16:9
file image.png
If output shows "JPEG image data" - rename to .jpg!
More from claude-skill-registry
All skills →
About this skill
What does the gemini-imagegen skill do?

This skill should be used when generating and editing images using the Gemini API (Nano Banana Pro). It applies when creating images from text prompts, editing existing images, applying style transfers, generating logos with text, creating stickers, product mockups, or any image generation/manipulation task. Supports text-to-image, image editing, multi-turn refinement, and composition from multiple reference images.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill gemini-imagegen --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going