nanobanana

nanobanana is a skill for Claude Code from mgiovani/cc-arsenal. It costs 163 tokens per session (2,905 once invoked), scanned A, original, MIT.

A skill for generating and editing images through Google’s Nano Banana, also called the Gemini image-generation API. It requires a GEMINI_API_KEY and makes real, billed API calls.

In plain words
What is it for?
Use it when you explicitly want Nano Banana or Gemini to create or modify images and the required API key and tooling are configured.
Why use it?
It provides a defined Gemini-based image workflow, including environment checks and prompt improvement before generation or editing.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument; mentions Codex.

Part of the cc-arsenal-dev plugin — 19 skills shipped together , and of cc-arsenal

Good fit Use it when you explicitly want Nano Banana or Gemini to create or modify images and the required API key and tooling are configured.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mgiovani/cc-arsenal/nanobanana
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 mgiovani/cc-arsenal --skill nanobanana
Clone the repo
git clone --depth 1 https://github.com/mgiovani/cc-arsenal

Made for: Claude Code.

Or install cc-arsenal-dev, the plugin that ships this one along with the rest of its 19 skills.

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 nanobanana

README.md
[![agentmods](https://agentmods.dev/badge/skills/mgiovani/cc-arsenal/nanobanana/github.svg)](https://agentmods.dev/skills/mgiovani/cc-arsenal/nanobanana)
Your own site
<a href="https://agentmods.dev/skills/mgiovani/cc-arsenal/nanobanana"><img src="https://agentmods.dev/badge/skills/mgiovani/cc-arsenal/nanobanana/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 nanobanana

Your own site · 80×15
<a href="https://agentmods.dev/skills/mgiovani/cc-arsenal/nanobanana"><img src="https://agentmods.dev/badge/skills/mgiovani/cc-arsenal/nanobanana.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 163 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,905 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00163 $0.02905
Opus 5 $0.00081 $0.01452
Sonnet 5 $0.00033 $0.00581
Haiku 4.5 $0.00016 $0.00291

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

Security

Grade A, and why

nanobanana 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 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/generate.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.

skills/nanobanana/SKILL.md · 285 lines

How it starts

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

Nanobanana: Nano Banana Image Generation

Generate and edit images using Google's Nano Banana (Gemini image generation API). This skill handles direct image generation, iterative editing, and expert guidance for integrating the API into codebases.

Core differentiator: A prompt enhancement system that analyzes user intent and project context to craft optimized prompts before calling the API.

This is the explicit Gemini/Nano Banana path (named directly by the user): for a generic "generate an image" request with no engine named, codex-imagegen is the default generator instead.


Phase 0: Environment Check

Before anything else, verify the environment is ready.

1. Check API key:

echo "${GEMINI_API_KEY:0:10}..."  # Show first 10 chars only (security)

If GEMINI_API_KEY is empty or unset:

  • Read references/integration-guide.md (the setup section)
  • Present setup instructions to the user
  • Stop here until the key is configured

2. Check uv is available:

uv --version 2>&1

If uv is not installed, direct the user to https://docs.astral.sh/uv/getting-started/installation/ and stop. uv handles dependency installation automatically via PEP 723 inline metadata: no manual pip install needed.


Phase 1: Understand Intent & Detect Mode

Mine the conversation for:

  • Subject/scene: What is the image of?
  • Purpose: What is it for? (hero image, icon, mockup, blog post, etc.)
  • Style: Photorealistic, illustration, minimalist, etc.
  • Technical requirements: Aspect ratio, resolution, specific dimensions
  • Mood/atmosphere: Energetic, calm, professional, playful, etc.

Detect Mode

Expert Integration Mode: if the user wants to integrate Nano Banana into their codebase (e.g., "how do I add image generation to my app", "show me the API", "I'm building a feature that generates images"):

  • Read references/integration-guide.md
  • Provide SDK examples, authentication patterns, and production best practices
  • Skip to guidance, do not call the API

Read the full file on GitHub · 285 lines

Files

What ships with it

7 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. 11d ago First seen · 285 lines · 163 tokens per session scan A 502040a14a4c

Subscribe to this mod's changes

nanobanana is a skill published in the GitHub repository mgiovani/cc-arsenal (8 stars, last pushed 2d ago), licensed MIT. It adds 163 tokens to every session and 2,905 once invoked, about $0.0008 per session on Opus 5. A static security scan graded it A with 0 findings. 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

heygen

Agent-callable HeyGen tools — generate AI avatar videos, translate and lip-sync videos, synthesize speech, and clone or browse voices and avatars. Use when the user mentions HeyGen or wants to create, translate, or check the status of AI videos, or to generate or clone a voice — including requests that don't name…

zapier/connectors · 104 tokens

runway

Agent-callable Runway tools — generate images and video from text or images, edit and upscale media, animate characters, generate speech and sound effects, and run marketing recipes, plus track generation jobs. Use when the user mentions Runway or wants to generate, edit, or upscale AI media, even if they don't name…

zapier/connectors · 71 tokens

elevenlabs

Agent-callable ElevenLabs tools — generate spoken audio from text, create sound effects and multi-speaker dialogue, re-voice and clean up audio, transcribe audio and video, design synthetic voices, and manage voices, history, and quota. Use when the user mentions ElevenLabs or wants AI audio work — text to speech…

zapier/connectors · 115 tokens

atmos-cast

Atmos cast recording and rendering: atmos cast play/render, output-format inference (gif/mp4/html/ascii/png/jpg/jpeg), the --cast/ATMOSCAST auto-recording flag, workflow type: cast (steps/session modes) and type: simulate step types, and committed .cast screengrabs.

cloudposse/atmos · 66 tokens

cli-anything-photoshop

A command-line tool that controls Adobe Photoshop through Windows automation. It can work with Photoshop documents, layers, selections, text, image adjustments, and exports.

yb2460/harness-anything · 43 tokens

youtube

Use whenever the user mentions YouTube, video uploads, channel management, playlists, video SEO, or any YouTube Data API operation. Manages videos, playlists, comments, captions, subscriptions, thumbnails, analytics, and more.

eat-pray-ai/yutu · 48 tokens