nano-banana-use
Skill127 starsChanged 10 months agoMITView on GitHub
Generate, edit, and compose images using Gemini Nano Banana models via portable Python scripts. Handles authentication via API Key or Vertex AI environment variables. Available parameters: prompt, model, aspect-ratio, safety-filter-level. Always confirm parameters with the user or explicitly state defaults before running.
- Reads credentials
In this repository10 other files it gives its agents.
- skills/google-adk-python/references/agents.mdAGENTS.md
- deep-researchSkill
- google-adk-pythonSkill
- google-developer-knowledgeSkill
- google-genai-sdk-pythonSkill
- nano-banana-buildSkill
- speech-buildSkill
- speech-useSkill
- veo-buildSkill
- veo-useSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this skill to generate, edit, and compose images using Gemini's Nano Banana models (gemini-2.5-flash-image and …
- Distinctive: line 14
Ensure you have one of the following authentication methods configured in your environment:
- Distinctive: line 29
Before running the script, confirm the following parameters with the user or state the defaults you will use:
- Very specific: line 31
Model: Default is gemini-3-pro-image-preview.
- Very specific: line 32
Aspect Ratio: Default is 1:1.
- Very specific: line 33
Safety Filter: Default is BLOCK_MEDIUM_AND_ABOVE.
- Very specific: line 36
Run the python script using uv:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Nano Banana Use
Use this skill to generate, edit, and compose images using Gemini's Nano Banana models (gemini-2.5-flash-image and gemini-3-pro-image-preview).
This skill uses portable Python scripts managed by uv.
Prerequisites
Ensure you have one of the following authentication methods configured in your environment:
- API Key:
GOOGLE_API_KEYorGEMINI_API_KEY
- Vertex AI:
GOOGLE_CLOUD_PROJECTGOOGLE_CLOUD_LOCATIONGOOGLE_GENAI_USE_VERTEXAI=1
Usage
Generate an Image
Step 1: Confirm Parameters Before running the script, confirm the following parameters with the user or state the defaults you will use:
- Prompt: The image description.
- Model: Default is
gemini-3-pro-image-preview. - Aspect Ratio: Default is
1:1. - Safety Filter: Default is
BLOCK_MEDIUM_AND_ABOVE.
Step 2: Run the Script
Run the python script using uv:
uv run skills/nano-banana-use/scripts/generate_image.py "A futuristic banana city" --output city.pngEdit an Image
Modify an existing image based on a text prompt.
uv run skills/nano-banana-use/scripts/edit_image.py original.png "Make the sky purple" --output edited.pngCompose Images
Generate a new image based on multiple input images and a prompt.
uv run skills/nano-banana-use/scripts/compose_image.py --image style.png --image subject.jpg "A painting of the subject in the style of the first image" --output composition.pngOptions
prompt: The text description of the image.--model: The model to use. Defaults togemini-3-pro-image-preview.--output: The filename for the saved image. Defaults togenerated_image.png.--aspect-ratio: The aspect ratio of the generated image. Defaults to1:1. Supported:1:1,16:9,4:3,3:4,9:16.--safety-filter-level: Safety filter threshold. Defaults toBLOCK_MEDIUM_AND_ABOVE.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

