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
- GEMINI_API_KEY: Must be configured in
~/.nanobanana.envorexport GEMINI_API_KEY=<your-api-key> - 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.txtif not installed yet. - Executable:
${CLAUDE_PLUGIN_ROOT}/skills/nanobanana-skill/nanobanana.py
Instructions
For image generation
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)
Run the nanobanana script with appropriate parameters:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/nanobanana-skill/nanobanana.py --prompt "description of image" --output "filename.png"Show the user the saved image path when complete
For image editing
Ask the user for:
- Input image file(s) to edit
- What changes they want (the prompt)
- Output filename (optional)
Run with input images:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/nanobanana-skill/nanobanana.py --prompt "editing instructions" --input image1.png image2.png --output
…(truncated)