/nano-banana
Generate and edit images using the Gemini API. Text-to-image, image editing, multi-turn iteration, 4K resolution, search grounding.
$ npx -y skills add suitedaces/dorabot --skill nano-banana --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/nano-banana
Context preview
The summary Claude sees to decide when to auto-load this skill.
Generate and edit images using the Gemini API. Text-to-image, image editing, multi-turn iteration, 4K resolution, search grounding.
SKILL.md
nano-banana.SKILL.mdname: image-gen
description: "Generate and edit images using the Gemini API. Text-to-image, image editing, multi-turn iteration, 4K resolution, search grounding."
metadata:
{ "requires": { "bins": ["curl", "jq"], "env": ["GEMINI_API_KEY"] } }Image Generation Skill
Generate and edit images via Gemini's native image generation API using `curl`.
Models
| Model | ID | Best for | |-------|----|----------| | Nano Banana | `gemini-2.5-flash-image` | Fast, high-volume, low-latency | | Nano Banana Pro | `gemini-3-pro-image-preview` | Pro asset production, complex prompts, accurate text rendering, 4K |
Default to `gemini-2.5-flash-image` unless the user asks for high quality, 4K, search grounding, or text-heavy images.
Text-to-Image
curl -s -X POST \
"https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash-image:generateContent" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [{"parts": [{"text": "YOUR PROMPT HERE"}]}]
}' | jq -r '.candidates[0].content.parts[] | select(.inlineData) | .inlineData.data' | base64 -D > output.pngRead the output image file to show it to the user.
Image Editing (image + text → image)
Encode an existing image as base64 and send it alongside a text prompt:
BASE64_IMG=$(base64 -i input.png)
curl -s -X POST \
"https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash-image:generateContent" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H "Content-Type: application/json" \
-d "{
\"contents\": [{
\"parts\": [
{\"text\": \"YOUR EDIT PROMPT HERE\"},
{\"inline_data\": {\"mime_type\": \"image/png\", \"data\": \"$BASE64_IMG\"}}
]
}]
}" | jq -r '.candidates[0].content.parts[] | select(.inlineData) | .inlineData.data' | base64 -D > output.pngPro Model Options
When using `gemini-3-pro-image-preview`, you can set aspect ratio and resolution:
curl -s -X POST \
"https://generativelanguage.googleapis.com/v1beta/models/gemini-3-pro-image-preview:generateContent" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [{"parts": [{"text": "YOUR PROMPT HERE"}]}],
"generationConfig": {
"responseModalities": ["TEXT", "IMAGE"],
"imageConfig": {
"aspectRatio": "16:9",
"imageSize": "2K"
}
}
}' | jq -r '.candidates[0].content.parts[] | select(.inlineData) | .inlineData.data' | base64 -D > output.pngAspect Ratios
`1:1`, `2:3`, `3:2`, `3:4`, `4:3`, `4:5`, `5:4`, `9:16`, `16:9`, `21:9`
Resolutions (Pro only)
`1K` (default), `2K`, `4K` — must be uppercase K.
Search Grounding (Pro only)
Generate images based on real-time info (weather, news, etc.):
curl -s -X POST \
"https://generativelanguage.googleapis.com/v1beta/models/gemini-3-pro-image-preview:generateContent" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [{"parts": [{"text": "YOUR PROMPT HERE"}]}],
"tools": [{"google_search": {}}],
"generationConfig": {
"responseModalities": ["TEXT", "IMAGE"]
}
}' | jq -r '.candidates[0].content.parts[] | select(.inlineData) | .inlineData.data' | base64 -D > output.pngHandling Responses
The API returns JSON with parts that can contain text and/or image data. Extract text and image separately:
# save full response
RESPONSE=$(curl -s -X POST ... )
# extract text (if any)
echo "$RESPONSE" | jq -r '.candidates[0].content.parts[] | select(.text) | .text'
# extract and save image
echo "$RESPONSE" | jq -r '.candidates[0].content.parts[] | select(.inlineData) | .inlineData.data' | base64 -D > output.png
Workflow
1. Understand what the user wants to generate or edit 2. Pick the right model (flash for speed, pro for quality/text/4K) 3. Write a detailed, descriptive prompt — more detail = better results 4. Run the curl command, save the image 5. Read the image file to display it inline 6. If the user wants edits, use the image editing flow with the previous output as input
Tips
- Prompts should be descriptive and specific — style, composition, lighting, mood
- For image editing, describe what to change, not what to keep
- Pro model has a "thinking" mode — may take longer but produces better results
- All generated images include a SynthID watermark
- Pro supports up to 14 reference images in a single request (up to 6 objects + 5 humans)
- If the response has no `inlineData`, check for error messages in the JSON
Read more
name: image-gen
description: "Generate and edit images using the Gemini API. Text-to-image, image editing, multi-turn iteration, 4K resolution, search grounding."
metadata:
{ "requires": { "bins": ["curl", "jq"], "env": ["GEMINI_API_KEY"] } }Image Generation Skill
Generate and edit images via Gemini's native image generation API using `curl`.
Models
| Model | ID | Best for | |-------|----|----------| | Nano Banana | `gemini-2.5-flash-image` | Fast, high-volume, low-latency | | Nano Banana Pro | `gemini-3-pro-image-preview` | Pro asset production, complex prompts, accurate text rendering, 4K |
Default to `gemini-2.5-flash-image` unless the user asks for high quality, 4K, search grounding, or text-heavy images.
Text-to-Image
curl -s -X POST \
"https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash-image:generateContent" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [{"parts": [{"text": "YOUR PROMPT HERE"}]}]
}' | jq -r '.candidates[0].content.parts[] | select(.inlineData) | .inlineData.data' | base64 -D > output.pngRead the output image file to show it to the user.
Image Editing (image + text → image)
Encode an existing image as base64 and send it alongside a text prompt:
BASE64_IMG=$(base64 -i input.png)
curl -s -X POST \
"https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash-image:generateContent" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H "Content-Type: application/json" \
-d "{
\"contents\": [{
\"parts\": [
{\"text\": \"YOUR EDIT PROMPT HERE\"},
{\"inline_data\": {\"mime_type\": \"image/png\", \"data\": \"$BASE64_IMG\"}}
]
}]
}" | jq -r '.candidates[0].content.parts[] | select(.inlineData) | .inlineData.data' | base64 -D > output.pngPro Model Options
When using `gemini-3-pro-image-preview`, you can set aspect ratio and resolution:
curl -s -X POST \
"https://generativelanguage.googleapis.com/v1beta/models/gemini-3-pro-image-preview:generateContent" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [{"parts": [{"text": "YOUR PROMPT HERE"}]}],
"generationConfig": {
"responseModalities": ["TEXT", "IMAGE"],
"imageConfig": {
"aspectRatio": "16:9",
"imageSize": "2K"
}
}
}' | jq -r '.candidates[0].content.parts[] | select(.inlineData) | .inlineData.data' | base64 -D > output.pngAspect Ratios
`1:1`, `2:3`, `3:2`, `3:4`, `4:3`, `4:5`, `5:4`, `9:16`, `16:9`, `21:9`
Resolutions (Pro only)
`1K` (default), `2K`, `4K` — must be uppercase K.
Search Grounding (Pro only)
Generate images based on real-time info (weather, news, etc.):
curl -s -X POST \
"https://generativelanguage.googleapis.com/v1beta/models/gemini-3-pro-image-preview:generateContent" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [{"parts": [{"text": "YOUR PROMPT HERE"}]}],
"tools": [{"google_search": {}}],
"generationConfig": {
"responseModalities": ["TEXT", "IMAGE"]
}
}' | jq -r '.candidates[0].content.parts[] | select(.inlineData) | .inlineData.data' | base64 -D > output.pngHandling Responses
The API returns JSON with parts that can contain text and/or image data. Extract text and image separately:
# save full response RESPONSE=$(curl -s -X POST ... ) # extract text (if any) echo "$RESPONSE" | jq -r '.candidates[0].content.parts[] | select(.text) | .text' # extract and save image echo "$RESPONSE" | jq -r '.candidates[0].content.parts[] | select(.inlineData) | .inlineData.data' | base64 -D > output.png
Workflow
1. Understand what the user wants to generate or edit 2. Pick the right model (flash for speed, pro for quality/text/4K) 3. Write a detailed, descriptive prompt — more detail = better results 4. Run the curl command, save the image 5. Read the image file to display it inline 6. If the user wants edits, use the image editing flow with the previous output as input
Tips
- Prompts should be descriptive and specific — style, composition, lighting, mood
- For image editing, describe what to change, not what to keep
- Pro model has a "thinking" mode — may take longer but produces better results
- All generated images include a SynthID watermark
- Pro supports up to 14 reference images in a single request (up to 6 objects + 5 humans)
- If the response has no `inlineData`, check for error messages in the JSON
A 24/7 self-learning AI agent with an integrated IDE workspace that runs itself. Works with your existing Claude Code or OpenAI Codex subscription. No extra API key needed.
Repo: suitedaces/dorabot
Other skills on dorabot.
- /agent-swarm-orchestation
Master multi-agent orchestration using Claude Code's TeammateTool and Task system. Use when coordinating multiple agents, running parallel code reviews, creating pipeline workflows with dependencies, building self-organizing task queues, or any task benefiting from
Open skill - /github
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Open skill - /himalaya
CLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).
Open skill - /macos
Control macOS via AppleScript/osascript. Manage windows (move, resize, tile), apps (launch, quit, focus), system (volume, dark mode, notifications), Spotify, browsers, Calendar, Reminders, Finder, and clipboard. Use when the user asks to control their Mac, arrange windows,
Open skill - /meme
Generate memes using the free memegen.link API. Create image memes from 200+ templates with custom top/bottom text, or use textual meme formats.
Open skill - /onboard
Personalize the agent — interview the user to build their profile (USER.md) and craft the agent's personality (SOUL.md). Triggered by 'onboard', 'personalize', 'set up my soul', etc.
Open skill

