nano-banana

nano-banana is a skill for Claude Code from pigfoot/claude-code-hubs. It costs 42 tokens per session (1,823 once invoked), scanned B, original, MIT.

An image-generation and image-editing workflow built around Gemini models and a fixed Python script.

In plain words
What is it for?
Use it for AI artwork, presentation images, branded visuals, image edits, and repeatable results with settings such as a chosen seed.
Why use it?
It provides a repeatable way to create or change images and to turn vague visual requests into usable prompts.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool; mentions Claude Code; mentions Codex.

Part of the nano-banana plugin — 1 skill shipped together

Good fit Use it for AI artwork, presentation images, branded visuals, image edits, and repeatable results with settings such as a chosen seed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pigfoot/claude-code-hubs/nano-banana
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 pigfoot/claude-code-hubs --skill nano-banana
Clone the repo
git clone --depth 1 https://github.com/pigfoot/claude-code-hubs

Made for: Claude Code.

Or install nano-banana, the plugin that ships this one along with the rest of its 1 skill.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/pigfoot/claude-code-hubs/nano-banana/github.svg)](https://agentmods.dev/skills/pigfoot/claude-code-hubs/nano-banana)
Your own site
<a href="https://agentmods.dev/skills/pigfoot/claude-code-hubs/nano-banana"><img src="https://agentmods.dev/badge/skills/pigfoot/claude-code-hubs/nano-banana/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/pigfoot/claude-code-hubs/nano-banana"><img src="https://agentmods.dev/badge/skills/pigfoot/claude-code-hubs/nano-banana.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,823 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found 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.00042 $0.01823
Opus 5 $0.00021 $0.00911
Sonnet 5 $0.00008 $0.00365
Haiku 4.5 $0.00004 $0.00182

Measured 11d ago against content hash ab571e4cde36, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade B, and why

nano-banana scanned grade B with 1 finding 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 11d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/generate_images.py, scripts/logo_overlay.py, scripts/test_gpt_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.

Asks the agent to reveal its instructionsmediumSystem prompt leakage

Directions to print, repeat or translate the system prompt extract configuration the operator did not intend to expose.

| 5. Present | Show prompt with explanation and variations |
plugins/nano-banana/skills/nano-banana/SKILL.md · 195 lines

How it starts

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

Nano Banana

Unified image generation workflow using a fixed Python script with JSON configuration. Eliminates AI hallucinations by avoiding dynamic code generation.

Two modes:

  • Unified Generation: detailed prompt → write JSON config → run generate_images.py
  • Interactive Prompting: vague prompt or "help me craft" → guide user, then generate

When to Use

  • Image generation ("draw", "create", "generate"), slides, presentations
  • Image editing with AI
  • Prompt help ("help me craft", "improve my prompt")
  • Brand styles ("use trendlife style", "notebooklm style")
  • Reproducible generation ("use seed 42", "regenerate that image")

Mode selection

  • Interactive Prompting: prompt help requested OR prompt is <5 words
  • Unified Generation: detailed prompt provided

🚨 CRITICAL: API Routing

The script picks the API based on IMAGE_GEN_MODEL and reference_image:

Condition API Endpoint
gpt-image-2, no reference_image, no TrendLife featured client.images.generate() POST /images/generations
gpt-image-2 + reference_image client.images.edit() POST /images/edits
gpt-image-2 + style: "trendlife" + layout: "featured" client.images.edit() (logo as image) POST /images/edits
Gemini or other client.chat.completions.create() POST /chat/completions

gpt-image-2: Always uses quality="low" — other values timeout or return 400. Seed and temperature unsupported (silently ignored, one warning per job).

Gemini (gemini-3-pro-image, gemini-3.1-flash-image): use chat.completions with extra_body={"response_modalities": ["IMAGE"]}.

client.chat.completions.create(
    model=os.environ.get("IMAGE_GEN_MODEL") or "gemini-3-pro-image",
    messages=[{"role": "user", "content": prompt}],
    seed=seed,
    temperature=temperature,
    extra_body={"response_modalities": ["IMAGE"]},
)

IMAGE_GEN_MODEL: NEVER override

If IMAGE_GEN_MODEL is set, use it EXACTLY as-is. Custom endpoints have their own model names — do not append suffixes like -preview. Only choose a default when the env var is unset.

Read the full file on GitHub · 195 lines

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. 11d ago First seen · 195 lines · 42 tokens per session scan B ab571e4cde36

Subscribe to this mod's changes

nano-banana is a skill published in the GitHub repository pigfoot/claude-code-hubs (5 stars, last pushed 1mo ago), licensed MIT. It adds 42 tokens to every session and 1,823 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (asks the agent to reveal its instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

webgl-holographic-foil

A self-contained WebGL2 hero: thin-film interference over a crushed-foil surface whose palette shifts with the viewing angle; move the cursor to tilt the film.

nexu-io/open-design · 41 tokens

general-video

Author or edit a custom HyperFrames composition when no specialized workflow fits, or when BRIEF.md sets flow: companion. Use for longer or multi-scene pieces, brand and sizzle reels, montages, static loops, static title cards, footage remixes, and freeform builds. Use motion-graphics instead for a short unnarrated…

heygen-com/hyperframes · 92 tokens

html-ppt-hermes-cyber-terminal

OpenDesign + BYOK: choosing and wiring your own model, hands-on — cost, quality, and the routing decision. Built as a decision-grade AI literacy deck for engineers, IT, applied-AI teams.

nexu-io/open-design · 53 tokens

html-ppt-taste-brutalist

16:9 HTML deck in tactical-telemetry / CRT-terminal taste. Deactivated-CRT charcoal slides, white-phosphor monospace, hazard-red accent, scanline overlay, ASCII syntax, density over decoration. Distilled from Leonxlnx/taste-skill brutalist-skill (Tactical Telemetry mode).

nexu-io/open-design · 78 tokens

chengfeng-check-updates

An environment manager for a video-editing system. It checks whether its skills and runtime—the software needed to run them—are installed and compatible.

Agentchengfeng/chengfeng-videocut-skills · 120 tokens

diagnostic-stem-delivery

Audio production with diagnostic analysis, timecode parsing from documents, and verified export workflow.

HKUDS/OpenSpace · 23 tokens