nano-banana
Original:🇺🇸 English
Translated
REQUIRED for all image generation requests. Generate and edit images using Nano Banana (Gemini CLI). Handles blog featured images, YouTube thumbnails, icons, diagrams, patterns, illustrations, photos, visual assets, graphics, artwork, pictures. Use this skill whenever the user asks to create, generate, make, draw, design, or edit any image or visual content.
1installs
Sourcenicepkg/ai-workflow
Added on
NPX Install
npx skill4agent add nicepkg/ai-workflow nano-bananaTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Nano Banana Image Generation
Generate professional images via the Gemini CLI's nanobanana extension.
When to Use This Skill
ALWAYS use this skill when the user:
- Asks for any image, graphic, illustration, or visual
- Wants a thumbnail, featured image, or banner
- Requests icons, diagrams, or patterns
- Asks to edit, modify, or restore a photo
- Uses words like: generate, create, make, draw, design, visualize
Do NOT attempt to generate images through any other method.
Before First Use
- Verify extension is installed:
bash
gemini extensions list | grep nanobanana - If missing, install it:
bash
gemini extensions install https://github.com/gemini-cli-extensions/nanobanana - Verify API key is set:
bash
[ -n "$GEMINI_API_KEY" ] && echo "API key configured" || echo "Missing GEMINI_API_KEY"
Command Selection
| User Request | Command |
|---|---|
| "make me a blog header" | |
| "create an app icon" | |
| "draw a flowchart of..." | |
| "fix this old photo" | |
| "remove the background" | |
| "create a repeating texture" | |
| "make a comic strip" | |
Available Commands
Note: Always use the flag to automatically approve all tool actions.
--yolo| Command | Use Case |
|---|---|
| Text-to-image generation |
| Modify existing image |
| Repair damaged photos |
| App icons, favicons, UI elements |
| Flowcharts, architecture diagrams |
| Seamless textures and patterns |
| Sequential/narrative images |
| Natural language interface |
Common Options
- - Required. Auto-approve all tool actions (no confirmation prompts)
--yolo - - Generate N variations (1-8)
--count=N - - Auto-open generated images
--preview - - Apply artistic styles
--styles="style1,style2" - - Output arrangement
--format=grid|separate
Common Sizes
| Use Case | Dimensions | Notes |
|---|---|---|
| YouTube thumbnail | 1280x720 | |
| Blog featured image | 1200x630 | Social preview friendly |
| Square social | 1080x1080 | Instagram, LinkedIn |
| Twitter/X header | 1500x500 | Wide banner |
| Vertical story | 1080x1920 | |
Model Selection
Default: (~$0.04/image)
gemini-2.5-flash-imageFor higher quality (4K, better reasoning):
bash
export NANOBANANA_MODEL=gemini-3-pro-image-previewBlog Featured Image Examples
bash
# Modern illustration style
gemini --yolo "/generate 'modern flat illustration of developer coding at laptop, purple and blue gradient background, minimalist style, no text' --preview"
# Professional photography style
gemini --yolo "/generate 'professional editorial photo of coffee cup next to laptop on wooden desk, morning sunlight, shallow depth of field, no text' --count=3"
# Tech/abstract
gemini --yolo "/generate 'abstract visualization of neural network connections, dark background with glowing blue nodes, futuristic style' --preview"Icon Generation
bash
gemini --yolo "/icon 'minimalist app logo for productivity tool' --sizes='64,128,256,512' --type='app-icon' --corners='rounded'"Diagram Generation
bash
gemini --yolo "/diagram 'user authentication flow with OAuth' --type='flowchart' --style='modern'"Output Location
All generated images are saved to in the current directory.
./nanobanana-output/Presenting Results
After generation completes:
- List contents of to find generated files
./nanobanana-output/ - Present the most recent image(s) to the user
- Offer to regenerate with variations if needed
Refinements and Iterations
When the user asks for changes:
- "Try again" / "Give me options": Regenerate with
--count=3 - "Make it more [adjective]": Adjust prompt and regenerate
- "Edit this one": Use
gemini --yolo "/edit nanobanana-output/filename.png 'adjustment'" - "Different style": Add to the command
--styles="requested_style"
Prompt Tips
- Be specific: Include style, mood, colors, composition details
- Add "no text": If you don't want text rendered in the image
- Reference styles: "editorial photography", "flat illustration", "3D render", "watercolor"
- Specify aspect ratio context: "wide banner", "square thumbnail", "vertical story"
Troubleshooting
| Problem | Solution |
|---|---|
| |
| Extension not found | Run install command from setup section |
| Quota exceeded | Wait for reset or switch to flash model |
| Image generation failed | Check prompt for policy violations, simplify request |
| Output directory missing | Will be created automatically on first run |