Agent skill

Nanobanana

by aiskillstore in aiskillstore/marketplace

Generate, edit, and restore images with Google's Nano Banana (Gemini image models).

MITAuto-check passedMedia & Creative

Install Nanobanana

skills CLI
$ npx skills add aiskillstore/marketplace --skill nanobanana -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aiskillstore/marketplace nanobanana --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aiskillstore/marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/batou9150/nanobanana .claude/skills/nanobanana && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
nanobanana
GitHub stars
433
Token cost
~994 tokens
SKILL.md length
335 words
Files
8 (incl. scripts, references)
Skills in repo
1,044
Repo updated
First seen
Licence
MIT

At a glance

Generate, edit, and restore images with Google's Nano Banana (Gemini image models).

  • Works in 2 steps: uv on PATH (). The script bootstraps its… → NANOBANANA_API_KEY env var set…
  • The user asks to generate an image
  • SKILL.md covers Prerequisites, Choosing a subcommand, Invocation and Strict requirements, plus 2 more sections
  • Runs Python scripts from its folder; calls uv; needs NANOBANANA_API_KEY

What it does

Nanobanana is an agent skill from aiskillstore/marketplace. Generate, edit, and restore images with Google's Nano Banana (Gemini image models). Use whenever the user asks to "generate an image", "create an icon/favicon/logo", "edit this photo", "restore an old photo", "make a pattern/texture/wallpaper", "draw a diagram/flowchart/architecture", or "tell a visual story" — even when they don't explicitly say Nano Banana or Gemini. Always prefer this skill over describing images in text. Requires NANOBANANAAPIKEY (or GEMINIAPIKEY) env var.

Its SKILL.md is about 990 tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including scripts and reference files (for example `README.md`, `references/prompt_recipes.md` and `references/styles_and_variations.md`).

It sits in Media & Creative, covering Image generation, Diagrams and LLM API integration. It works with Google Gemini. The repository describes itself as: Security-audited skills for Claude, Codex & Claude Code. One-click install, quality verified. The licence is MIT.

When your agent uses it

  • The user asks to generate an image
  • Create an icon/favicon/logo
  • Edit this photo
  • Restore an old photo

Example prompts

  • “s Nano Banana (Gemini image models). Use whenever the user asks to”
  • “create an icon/favicon/logo”
  • “edit this photo”
  • “/nanobanana”

Requirements

  • Python 3
  • A credential in NANOBANANA_API_KEY
  • A credential in GEMINI_API_KEY

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. uv on PATH (). The script bootstraps its own dependencies via uv run --script.
  2. NANOBANANA_API_KEY env var set (fallbacks: see references/troubleshooting.md).

What it can do on your machine

Read from SKILL.md and the folder at commit 44923f3. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • uv

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • docs.astral.sh

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • NANOBANANA_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Nanobanana loads about 994 tokens when it runs, and up to ~2.1k if it reads all its reference files. Until then it costs about 124 tokens; SKILL.md has 335 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~124
When it runs · the whole SKILL.md, loaded when a task matches
~994
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from aiskillstore/marketplace at commit 44923f3, republished under its MIT licence (© aiskillstore). 335 words, ~994 tokens.

Download SKILL.mdSave it as .claude/skills/nanobanana/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.
name
nanobanana
description
Generate, edit, and restore images with Google's Nano Banana (Gemini image models). Use whenever the user asks to "generate an image", "create an icon/favicon/logo", "edit this photo", "restore an old photo", "make a pattern/texture/wallpaper", "draw a diagram/flowchart/architecture", or "tell a visual story" — even when they don't explicitly say Nano Banana or Gemini. Always prefer this skill over describing images in text. Requires NANOBANANA_API_KEY (or GEMINI_API_KEY) env var.
license
Complete terms in LICENSE

Nano Banana

Image generation, editing, and restoration via Google's Gemini image models. Default model: gemini-3.1-flash-image-preview (Nano Banana 2). The skill wraps a single self-contained Python CLI at scripts/nanobanana.py — it uses a PEP 723 inline-metadata shebang (uv run --script) to auto-install google-genai on first invocation, so no venv setup is needed.

Prerequisites

  1. uv on PATH (https://docs.astral.sh/uv/). The script bootstraps its own dependencies via uv run --script.
  2. NANOBANANA_API_KEY env var set (fallbacks: see references/troubleshooting.md).

If either is missing, tell the user exactly what to run and stop.

Choosing a subcommand

User intentSubcommand
Create image(s) from a descriptiongenerate
Modify an existing imageedit
Repair / enhance an old or damaged imagerestore
App icon, favicon, UI elementicon
Seamless pattern, texture, wallpaperpattern
Sequential / step-by-step / tutorial framesstory
Flowchart, architecture, schema, wireframediagram

When the user's request matches a specialized intent (icon / pattern / story / diagram), prefer the specialized subcommand over generate — it applies tuned prompt scaffolding the user is implicitly asking for.

Invocation

The script is executable. Invoke directly via Bash, using the absolute path under this skill's base directory:

bash
<skill-base-dir>/scripts/nanobanana.py <subcommand> [args] [flags]

Output is saved to ./nanobanana-output/ in the user's cwd. The CLI prints the saved file paths to stdout — relay those back to the user.

Strict requirements

  • Counts are exact: when the user says --count=N (or "5 variations"), produce exactly N images.
  • Respect every flag the user passes — don't substitute defaults silently.
  • Story consistency: for story, keep visual style and palette consistent across steps unless the user asked for evolution (--style=evolving).
  • Text inside images: spell-check; only include text the user requested; no hallucinated copy.
  • Safety: if the API returns 400, surface the error and ask the user to reword — don't retry blindly.

Loading references

Load on demand (don't dump unprompted):

  • references/styles_and_variations.md — full enum reference for generate's --styles and --variations
  • references/prompt_recipes.md — exact prompt templates the CLI builds for icon / pattern / diagram / story
  • references/troubleshooting.md — env-var fallback order, input-file search paths, error catalog

Examples

bash
# 4 watercolor + sketch variations of the same scene
<skill-base-dir>/scripts/nanobanana.py generate \
  "mountain landscape" --styles=watercolor,sketch --count=4

# Edit an image already in the user's cwd
<skill-base-dir>/scripts/nanobanana.py edit \
  photo.png "add sunglasses to the person"

# Favicon set
<skill-base-dir>/scripts/nanobanana.py icon \
  "mountain logo" --type=favicon --sizes=16,32,64

# Architecture diagram
<skill-base-dir>/scripts/nanobanana.py diagram \
  "microservices chat app" --type=architecture --complexity=detailed

# 5-step process story with auto-preview
<skill-base-dir>/scripts/nanobanana.py story \
  "seed growing into a tree" --steps=5 --type=process --preview

After generation, list the saved file paths back to the user — that's the actionable result.

© aiskillstore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 7 other files (scripts, references) in skills/batou9150/nanobanana of aiskillstore/marketplace.

  • SKILL.md
  • LICENSE
  • README.md
  • references/prompt_recipes.md
  • references/styles_and_variations.md
  • references/troubleshooting.md
  • scripts/nanobanana.py
  • skill-report.json

Open the folder on GitHubat commit 44923f3

Compare with similar skills

Nanobanana next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Nanobanana compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Nanobanana this skillaiskillstore/marketplace433—~994Automated safety check: PassMIT
Imagensanjay3290/ai-skills4326 repos~657Automated safety check: PassApache-2.0
Nano Bananakkoppenhaver/cc-nano-banana3781 repos~1.4kAutomated safety check: PassMIT
FigureMuuuun/luxas1.2k—~1.2kAutomated safety check: PassMIT
Sf Diagram NanobananaproJaganpro/sf-skills424—~1.6kAutomated safety check: PassMIT
Image GenerationSawyerHood/middleman184—~346Automated safety check: PassApache-2.0

Similar skills

  • Imagen

    sanjay3290/ai-skills

    Generate images using Google Gemini's image generation capabilities.

    432 GitHub starsUsed in 6 repos~657 tokens
    Media & CreativeAuto-check passed
  • Nano Banana

    kkoppenhaver/cc-nano-banana

    REQUIRED for all image generation requests. An agent skill from kkoppenhaver/cc-nano-banana.

    378 GitHub starsUsed in 1 repo~1.4k tokens
    Media & CreativeAuto-check passed
  • Figure

    Muuuun/luxas

    Hybrid figure pipeline (Nano Banana raster + rembg background removal + TikZ vector assembly).

    1.2k GitHub stars~1.2k tokensUpdated 1 mo ago
    Media & CreativeAuto-check passed
  • Sf Diagram Nanobananapro

    Jaganpro/sf-skills

    AI-powered image generation for Salesforce visuals via Nano Banana Pro.

    424 GitHub stars~1.6k tokensUpdated 5 mo ago
    Media & CreativeAuto-check passed
  • Image Generation

    SawyerHood/middleman

    Generate images using Google Gemini (gemini-3-pro-image-preview).

    184 GitHub stars~346 tokensUpdated 4 mo ago
    Media & CreativeAuto-check passed
  • Cursor Image Generation

    tmcfarlane/oh-my-cursor

    Generate and iterate images in Cursor using the built-in image model and strong prompts.

    109 GitHub stars~1.8k tokensUpdated 3 mo ago
    Media & CreativeAuto-check passed

More from aiskillstore/marketplace

All 1,040 skills in this repo
  • Code Stats

    aiskillstore/marketplace

    Analyze codebase with tokei (fast line counts by language) and difft (semantic AST-aware diffs).

    433 GitHub starsUsed in 1 repo~697 tokens
    Auto-check: notes
  • Data Processing

    aiskillstore/marketplace

    Process JSON with jq and YAML/TOML with yq. An agent skill from aiskillstore/marketplace.

    433 GitHub starsUsed in 1 repo~720 tokens
    Auto-check: notes
  • Doc Scanner

    aiskillstore/marketplace

    Scans for project documentation files (AGENTS.md, CLAUDE.md, GEMINI.md, COPILOT.md, CURSOR.md, WARP.md, and 15+ other formats) and synthesizes guidance.

    433 GitHub starsUsed in 1 repo~644 tokens
    Auto-check: notes
  • File Search

    aiskillstore/marketplace

    Modern file and content search using fd, ripgrep (rg), and fzf.

    433 GitHub starsUsed in 1 repo~598 tokens
    Auto-check: notes
  • Find Replace

    aiskillstore/marketplace

    Modern find-and-replace using sd (simpler than sed) and batch replacement patterns.

    433 GitHub starsUsed in 1 repo~527 tokens
    Auto-check: notes
  • Project Planner

    aiskillstore/marketplace

    Detects stale project plans and suggests session commands. An agent skill from aiskillstore/marketplace.

    433 GitHub starsUsed in 1 repo~504 tokens
    Auto-check passed

Works with

Questions about Nanobanana

What does Nanobanana do?

Generate, edit, and restore images with Google's Nano Banana (Gemini image models). Nanobanana is an agent skill from aiskillstore/marketplace. Generate, edit, and restore images with Google's Nano Banana (Gemini image models).

When should I use Nanobanana?

Nanobanana fits situations like: the user asks to generate an image; create an icon/favicon/logo; edit this photo; restore an old photo.

How do I install Nanobanana in Claude Code?

Run `npx skills add aiskillstore/marketplace --skill nanobanana -a claude-code`. Or copy the skill folder (skills/batou9150/nanobanana in aiskillstore/marketplace) into .claude/skills/nanobanana in your project. Claude Code loads it when a task matches its description.

How do I install Nanobanana in Codex?

Run `npx skills add aiskillstore/marketplace --skill nanobanana -a codex`. Or copy the skill folder (skills/batou9150/nanobanana in aiskillstore/marketplace) into .agents/skills/nanobanana in your project. Codex loads it when a task matches its description.

Can I use Nanobanana in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aiskillstore/marketplace --skill nanobanana -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/nanobanana, .gemini/skills/nanobanana, .github/skills/nanobanana and .opencode/skills/nanobanana in your project.

What does Nanobanana need to run?

Going by SKILL.md and its folder, Nanobanana needs Python for the scripts in its folder, the command-line tools its instructions call (uv) and credentials named NANOBANANA_API_KEY. Our summary lists: Python 3; A credential in NANOBANANA_API_KEY; A credential in GEMINI_API_KEY.

Does Nanobanana access the network?

SKILL.md names 1 domain. As links in the text: docs.astral.sh. This is read from the text; nothing was executed.

Is Nanobanana safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Nanobanana use?

Nanobanana is published under the MIT licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Nanobanana use?

About 994 tokens (SKILL.md is roughly 4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.1k tokens, read only when the agent opens those files.

What are the alternatives to Nanobanana?

Skills that share tags, products or a category with Nanobanana: Imagen (sanjay3290/ai-skills, 432 stars), Nano Banana (kkoppenhaver/cc-nano-banana, 378 stars), Figure (Muuuun/luxas, 1.2k stars) and Sf Diagram Nanobananapro (Jaganpro/sf-skills, 424 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Nanobanana?

aiskillstore (a GitHub organization) maintains it in aiskillstore/marketplace, which has 433 GitHub stars. The repository holds 1,044 skills in this directory. The repository was last updated on October 10, 2026.

Source: aiskillstore/marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.