Agent SkillsAgent Skills
Eddale

nano-banana-pro

@Eddale/nano-banana-pro
Eddale
0
0 forks
Updated 4/12/2026
View on GitHub

Generate images via Gemini 3 Pro Image API. Use when "generate an image", "create a hero image", "make an image showing", "nano banana".

Installation

$npx agent-skills-cli install @Eddale/nano-banana-pro
Claude Code
Cursor
Copilot
Codex
Antigravity

Details

Pathskills/nano-banana-pro/SKILL.md
Branchmain
Scoped Name@Eddale/nano-banana-pro

Usage

After installing, this skill will be available to your AI coding assistant.

Verify installation:

npx agent-skills-cli list

Skill Instructions


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

  1. Parse the request for: prompt, resolution, aspect ratio, character reference
  2. Run the Python tool with extracted parameters
  3. 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)

MentionedMaps 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 --ed flag
  • 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:

  1. Keep it concise - Under 25 words performs best. Don't pad with tags.
  2. Natural language - Write like briefing a photographer, not keyword soup.
  3. Positive framing - Say what you want, not what you don't want.
    • Good: "empty room with wooden floors"
    • Bad: "room without furniture"
  4. Specific visual details - Include lighting, composition, mood when relevant.
  5. 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

  1. Report the image path to the user
  2. If requested, link in daily note Captures section
  3. 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.