nano-banana-pro

nano-banana-pro is a skill for Claude Code, Codex from davidtoby/agent-skills. It costs 55 tokens per session (1,511 once invoked), scanned A, a copy of nano-banana-pro, MIT.

A skill for creating new images or editing existing ones with Google's Nano Banana Pro, an image-generation model. It supports text descriptions and input images.

In plain words
What is it for?
Use it to generate images from prompts, modify an existing image, and iterate from a smaller draft before producing a larger final image.
Why use it?
It provides a repeatable command for image creation and editing, including choices of 1K, 2K, or 4K output size.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads ~/.codex paths; mentions Codex.

Good fit Use it to generate images from prompts, modify an existing image, and iterate from a smaller draft before producing a larger final image.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/davidtoby/agent-skills/nano-banana-pro
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add davidtoby/agent-skills --skill nano-banana-pro
Clone the repo
git clone --depth 1 https://github.com/davidtoby/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for nano-banana-pro

README.md
[![agentmods](https://agentmods.dev/badge/skills/davidtoby/agent-skills/nano-banana-pro/github.svg)](https://agentmods.dev/skills/davidtoby/agent-skills/nano-banana-pro)
Your own site
<a href="https://agentmods.dev/skills/davidtoby/agent-skills/nano-banana-pro"><img src="https://agentmods.dev/badge/skills/davidtoby/agent-skills/nano-banana-pro/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for nano-banana-pro

Your own site · 80×15
<a href="https://agentmods.dev/skills/davidtoby/agent-skills/nano-banana-pro"><img src="https://agentmods.dev/badge/skills/davidtoby/agent-skills/nano-banana-pro.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,511 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 91% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00055 $0.01511
Opus 5.5 $0.00022 $0.00604
Sonnet 5.5 $0.00011 $0.00302
Haiku 4.5 $0.00006 $0.00151

Measured 3mo ago against content hash 4ea88f4b0e95, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

nano-banana-pro scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/generate_image.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

91% identical to nano-banana-pro — 50 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/.archive/umbrella-curation-2026-04-29/openclaw-imports/nano-banana-pro/SKILL.md · 131 lines

How it starts

The opening of the file, as written. The whole thing — 131 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 ~/.codex/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 ~/.codex/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.

Default Workflow (draft → iterate → final)

Goal: fast iteration without burning time on 4K until the prompt is correct.

  • Draft (1K): quick feedback loop
    • uv run ~/.codex/skills/nano-banana-pro/scripts/generate_image.py --prompt "<draft prompt>" --filename "yyyy-mm-dd-hh-mm-ss-draft.png" --resolution 1K
  • Iterate: adjust prompt in small diffs; keep filename new per run
    • If editing: keep the same --input-image for every iteration until you’re happy.
  • Final (4K): only when prompt is locked
    • uv run ~/.codex/skills/nano-banana-pro/scripts/generate_image.py --prompt "<final prompt>" --filename "yyyy-mm-dd-hh-mm-ss-final.png" --resolution 4K

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

Read the full file on GitHub · 131 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 131 lines · 55 tokens per session scan A 4ea88f4b0e95

Subscribe to this mod's changes

nano-banana-pro is a skill published in the GitHub repository davidtoby/agent-skills (11 stars, last pushed 10d ago), licensed MIT. It adds 55 tokens to every session and 1,511 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 91% identical to nano-banana-pro, differing in 50 lines, and is treated as a copy.

Related

nano-banana-pro compared with skills from other repositories

nano-banana-pro next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
nano-banana-prodavidtoby/agent-skillsSkill1110d agoMITA55Claude Code, Codex
officecli-pitch-deckiOfficeAI/OfficeCLISkill34k10d agoApache-2.0A163Claude Code, Codex
morph-pptiOfficeAI/OfficeCLISkill34k10d agoApache-2.0A169Claude Code, Codex
officecli-academic-paperiOfficeAI/OfficeCLISkill34k10d agoApache-2.0A141Claude Code, Codex
officecli-pptxiOfficeAI/OfficeCLISkill34k10d agoApache-2.0A106Claude Code, Codex
officecliiOfficeAI/OfficeCLISkill34k10d agoApache-2.0A56Claude Code, Codex
morph-ppt-3diOfficeAI/OfficeCLISkill34k10d agoApache-2.0A37Claude Code, Codex