
nano-banana-pro
by Eddale
SKILL.md
name: nano-banana-pro description: Generate images via Gemini 3 Pro Image API. Use when "generate an image", "create a hero image", "make an image showing", "nano banana". allowed-tools: Read, Write, Bash, Glob
Nano Banana Pro
Generate images using Google's Gemini 3 Pro Image API with native resolution support (1K/2K/4K) and flexible aspect ratios.
When This Activates
- "Generate an image of..."
- "Create a hero image for..."
- "Make an image showing..."
- "Nano banana [description]"
- Any request to create/generate an image
How It Works
- Parse the request for: prompt, resolution, aspect ratio, character reference
- Run the Python tool with extracted parameters
- Report the generated image path to the user
Parameter Detection
Resolution
Note: The google-genai SDK (v1.47.0) currently only supports aspect ratio control. Resolution parameters (1K/2K/4K) are documented by Google but not yet available in the Python SDK. Images generate at ~1K by default. Resolution control will be added when SDK support arrives.
For now, accept --size parameter but ignore it (generates at default resolution).
Aspect Ratio (defaults to 16:9)
| Mentioned | Maps To |
|---|---|
| "landscape", "hero image", "banner" | 16:9 |
| "portrait", "vertical", "story" | 9:16 |
| "square", "thumbnail", "profile" | 1:1 |
| "Instagram", "social post" | 4:5 |
| Explicit ratio (e.g., "3:2") | Use as-is |
Supported ratios: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9
Character Reference
- If user says "me", "image of me", "myself" → use
--edflag - If user provides a path → use
--reference <path> - Otherwise → no reference image
Output Location
- Default:
~/Downloads/ - If user specifies folder → use that path
- Filename: content-based (e.g.,
hero-coaching-clarity.png)
Prompting Best Practices (Built In)
When constructing the prompt for the API, apply these principles:
- Keep it concise - Under 25 words performs best. Don't pad with tags.
- Natural language - Write like briefing a photographer, not keyword soup.
- Positive framing - Say what you want, not what you don't want.
- Good: "empty room with wooden floors"
- Bad: "room without furniture"
- Specific visual details - Include lighting, composition, mood when relevant.
- Style goes in the prompt - No separate style parameter. Include style naturally:
- "professional photography style"
- "manga illustration style"
- "minimalist graphic design"
Execution
Run the Python tool:
python3 skills/nano-banana-pro/tools/generate_image.py \
"<prompt>" \
--size <1K|2K|4K> \
--aspect <ratio> \
[--ed | --reference <path>] \
--output <folder> \
--name <filename_prefix>
The tool returns JSON:
{
"success": true,
"path": "/Users/eddale/Downloads/hero-coaching-clarity.png",
"resolution": "1K",
"aspect_ratio": "16:9",
"cost_estimate": "$0.134"
}
After Generation
- Report the image path to the user
- If requested, link in daily note Captures section
- If user wants to iterate, offer to regenerate with modified prompt
Example Interactions
User: "Generate a hero image for my article about the power of clarity in coaching"
What happens:
- Resolution: 1K (default)
- Aspect: 16:9 (hero image default)
- Reference: None (no "me" mentioned)
- Prompt: "Professional photograph of a lighthouse beacon cutting through fog at dawn, symbolizing clarity and guidance, warm golden light, cinematic composition"
User: "Create a 4K image of me presenting to a small group, professional photography"
What happens:
- Resolution: 4K (explicitly requested)
- Aspect: 16:9 (default)
- Reference: Ed's image (--ed flag)
- Prompt: "Professional photograph of [reference person] presenting to an engaged small group in a modern meeting room, natural lighting, documentary style"
User: "Make a 1:1 thumbnail showing a lightbulb moment"
What happens:
- Resolution: 1K (default)
- Aspect: 1:1 (explicitly requested)
- Reference: None
- Prompt: "Stylized illustration of a glowing lightbulb above a person's head, warm yellow light radiating outward, clean minimal background, insight concept"
Pricing
~$0.134 per image (default resolution, ~1K)
Higher resolution pricing (when SDK supports it):
- 2K: ~$0.24
- 4K: ~$0.24
Error Handling
- Missing GOOGLE_API_KEY: Tell user to set environment variable in ~/.zshrc
- Invalid aspect ratio: Default to 16:9 and warn user
- API failure: Report error, suggest retry or modified prompt
- Reference image not found: Continue without reference, warn user
Style Library
Check resources/style-library.md for prompts that have worked well. Add new successful styles there to build our library over time.
Score
Total Score
Based on repository quality metrics
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
Reviews
Reviews coming soon