nano-banana-image-gen
Skill7 starsChanged 9 months agoMITView on GitHub
Generate images using the `imagen` CLI (Gemini and OpenAI models). Use when the user says "nano banana", "generate an image", "create an image", "make me a picture", "image gen", "draw", "illustrate", or wants to create images from text prompts.
- Pipes a download into a shell
- Reads credentials
2 other projects use a version of this.
Adopted by
Most recently taken up by
- hukusuke1007/agent-skillstheir own version, first seen Apr 10, 2026
- kevinbadi/ai-os-skillstheir own version, first seen Mar 28, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- kevinbadi/ai-os-skills★ 69same name
- hukusuke1007/agent-skills★ 8same name
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 repository15 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- creative-directionSkill
- find-bugsSkill
- five-whysSkill
- idea-to-icpSkill
- self-improvementSkill
- simplifySkill
- tpm-roadmap-sliceSkill
- tpm-spec-trace-idsSkill
- tpm-spec-verifySkill
- ui-design-iterationSkill
- webdev-combobox-autocompleteSkill
- webdev-filter-query-builderSkill
- webdev-token-inputSkill
- youtube-transcriptSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 6 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
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 62
If the user provides $ARGUMENTS, treat them as the image prompt.
- Very specific: line 66
Before generating, verify imagen is available:
- Very specific: line 74
Ask them: "Would you like me to install the imagen CLI?
- Distinctive: line 75
If they agree, run:
- Very specific: line 79
After installation, verify it worked: imagen --version
- Distinctive: line 83
Check for API keys:
- Distinctive: line 92
If no keys are found for the provider needed by the chosen model:
- Distinctive: line 94
Ask them to set up keys via environment variable or config file:
- Distinctive: line 102
Do NOT proceed with generation until at least one relevant key is configured
- Distinctive: line 117
Only include flags that differ from defaults.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Image Generation with imagen CLI
Generate images using the imagen CLI — a unified interface for Google Gemini and OpenAI image models. Supports text prompts, multiple aspect ratios, output formats, batch generation, and more.
Prerequisites
- imagen CLI: Install via
curl -fsSL https://raw.githubusercontent.com/ozten/imagen/main/scripts/install.sh | bash - API Keys: Configure via environment variables or config file (see below)
Quick Start
# Basic generation (uses default nano-banana / gemini-3-pro-image-preview)
imagen "A cat wearing a top hat" -o cat.jpg
# With aspect ratio
imagen "Mountain panorama" --aspect-ratio 16:9 -o mountains.jpg
# Using OpenAI model
imagen "Cyberpunk cityscape" -m gpt-1.5 -o city.png
# Multiple images
imagen "Abstract art" -n 3 -o art.jpg
# Higher resolution
imagen "Detailed landscape" --size 2K -o landscape.jpg
# Read prompt from file
imagen --prompt-file prompt.txt -o result.jpgModels
| Alias | Model ID | Provider |
nano-banana (default) | gemini-3-pro-image-preview | Gemini |
gpt-1.5 | gpt-image-1.5 | OpenAI |
gpt-1 | gpt-image-1 | OpenAI |
gpt-1-mini | gpt-image-1-mini | OpenAI |
Options
| Option | Values | Default | Description |
-m, --model | see Models table | nano-banana | Image generation model |
-a, --aspect-ratio | 1:1, 16:9, 9:16, 4:3, 3:4, etc. | 1:1 | Output aspect ratio |
-s, --size | 1K, 2K, 4K | 1K | Image resolution |
-q, --quality | auto, low, medium, high | auto | Quality (OpenAI models only) |
-f, --format | jpeg, png, webp | jpeg | Output format |
-o, --output | path | auto-generated | Output file path |
-n, --count | integer | 1 | Number of images to generate |
-p, --prompt-file | path | none | Read prompt from file |
-v, --verbose | flag | off | Verbose output |
Workflow
If the user provides $ARGUMENTS, treat them as the image prompt. Otherwise ask what they'd like to generate.
Step 0: Check imagen is installed
Before generating, verify imagen is available:
which imagenIf imagen is NOT found:
- Tell the user that the
imagenCLI is required but not installed - Ask them: "Would you like me to install the
imagenCLI? It's a lightweight Rust binary from https://github.com/ozten/imagen" - If they agree, run:
curl -fsSL https://raw.githubusercontent.com/ozten/imagen/main/scripts/install.sh | bash - After installation, verify it worked:
imagen --version
If API keys are NOT configured:
Check for API keys:
# Check env vars
echo "${GEMINI_API_KEY:+gemini_ok}" "${OPENAI_API_KEY:+openai_ok}"
# Check config file
cat ~/.config/imagen/config.toml 2>/dev/nullIf no keys are found for the provider needed by the chosen model:
- Tell the user which API key is needed (Gemini for nano-banana, OpenAI for gpt-* models)
- Ask them to set up keys via environment variable or config file:
- Environment variable:
export GEMINI_API_KEY="your-key"orexport OPENAI_API_KEY="your-key" - Config file (
~/.config/imagen/config.toml):[keys] gemini = "your-gemini-api-key" openai = "your-openai-api-key"
- Environment variable:
- Do NOT proceed with generation until at least one relevant key is configured
Step 1: Generate the image
Determine the prompt, output path, model, aspect ratio, and other options, then run:
imagen "PROMPT" \
--model MODEL \
--aspect-ratio ASPECT_RATIO \
--size SIZE \
--format FORMAT \
--output OUTPUT_PATHOnly include flags that differ from defaults.
Step 2: Report results
Report the output file path and parameters used. If generation fails, check:
- API key is configured for the chosen provider
- Prompt doesn't violate content policies
- Model alias is valid
Batch Generation
For multiple images, either use -n for the same prompt or run imagen multiple times with different prompts:
# Same prompt, multiple variations
imagen "Abstract art" -n 3 -o abstract.jpg
# Different prompts in sequence
imagen "Panel 1: A sunny beach" -o panel_1.jpg
imagen "Panel 2: Same beach at sunset" -o panel_2.jpgIntegration
Other skills and pipelines can delegate image generation to this skill by invoking the imagen CLI directly.
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.

