nanobanana-skill

nanobanana-skill is a skill for Claude Code from feiskyer/claude-code-settings. It costs 109 tokens per session (1,262 once invoked), scanned A, original, MIT.

An image-generation and image-editing skill that uses Google Gemini through the Nanobanana tool. It covers prompts, image sizes, output files, models, resolutions, and required setup.

In plain words
What is it for?
Generating new images from descriptions and editing existing image files with specified changes, sizes, filenames, models, and resolutions.
Why use it?
It provides a defined process for creating or changing images without having to remember the tool’s commands and configuration.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the claude-code-settings plugin — 12 skills, 9 agents, 1 MCP server shipped together

Good fit Generating new images from descriptions and editing existing image files with specified changes, sizes, filenames, models, and resolutions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/feiskyer/claude-code-settings/nanobanana-skill
About the project

Claude Code Skills & Agents is a collection of reusable skills, sub-agents, and configuration templates that extend Claude Code with workflows such as research, image generation, translation, and GitHub automation. It is for Claude Code users who want to install these capabilities individually or as a marketplace plugin. The catalogue entries are components from this collection.

feiskyer/claude-code-settings · 1,647 stars · on GitHub · feisky.xyz

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 feiskyer/claude-code-settings --skill nanobanana-skill
Clone the repo
git clone --depth 1 https://github.com/feiskyer/claude-code-settings

Made for: Claude Code.

Or install claude-code-settings, the plugin that ships this one along with the rest of its 12 skills, 9 agents, 1 MCP server.

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-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/feiskyer/claude-code-settings/nanobanana-skill.svg)](https://agentmods.dev/skills/feiskyer/claude-code-settings/nanobanana-skill)
Your own site
<a href="https://agentmods.dev/skills/feiskyer/claude-code-settings/nanobanana-skill"><img src="https://agentmods.dev/badge/skills/feiskyer/claude-code-settings/nanobanana-skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 109 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,262 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 warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 3
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
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.00109 $0.01262
Opus 5 $0.00055 $0.00631
Sonnet 5 $0.00022 $0.00252
Haiku 4.5 $0.00011 $0.00126

Measured 8d ago against content hash 4d753d0a9759, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

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

The scan reads SKILL.md. This mod also ships 1 executable file (nanobanana.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/SKILL.md · 142 lines

How it starts

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

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:

    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:

    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

Read the full file on GitHub · 142 lines

Files

What ships with it

2 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. 8d ago First seen · 142 lines · 109 tokens per session scan A 4d753d0a9759

Subscribe to this mod's changes

nanobanana-skill is a skill published in the GitHub repository feiskyer/claude-code-settings (1,647 stars, last pushed 25d ago), licensed MIT. It adds 109 tokens to every session and 1,262 once invoked, about $0.0005 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-30.

Related

Other skills, from other repositories

nanobanana-skill

Generate, remix, or edit images with Nanobanana / Nano Banana 2 through the bundled Gemini CLI wrapper. Use this whenever the user wants AI image generation or editing, especially for reference-image composition, character consistency, grounded visuals that may need live web search, style transfer, marketing graphics…

feiskyer/codex-settings · 107 tokens

gpt-image-skill

A workflow for generating or editing images with OpenAI's image-generation API, using a bundled Python script.

feiskyer/codex-settings · 112 tokens

youtube-transcribe-skill

A tool for extracting subtitles or transcripts from YouTube videos and saving them as timestamped text files.

feiskyer/codex-settings · 58 tokens

minimax-image-skill

Generate images with the MiniMax Image API. Use when the user asks for MiniMax image generation, image-01, image-01-live, or an image from a text prompt through MiniMax.

feiskyer/codex-settings · 46 tokens

feature-demo-recording

Record a demo video of a web feature from a real browser. Two modes -- a NARRATED film where measured voiceover drives the timeline (designed slides, subtitles, punch-in camera, rendered from an HTML timeline), and a SILENT evidence clip for a PR or a QA pass. Use when the user asks to record a video, demo, or screen…

kirodotdev/KiroCrew · 90 tokens

image-authoring

Author images and diagrams as code — SVG, Pillow, Excalidraw, mermaid. Load when asked to draw, illustrate, or make an image, icon, logo, poster, or diagram.

kirodotdev/KiroCrew · 45 tokens