nanobanana-skill

Featured

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.

AI & Automation 1,684 stars 241 forks Updated 2 weeks ago MIT

Install

View on GitHub

Quality Score: 94/100

Stars 20%
100
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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...

Details

Author
feiskyer
Repository
feiskyer/claude-code-settings
Created
1 years ago
Last Updated
2 weeks ago
Language
Python
License
MIT

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

nanobanana

Generate, edit, or restore image files via Google's Gemini image models (Nano Banana). Produces actual image files, never prose or ASCII art. TRIGGER when the user asks for an image, picture, photo, icon, favicon, logo, banner, thumbnail, wallpaper, poster, hero, cover, mockup, wireframe, illustration, sketch, render, pattern, texture, or diagram (flowchart, architecture, schema, network, database, mindmap, sequence); when the user says "show me", "visualize", "what would X look like", "draw", "design", "mock up", "make a picture/logo/icon"; or when the user attaches an image and asks to edit, restore, upscale, colorize, or remove background. Activate even when Nano Banana / Gemini is not named. SKIP when the user wants an SVG hand-coded, a chart generated programmatically (matplotlib/plotly/d3), or a markdown image link to an existing URL. Requires NANOBANANA_API_KEY (or GEMINI_API_KEY).

1 Updated 1 weeks ago
batou9150
AI & Automation Solid

nanobanana

Generate and edit images using Google Gemini 3 Pro Image (Nano Banana Pro). Supports text-to-image, image editing, various aspect ratios, and high-resolution output (2K/4K). Use when user wants to generate images, create images, use Gemini image generation, or do AI image generation.

1,924 Updated today
ReScienceLab
AI & Automation Listed

nanobanana

Gemini画像生成APIでテキストから画像生成、既存画像の編集を行うスキル。 「画像を生成して」「イラストを作って」「写真を編集して」等のリクエストで発動。

349 Updated 1 months ago
minicoohei