Generate or edit images using Google Gemini API via nanobanana. Triggers: "nanobanana", "generate image", "create image", "edit image", "AI drawing", "图片生成", "AI绘图", "图片编辑", "生成图片".
/plugin marketplace add tianzecn/myclaudecode/plugin install tianzecn-feiskyer-plugins-feiskyer@tianzecn/myclaudecodeThis skill is limited to using the following tools:
Generate or edit images using Google Gemini API through the nanobanana tool.
~/.nanobanana.env or export GEMINI_API_KEY=<your-api-key>python3 -m pip install -r ${CLAUDE_PLUGIN_ROOT}/skills/nanobanana-skill/requirements.txt if not installed yet.${CLAUDE_PLUGIN_ROOT}/skills/nanobanana-skill/nanobanana.pyAsk the user for:
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
Ask the user for:
Run with input images:
python3 ${CLAUDE_PLUGIN_ROOT}/skills/nanobanana-skill/nanobanana.py --prompt "editing instructions" --input image1.png image2.png --output "edited.png"
1024x1024 (1:1) - Square832x1248 (2:3) - Portrait1248x832 (3:2) - Landscape864x1184 (3:4) - Portrait1184x864 (4:3) - Landscape896x1152 (4:5) - Portrait1152x896 (5:4) - Landscape768x1344 (9:16) - Portrait (default)1344x768 (16:9) - Landscape1536x672 (21:9) - Ultra-widegemini-3-pro-image-preview (default) - Higher qualitygemini-2.5-flash-image - Faster generation1K (default)2K4Kpython3 ${CLAUDE_PLUGIN_ROOT}/skills/nanobanana-skill/nanobanana.py --prompt "A serene mountain landscape at sunset with a lake"
python3 ${CLAUDE_PLUGIN_ROOT}/skills/nanobanana-skill/nanobanana.py \
--prompt "Modern minimalist logo for a tech startup" \
--size 1024x1024 \
--output "logo.png"
python3 ${CLAUDE_PLUGIN_ROOT}/skills/nanobanana-skill/nanobanana.py \
--prompt "Futuristic cityscape with flying cars" \
--size 1344x768 \
--resolution 2K \
--output "cityscape.png"
python3 ${CLAUDE_PLUGIN_ROOT}/skills/nanobanana-skill/nanobanana.py \
--prompt "Add a rainbow in the sky" \
--input photo.png \
--output "photo-with-rainbow.png"
python3 ${CLAUDE_PLUGIN_ROOT}/skills/nanobanana-skill/nanobanana.py \
--prompt "Quick sketch of a cat" \
--model gemini-2.5-flash-image \
--output "cat-sketch.png"
If the script fails:
GEMINI_API_KEY is exported or set in ~/.nanobanana.envCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.