Agent skill

Nanobanana Skill

by feiskyer in feiskyer/claude-code-settings

Generate or edit images via Google Gemini (nanobanana). An agent skill from feiskyer/claude-code-settings.

MITAuto-check passedMedia & Creative

Install Nanobanana Skill

skills CLI
$ npx skills add feiskyer/claude-code-settings --skill nanobanana-skill -a claude-code

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

GitHub CLI
$ gh skill install feiskyer/claude-code-settings nanobanana-skill --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/feiskyer/claude-code-settings.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/nanobanana-skill .claude/skills/nanobanana-skill && 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-skill
GitHub stars
1.7k
Token cost
~1.1k tokens
SKILL.md length
343 words
Files
3
Skills in repo
12
Repo updated
First seen
Licence
MIT

At a glance

Generate or edit images via Google Gemini (nanobanana). An agent skill from feiskyer/claude-code-settings.

  • Works in 3 steps: GEMINI_API_KEY: Must be configured in… → Python3 with dependent packages… → Executable:…
  • The user asks to generate
  • SKILL.md covers Requirements, Instructions, Available Options and Examples, plus 2 more sections
  • Runs Python scripts from its folder; calls python3; needs GEMINI_API_KEY

What it does

Nanobanana Skill is an agent skill from feiskyer/claude-code-settings. Generate or edit images via Google Gemini (nanobanana). This is the DEFAULT image skill — use whenever the user asks to generate, create, or edit an image and does NOT name another provider. Triggers: "nanobanana", "generate image", "create image", "edit image", "图片生成", "生成图片", "AI绘图", "图片编辑". Do NOT use for diagrams (架构图/流程图/时序图) — draw those with Mermaid or code instead.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `nanobanana.py`).

It sits in Media & Creative, covering Image editing, Diagrams and Image generation. It works with Google Gemini, Mermaid and Python. The repository describes itself as: Curated skills, sub-agents, and config templates that supercharge Claude Code — research, image gen, GitHub automation & more. The licence is MIT.

When your agent uses it

  • The user asks to generate
  • Edit an image and does NOT name another provider
  • Diagrams (架构图/流程图/时序图) — draw those with Mermaid

Example prompts

  • “nanobanana”
  • “generate image”
  • “create image”
  • “/nanobanana-skill”

Requirements

  • Python 3
  • A credential in GEMINI_API_KEY
  • Pre-approved tools (allowed-tools): Read, Write, Glob, Grep, Task, Bash(cat:*), Bash(ls:*), Bash(tree:*), Bash(python3:*)

Workflow steps

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

  1. GEMINI_API_KEY: Must be configured in ~/.nanobanana.env or export GEMINI_API_KEY=
  2. Python3 with dependent packages installed: google-genai, Pillow, python-dotenv. They could be installed via python3 -m pip install -r…
  3. Executable: ${CLAUDE_SKILL_DIR}/nanobanana.py

What it can do on your machine

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

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Glob
    • Grep
    • Task
    • Bash(cat:*)
    • Bash(ls:*)
    • Bash(tree:*)
    • Bash(python3:*)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

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

  • Network

    No URLs in SKILL.md.

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

  • Credentials

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

    • GEMINI_API_KEY

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

Context cost

Nanobanana Skill loads about 1.1k tokens when it runs. Until then it costs about 98 tokens; SKILL.md has 343 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~98
When it runs · the whole SKILL.md, loaded when a task matches
~1.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); files beside SKILL.md are not scanned.

SKILL.md

The full file from feiskyer/claude-code-settings at commit 95dab59, republished under its MIT licence (© feiskyer). 343 words, ~1,101 tokens.

Download SKILL.mdSave it as .claude/skills/nanobanana-skill/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
nanobanana-skill
description
Generate or edit images via Google Gemini (nanobanana). This is the DEFAULT image skill — use whenever the user asks to generate, create, or edit an image and does NOT name another provider. Triggers: "nanobanana", "generate image", "create image", "edit image", "图片生成", "生成图片", "AI绘图", "图片编辑". Do NOT use for diagrams (架构图/流程图/时序图) — draw those with Mermaid or code instead.
allowed-tools
Read, Write, Glob, Grep, Task, Bash(cat:*), Bash(ls:*), Bash(tree:*), Bash(python3:*)

Nanobanana Image Generation Skill

Generate or edit images using Google Gemini API through the nanobanana tool.

Requirements

  1. GEMINI_API_KEY: Must be configured in ~/.nanobanana.env or export GEMINI_API_KEY=<your-api-key>
  2. Python3 with dependent packages installed: google-genai, Pillow, python-dotenv. They could be installed via python3 -m pip install -r ${CLAUDE_SKILL_DIR}/requirements.txt if not installed yet.
  3. Executable: ${CLAUDE_SKILL_DIR}/nanobanana.py

Instructions

For image generation
  1. Ask the user for:

    • What they want to create (the prompt)
    • Desired aspect ratio/size (optional, defaults to 9:16 portrait)
    • Output filename (optional, auto-generates UUID if not specified)
    • Model preference (optional, defaults to gemini-3.1-flash-image-preview)
    • Resolution (optional, defaults to 1K)
  2. Run the nanobanana script with appropriate parameters:

    bash
    python3 ${CLAUDE_SKILL_DIR}/nanobanana.py --prompt "description of image" --output "filename.png"
  3. Show the user the saved image path when complete

For image editing
  1. Ask the user for:

    • Input image file(s) to edit
    • What changes they want (the prompt)
    • Output filename (optional)
  2. Run with input images:

    bash
    python3 ${CLAUDE_SKILL_DIR}/nanobanana.py --prompt "editing instructions" --input image1.png image2.png --output "edited.png"

Available Options

Aspect Ratios (--size)
  • 1024x1024 (1:1) - Square
  • 832x1248 (2:3) - Portrait
  • 1248x832 (3:2) - Landscape
  • 864x1184 (3:4) - Portrait
  • 1184x864 (4:3) - Landscape
  • 896x1152 (4:5) - Portrait
  • 1152x896 (5:4) - Landscape
  • 768x1344 (9:16) - Portrait (default)
  • 1344x768 (16:9) - Landscape
  • 1536x672 (21:9) - Ultra-wide
Models (--model)
  • gemini-3.1-flash-image-preview (default) - Latest, fast generation
  • gemini-3-pro-image-preview - Higher quality, supports thinking/reasoning
Resolution (--resolution)
  • 1K (default)
  • 2K
  • 4K
Show full SKILL.md (147 more words)Show less
Other Options
  • --no-search - Disable Google Search grounding (enabled by default)
  • --no-think - Disable thinking/reasoning mode

Examples

Generate a simple image
bash
python3 ${CLAUDE_SKILL_DIR}/nanobanana.py --prompt "A serene mountain landscape at sunset with a lake"
Generate with specific size and output
bash
python3 ${CLAUDE_SKILL_DIR}/nanobanana.py \
  --prompt "Modern minimalist logo for a tech startup" \
  --size 1024x1024 \
  --output "logo.png"
Generate landscape image with high resolution
bash
python3 ${CLAUDE_SKILL_DIR}/nanobanana.py \
  --prompt "Futuristic cityscape with flying cars" \
  --size 1344x768 \
  --resolution 2K \
  --output "cityscape.png"
Edit existing images
bash
python3 ${CLAUDE_SKILL_DIR}/nanobanana.py \
  --prompt "Add a rainbow in the sky" \
  --input photo.png \
  --output "photo-with-rainbow.png"
Use pro model for higher quality
bash
python3 ${CLAUDE_SKILL_DIR}/nanobanana.py \
  --prompt "Detailed portrait of a cat in watercolor style" \
  --model gemini-3-pro-image-preview \
  --output "cat-portrait.png"

Error Handling

If the script fails:

  • Check that GEMINI_API_KEY is exported or set in ~/.nanobanana.env
  • Verify input image files exist and are readable
  • Ensure the output directory is writable
  • If no image is generated, try making the prompt more specific about wanting an image

Best Practices

  1. Be descriptive in prompts - include style, mood, colors, composition
  2. For logos/graphics, use square aspect ratio (1024x1024)
  3. For social media posts, use 9:16 for stories or 1:1 for posts
  4. For wallpapers, use 16:9 or 21:9
  5. Start with 1K resolution for testing, upgrade to 2K/4K for final output
  6. Use gemini-3-pro-image-preview for best quality, gemini-3.1-flash-image-preview (default) for speed

© feiskyer, 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 2 other files in skills/nanobanana-skill of feiskyer/claude-code-settings.

  • SKILL.md
  • nanobanana.py
  • requirements.txt

Open the folder on GitHubat commit 95dab59

Compare with similar skills

Nanobanana Skill 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 Skill compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Nanobanana Skill this skillfeiskyer/claude-code-settings1.7k—~1.1kAutomated safety check: PassMIT
Sf Diagram NanobananaproJaganpro/sf-skills424—~1.6kAutomated safety check: PassMIT
Generate ImageK-Dense-AI/claude-scientific-writer2.4k1 repos~3.8kAutomated safety check: NotesMIT
Nanobanana Image GenerationLeoYeAI/openclaw-master-skills2.2k—~4.5kAutomated safety check: PassMIT
Nanobanana SkillMicrock/ordinary-claude-skills404—~1kAutomated safety check: PassCustom licence
Generate ImageMicrock/ordinary-claude-skills404—~1.2kAutomated safety check: NotesCustom licence

Similar skills

  • 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
  • Generate Image

    K-Dense-AI/claude-scientific-writer

    Generate or edit images with AI models through the OpenRouter Image API (Gemini, Seedream, Recraft, GPT-Image, Riverflow).

    2.4k GitHub starsUsed in 1 repo~3.8k tokens
    Media & CreativeAuto-check: notes
  • Nanobanana Image Generation

    LeoYeAI/openclaw-master-skills

    A skill your agent uses when the user wants to generate or edit images with Google's Nanobanana/Gemini image models using the official Gemini API shape, or when they need publication-style…

    2.2k GitHub stars~4.5k tokensUpdated 2 mo ago
    Media & CreativeAuto-check passed
  • Nanobanana Skill

    Microck/ordinary-claude-skills

    Generate or edit images using Google Gemini API via nanobanana.

    404 GitHub stars~1k tokensUpdated 1 mo ago
    Media & CreativeAuto-check passed
  • Generate Image

    Microck/ordinary-claude-skills

    Generate or edit images using AI models (FLUX, Gemini). An agent skill from Microck/ordinary-claude-skills.

    404 GitHub stars~1.2k tokensUpdated 1 mo ago
    Media & CreativeAuto-check: notes
  • 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

More from feiskyer/claude-code-settings

All 12 skills in this repo
  • Skill Creator

    feiskyer/claude-code-settings

    Create, refine, and benchmark agent skills. An agent skill from feiskyer/claude-code-settings.

    1.7k GitHub stars~7.6k tokensUpdated 14 days ago
    Auto-check passed
  • Brainstorming

    feiskyer/claude-code-settings

    Explore user intent, requirements, and design options through collaborative dialogue before implementation.

    1.7k GitHub stars~985 tokensUpdated 14 days ago
    Auto-check passed
  • Deep Research

    feiskyer/claude-code-settings

    Multi-agent research orchestration: split a research goal into parallel sub-goals, run each via headless claude -p subprocesses, aggregate results into a polished report file.

    1.7k GitHub stars~2.6k tokensUpdated 14 days ago
    Auto-check: notes
  • Codex Skill

    feiskyer/claude-code-settings

    Leverage OpenAI Codex/GPT models for autonomous code implementation, code review, and plan review.

    1.7k GitHub stars~2.7k tokensUpdated 14 days ago
    Auto-check: warnings
  • GitHub Fix Issue

    feiskyer/claude-code-settings

    Fix GitHub issues end-to-end — analysis, branch creation, implementation, testing, and PR submission.

    1.7k GitHub stars~786 tokensUpdated 14 days ago
    Auto-check passed
  • GitHub Review PR

    feiskyer/claude-code-settings

    Review GitHub pull requests with detailed, multi-perspective code analysis using parallel subagents.

    1.7k GitHub stars~9.2k tokensUpdated 14 days ago
    Auto-check passed

Questions about Nanobanana Skill

What does Nanobanana Skill do?

Generate or edit images via Google Gemini (nanobanana). An agent skill from feiskyer/claude-code-settings. Nanobanana Skill is an agent skill from feiskyer/claude-code-settings. Generate or edit images via Google Gemini (nanobanana).

When should I use Nanobanana Skill?

Nanobanana Skill fits situations like: the user asks to generate; edit an image and does NOT name another provider; diagrams (架构图/流程图/时序图) — draw those with Mermaid.

How do I install Nanobanana Skill in Claude Code?

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

How do I install Nanobanana Skill in Codex?

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

Can I use Nanobanana Skill 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 feiskyer/claude-code-settings --skill nanobanana-skill -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-skill, .gemini/skills/nanobanana-skill, .github/skills/nanobanana-skill and .opencode/skills/nanobanana-skill in your project.

What does Nanobanana Skill need to run?

Going by SKILL.md and its folder, Nanobanana Skill needs Python for the scripts in its folder, the command-line tools its instructions call (python3) and credentials named GEMINI_API_KEY. Our summary lists: Python 3; A credential in GEMINI_API_KEY. Its frontmatter pre-approves these tools: Read, Write, Glob, Grep, Task, Bash(cat:*), Bash(ls:*), Bash(tree:*), Bash(python3:*).

Does Nanobanana Skill access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Nanobanana Skill 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. Review the folder before installing.

What licence does Nanobanana Skill use?

Nanobanana Skill is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Nanobanana Skill use?

About 1.1k tokens (SKILL.md is roughly 4.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Nanobanana Skill?

Skills that share tags, products or a category with Nanobanana Skill: Sf Diagram Nanobananapro (Jaganpro/sf-skills, 424 stars), Generate Image (K-Dense-AI/claude-scientific-writer, 2.4k stars), Nanobanana Image Generation (LeoYeAI/openclaw-master-skills, 2.2k stars) and Nanobanana Skill (Microck/ordinary-claude-skills, 404 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Nanobanana Skill?

feiskyer (a GitHub user) maintains it in feiskyer/claude-code-settings, which has 1,657 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on September 27, 2026.

Source: feiskyer/claude-code-settings on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.