Agent skill · design visual · aiskillstore

nanobanana

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.

Why this skill is useful

Adds a self-contained Python CLI for image generation, editing, and restoration with specific commands and error handling that the AI cannot generate on its own.

What it needs

Requires google-genai, uv installed locally. Requires nanobanana account access. About 2k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

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. NANOBANANAAPIKEY 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 intent Subcommand --- --- Create image(s) from a description generate Modify an existing image edit Repair / enhance an old or damaged image restore App icon, favicon, UI element icon Seamless pattern, texture, wallpaper pattern Sequential / step-by-step / tutorial frames story Flowchart, architecture, schema, wireframe diagram 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: 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. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/nanobanana

View the source on GitHub

Browse the @skills marketplace