nanobanana-skill

Generate or edit images using Google Gemini API via nanobanana

View on GitHub
Author Pengfei Ni
Namespace @feiskyer/claude-code-settings
Category general
Version 1.0.1
Stars 1,159
Downloads 34
self.md verified
Table of content

Generate or edit images using Google Gemini API via nanobanana

Installation

npx claude-plugins install @feiskyer/claude-code-settings/nanobanana-skill

Contents

Folders: skills

Included Skills

This plugin includes 1 skill definition:

nanobanana-skill

‘Generate or edit images using Google Gemini API via nanobanana. Triggers: “nanobanana”, “generate image”, “create image”, “edit image”, “AI drawing”, “图片生成”, “AI绘图”, “图片编辑”, “生成图片”.’

View skill definition

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 depedent packages installed: google-genai, Pillow, python-dotenv. They could be installed via python3 -m pip install -r ${CLAUDE_PLUGIN_ROOT}/skills/nanobanana-skill/requirements.txt if not installed yet.
  3. Executable: ${CLAUDE_PLUGIN_ROOT}/skills/nanobanana-skill/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-pro-image-preview)
    • Resolution (optional, defaults to 1K)
  2. Run the nanobanana script with appropriate parameters:

    python3 ${CLAUDE_PLUGIN_ROOT}/skills/nanobanana-skill/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_PLUGIN_ROOT}/skills/nanobanana-skill/nanobanana.py --prompt "editing instructions" --input image1.png image2.png --output 
    

…(truncated)

Source

View on GitHub

Tags: general