Back to Skills

nanobanana-skill

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

1,134stars171forksUpdated 1/23/2026

Security Assessment

Medium Risk(65/100)

Detected risks:

Secret Exposure([SKILL.md] API_KEY=)
Sensitive File Access([SKILL.md] .env)
Security Score65/100

About nanobanana-skill

The 'nanobanana-skill' enables users to generate and edit images using the Google Gemini API. By leveraging nanobanana, this skill simplifies the process of creating AI-driven visual content for various applications. Whether it's for generating new images based on descriptive prompts or editing existing ones with specific modifications, this skill streamlines image creation and enhances creative workflows. It is particularly valuable for those looking to produce custom images on demand, such as marketers, content creators, and designers, without requiring in-depth technical knowledge or advanced graphic design tools.

FAQ

How do I generate an image using nanobanana-skill?

To generate an image, use the following command: `python3 ${CLAUDE_PLUGIN_ROOT}/skills/nanobanana-skill/nanobanana.py --prompt 'image description' --output 'filename.png'`. Optionally, you can customize the aspect ratio, resolution, and model used.

What are the requirements for using the nanobanana-skill?

The skill requires a valid GEMINI_API_KEY, Python3 with necessary packages (google-genai, Pillow, python-dotenv), and access to the executable script located at `${CLAUDE_PLUGIN_ROOT}/skills/nanobanana-skill/nanobanana.py`.

Can I edit an image using this skill?

Yes, you can edit images by providing input files and specifying the changes you want in the prompt. The command to edit an image is: `python3 ${CLAUDE_PLUGIN_ROOT}/skills/nanobanana-skill/nanobanana.py --prompt 'editing instructions' --input image1.png --output 'edited.png'`.

Are there any limitations to the types of images I can create?

While the skill can generate a wide variety of images, it's important to provide clear and descriptive prompts. The quality and relevance of the output depend on how specific and detailed the prompt is.

All Files

3 files
nanobanana.py4.6 KB
View
requirements.txt0.0 KB
View
SKILL.md4.1 KB
View

Install nanobanana-skill

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill