Skip to content
Join free
intellectronica

Nano Banana Pro skill

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y").

$npx alyn-cli add nano-banana-pro
View this skill on GitHubintellectronica/agent-skills/skills/nano-banana-pro/SKILL.md
Pack stars
305
Pack installs
146k
Alyn Score
50/99
Updated
7 months ago
License
CC0-1.0

intellectronica

Nano Banana Pro

What is the Nano Banana Pro skill?

Nano Banana Pro is a images & art skill by intellectronica for Claude Code, Cursor, Codex and other AI coding agents. Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y").

Generate new images or edit existing ones using Google's Nano Banana Pro API (Gemini 3 Pro Image).

When to use it

Use when the user asks to generate, create, edit, modify, change, alter, or update images.

What the SKILL.md covers

  • Usage
  • Resolution Options
  • API Key
  • Filename Generation
  • Image Editing
  • Prompt Handling
  • Output
  • Examples
Author
intellectronica
Pack
intellectronica/agent-skills (22 skills)
Category
Images & art, #302 of 317
Alyn Score
50 / 99
Files
2, includes scripts
License
CC0-1.0
Last updated
7 months ago
Works with
Claude Code, Claude, Cursor, Codex, Gemini CLI, Copilot

Nano Banana Pro compared to similar skills

SkillAlyn ScoreGitHub starsUpdated
Nano Banana Pro · intellectronica503057 months ago
Nanobanana · ReScienceLab721.9k28 h ago
Huashu Xhs Image · alchaincyf652.3k3 days ago
Scenario Gemini Image · scenario-labs734k3 days ago

Install Nano Banana Pro

Pick your agent. Every command is ready to paste.

$npx alyn-cli add nano-banana-pro

Detects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.

$npx skills add intellectronica/agent-skills --skill nano-banana-pro

Or use the open skills CLI directly.

01

Install it

Run the command above, or upload the folder in Claude.

02

Ask naturally

Describe the task. Your agent loads nano-banana-pro when the request matches its description.

03

Name it if needed

If it does not trigger, say “use the nano-banana-pro skill”. In Codex, type $nano-banana-pro.

The skill itself

SKILL.md

FolderGitHub

Nano Banana Pro Image Generation & Editing

Generate new images or edit existing ones using Google's Nano Banana Pro API (Gemini 3 Pro Image).

Usage

Run the script using absolute path (do NOT cd to skill directory first):

Generate new image:

uv run ~/.claude/skills/nano-banana-pro/scripts/generate_image.py --prompt "your image description" --filename "output-name.png" [--resolution 1K|2K|4K] [--api-key KEY]

Edit existing image:

uv run ~/.claude/skills/nano-banana-pro/scripts/generate_image.py --prompt "editing instructions" --filename "output-name.png" --input-image "path/to/input.png" [--resolution 1K|2K|4K] [--api-key KEY]

Important: Always run from the user's current working directory so images are saved where the user is working, not in the skill directory.

Resolution Options

The Gemini 3 Pro Image API supports three resolutions (uppercase K required):

  • 1K (default) - ~1024px resolution
  • 2K - ~2048px resolution
  • 4K - ~4096px resolution

Map user requests to API parameters:

  • No mention of resolution → 1K
  • "low resolution", "1080", "1080p", "1K" → 1K
  • "2K", "2048", "normal", "medium resolution" → 2K
  • "high resolution", "high-res", "hi-res", "4K", "ultra" → 4K

API Key

The script checks for API key in this order:

  1. --api-key argument (use if user provided key in chat)
  2. GEMINI_API_KEY environment variable

If neither is available, the script exits with an error message.

Filename Generation

Generate filenames with the pattern: yyyy-mm-dd-hh-mm-ss-name.png

Format: {timestamp}-{descriptive-name}.png

  • Timestamp: Current date/time in format yyyy-mm-dd-hh-mm-ss (24-hour format)
  • Name: Descriptive lowercase text with hyphens
  • Keep the descriptive part concise (1-5 words typically)
  • Use context from user's prompt or conversation
  • If unclear, use random identifier (e.g., x9k2, a7b3)

Examples:

  • Prompt "A serene Japanese garden" → 2025-11-23-14-23-05-japanese-garden.png
  • Prompt "sunset over mountains" → 2025-11-23-15-30-12-sunset-mountains.png
  • Prompt "create an image of a robot" → 2025-11-23-16-45-33-robot.png
  • Unclear context → 2025-11-23-17-12-48-x9k2.png

Image Editing

When the user wants to modify an existing image:

  1. Check if they provide an image path or reference an image in the current directory
  2. Use --input-image parameter with the path to the image
  3. The prompt should contain editing instructions (e.g., "make the sky more dramatic", "remove the person", "change to cartoon style")
  4. Common editing tasks: add/remove elements, change style, adjust colors, blur background, etc.

Prompt Handling

For generation: Pass user's image description as-is to --prompt. Only rework if clearly insufficient.

For editing: Pass editing instructions in --prompt (e.g., "add a rainbow in the sky", "make it look like a watercolor painting")

Preserve user's creative intent in both cases.

Output

  • Saves PNG to current directory (or specified path if filename includes directory)
  • Script outputs the full path to the generated image
  • Do not read the image back - just inform the user of the saved path

Examples

Generate new image:

uv run ~/.claude/skills/nano-banana-pro/scripts/generate_image.py --prompt "A serene Japanese garden with cherry blossoms" --filename "2025-11-23-14-23-05-japanese-garden.png" --resolution 4K

Edit existing image:

uv run ~/.claude/skills/nano-banana-pro/scripts/generate_image.py --prompt "make the sky more dramatic with storm clouds" --filename "2025-11-23-14-25-30-dramatic-sky.png" --input-image "original-photo.jpg" --resolution 2K

Tips for Nano Banana Pro

  • • Start a fresh session after installing so your agent picks up the new skill.
  • • This skill ships scripts. Read them before the first run, and run it in a project without secrets first.
  • • It is part of a pack with 22 skills. Install only the ones you need with --skill to keep triggers precise.
  • • If two skills overlap, mention the one you want by name.

Questions about Nano Banana Pro

What does the Nano Banana Pro skill do?

Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y").

How do I install Nano Banana Pro?

Run "npx alyn-cli add nano-banana-pro" in your project. The Alyn CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.

Does Nano Banana Pro work in Cursor and Codex?

Yes. Nano Banana Pro uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.

When should I use the Nano Banana Pro skill?

Use when the user asks to generate, create, edit, modify, change, alter, or update images.

What is inside the Nano Banana Pro skill?

The SKILL.md covers Usage, Resolution Options, API Key, Filename Generation, Image Editing, Prompt Handling, and the skill folder has 2 files including scripts.

What is a good alternative to Nano Banana Pro?

Nanobanana by ReScienceLab is the highest-ranked similar skill from another creator, with an Alyn Score of 72 compared to 50 for Nano Banana Pro.

Is Nano Banana Pro free?

Nano Banana Pro is open source on GitHub under the CC0-1.0 license. It is free to install; check the license before commercial use.

Who made Nano Banana Pro?

Nano Banana Pro is published by intellectronica in the intellectronica/agent-skills repository, together with 21 other skills.

Similar skills. From other creators.