Skip to content
Skill

Nano banana

Generates and edits images from text prompts using Google's Nano Banana 2 model

Nano banana is an open-source agent skill for design and media. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
Python
Platforms
Claude Code, Codex, Cursor
GitHub stars
233
Last commit
License
MIT
Listing updated

Similar skills

About Nano banana

This skill lets an agent create new PNG images from a text description or modify an existing image using a supplied instruction, backed by Google's gemini-3.1-flash-image-preview model. Output resolution can be set to 512, 1K, 2K or 4K, and when editing, the output defaults to the input image's dimensions unless a resolution is passed explicitly.

The skill bundles a Python script that runs through uv with inline dependencies, so the first run installs its libraries automatically. It also gives the agent prompt templates for generation and editing, including a habit of stating what should stay unchanged during an edit, plus a mapping from casual wording like "thumbnail" or "print" to a resolution flag.

Using it requires a Gemini API key exported as GEMINI_API_KEY or GOOGLE_API_KEY, and uv installed on the machine. The skill says the script never prints the key or image bytes, and it lists a short checklist for common failures such as missing keys, unreadable input files and quota errors.

When your agent uses it

Generate or edit images with Google's Nano Banana 2 (`gemini-3.1-flash-image-preview`). Use when the user asks to generate an image, edit an image, or create a picture. Supports 512 / 1K / 2K / 4K resolutions.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 2 files (10 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the lich-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add LichAmnesia/lich-skills
/plugin install lich-skills@lich-skills

Or copy only this skill to ~/.claude/skills/nano-banana:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/nano-banana &&
cp -R "$tmp/skills/nano-banana" ~/.claude/skills/nano-banana &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/nano-banana inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/nano-banana to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/nano-banana &&
cp -R "$tmp/skills/nano-banana" ~/.agents/skills/nano-banana &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/nano-banana inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/nano-banana to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/nano-banana &&
cp -R "$tmp/skills/nano-banana" ~/.cursor/skills/nano-banana &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/nano-banana inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/LichAmnesia/lich-skills.git --path skills/nano-banana

Or copy the folder to ~/.gemini/skills/nano-banana yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/nano-banana:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/nano-banana &&
cp -R "$tmp/skills/nano-banana" ~/.copilot/skills/nano-banana &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/nano-banana inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/LichAmnesia/lich-skills.git

Then copy lich-skills/skills/nano-banana into your agent's skills folder as nano-banana. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Text-to-image generation
Creates PNG images from a written description with optional style, lighting and composition hints.
Image editing
Applies a targeted change to a supplied image while keeping the rest of the frame intact.
Resolution control
Offers 512, 1K, 2K and 4K output and maps everyday phrasing to the right size.
Prompt templates
Provides structured templates for generation and editing prompts.
Setup and error checks
Lists API key handling, uv installation and fixes for common script errors.

Good for

  • Generate a cover image for a blog post
  • Remove people or objects from a photo
  • Create a poster or icon from a text description
  • Swap the background of an existing picture
  • Make a high-resolution wallpaper from a prompt

Nano banana FAQ

What do I need before using Nano banana?

A Gemini API key set as GEMINI_API_KEY or GOOGLE_API_KEY, and the uv tool installed. The script installs google-genai and pillow on first run.

What output format does Nano banana produce?

PNG. RGBA images are converted to RGB on a white background.

Can Nano banana generate video?

No. The skill states that Nano Banana is image-only and points users to other tools for video.

What resolutions are supported?

512, 1K, 2K and 4K, with 1K as the default for generation.

How do I install Nano banana in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/nano-banana to use it in all your projects, or to .claude/skills/nano-banana in one project. Or install the lich-skills plugin, which includes it: /plugin marketplace add LichAmnesia/lich-skills, then /plugin install lich-skills@lich-skills.

Does Nano banana run scripts?

Yes. It runs Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Nano banana?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Nano banana?

The closest alternatives to Nano banana are Nano banana pro openrouter, Generate image, Gemini omni flash API, Fal AI media and SEO image gen.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from LichAmnesia/lich-skills

  1. Loops a failing build, typecheck, lint or test until the check exits 0

    • Open source
    • 233 GitHub stars
    • Developer tools
  2. Guides an agent through a hypothesis-driven loop for hard-to-find bugs

    • Open source
    • 233 GitHub stars
    • Developer tools
  3. Guides the agent to build distinctive, polished frontend interfaces instead of generic

    • Open source
    • 233 GitHub stars
    • Design and media
  4. Gates new project ideas with memory checks and kill criteria before any work starts

    • Open source
    • 233 GitHub stars
    • Productivity
  5. Lets your agent pull GA4 reports and turn them into prioritized SEO and traffic fixes

    • Open source
    • 233 GitHub stars
    • Marketing and SEO
  6. Routes an agent to the right lich-skill for each phase of its current task

    • Open source
    • 233 GitHub stars
    • Developer tools