From Nano Banana Pro
Generate or edit photorealistic images with perfect text rendering using Nano Banana Pro (Gemini 3 Pro Image). Automatically enhances prompts for this reasoning-based model and supports aspect ratio, resolution, and reference-image editing. Use when users ask to create or edit images, logos, infographics, posters, diagrams, wallpapers, or any visual content.
How this skill is triggered — by the user, by Claude, or both
Slash command
/nanobanana:nanobananaThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill enables high-quality image generation using Nano Banana Pro via the Gemini API. It automatically transforms user requests into optimized prompts that exploit Nano Banana Pro's unique capabilities: perfect text rendering, complex reasoning for infographics, and photorealistic consistency.
This skill enables high-quality image generation using Nano Banana Pro via the Gemini API. It automatically transforms user requests into optimized prompts that exploit Nano Banana Pro's unique capabilities: perfect text rendering, complex reasoning for infographics, and photorealistic consistency.
Nano Banana Pro is a reasoning engine, not just a pattern matcher. It requires clear, natural language directives describing the scene's logic, lighting, and exact textual content. Avoid "word salad" keywords like "4k, trending on artstation."
When a user requests an image, follow these steps:
Identify which pattern applies:
Use this modular structure (plain text, no markdown):
[Subject & Action] + [Context & Environment] + [Specific Text/Data] + [Style & Medium] + [Technical Parameters]
1. Subject & Action (The "Who" and "What")
2. Specific Text & Data (The Superpower)
3. Context & Environment
4. Style & Medium
5. Technical Parameters
Pattern A: Infographic (Reasoning Heavy)
Pattern B: Typographic (Text Heavy)
Pattern C: Character Consistency
DO:
DON'T:
After creating the enhanced prompt, generate the image using:
python "$CLAUDE_PLUGIN_ROOT/scripts/generate.py" "ENHANCED_PROMPT_HERE"
If $CLAUDE_PLUGIN_ROOT is not set (standalone skill install), use the absolute path:
python ~/.claude/skills/nanobanana/scripts/generate.py "ENHANCED_PROMPT_HERE"
The script will:
google-genai dependency on first run if needed)Use these when the request implies a specific framing, quality, or an edit of an existing image:
--aspect-ratio <ratio> — choose framing instead of relying on the prompt
alone. Supported: 1:1 2:3 3:2 3:4 4:3 4:5 5:4 9:16 16:9 21:9.
Pick 9:16 for phone wallpapers/stories, 16:9 or 21:9 for banners/wide
shots, 1:1 for avatars/icons, 4:5 for portrait social posts.--resolution <1K|2K|4K> — output resolution. Default is 1K. Use 2K/4K
for posters, print, or detailed infographics with fine text.--image <path> — provide a reference/input image to edit or combine.
Repeatable: pass --image multiple times to merge subjects, keep a character
consistent, or transfer a style. The prompt then describes the desired change.--fast — use the faster, cheaper Flash model for quick drafts/iteration.
Default (omit it) uses Nano Banana Pro for best text and fidelity.Examples:
# A 9:16 phone wallpaper at 2K
python "$CLAUDE_PLUGIN_ROOT/scripts/generate.py" "ENHANCED_PROMPT" --aspect-ratio 9:16 --resolution 2K
# Edit an existing photo
python "$CLAUDE_PLUGIN_ROOT/scripts/generate.py" "Replace the background with a snowy mountain range at golden hour, keep the subject unchanged" --image portrait.png
# Combine two reference images
python "$CLAUDE_PLUGIN_ROOT/scripts/generate.py" "Put the product from the first image onto the marble countertop from the second image, studio lighting" --image product.png --image kitchen.png
User Request: "Make a cool poster for a jazz night called 'Blue Moon' happening on Friday."
Enhanced Prompt: "A moody, atmospheric jazz club poster. In the center, a silhouette of a saxophone player is backlit by a large, glowing blue moon. The text 'BLUE MOON' is rendered in a stylish, Art Deco font at the top. Below the player, the text 'Friday Night Jazz' appears in a smaller, elegant serif font. The color palette is deep indigo, black, and silver. Texture of grainy cardstock."
User Request: "Show me a diagram of a plant cell."
Enhanced Prompt: "A detailed, educational cross-section illustration of a plant cell. The image clearly shows and labels the 'Nucleus', 'Chloroplast', 'Vacuole', and 'Cell Wall'. The style is clean, 3D educational render with bright, distinct colors for each organelle. Background is clean white for readability."
User Request: "A photo of a cyberpunk street."
Enhanced Prompt: "A hyper-realistic wide shot of a rainy cyberpunk street in Tokyo at night. Neon signs reflect in the puddles. One prominent holographic sign in the foreground reads 'CYBER NOODLES' in bright pink katakana and English. Steam rises from street vents. Cinematic lighting, high contrast, 8k resolution."
Set the GEMINI_API_KEY environment variable:
export GEMINI_API_KEY="your-api-key-here"
Get a key at https://aistudio.google.com/apikey
Python 3 is required. The script auto-installs its dependencies
(google-genai, and pillow when editing reference images) on first run.
To install them ahead of time:
pip install -r "$CLAUDE_PLUGIN_ROOT/requirements.txt"
The script handles common errors:
All errors include helpful messages for troubleshooting.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub 0-to-1-labs/claude-marketplace --plugin nanobanana