jimezsa/opencolab/projects/SKILLS/nano-banana/SKILL.md
nano-banana
Generate and edit images with Google Gemini Nano Banana Pro from prompts and optional reference images, using GEMINI_API_KEY from .env.local when available.
- Source repository stars
- 11
- Declared platforms
- 0
- Static risk flags
- 1
- Last source update
- 2026-08-04
- Source checked
- 2026-08-04
Decision brief
What it does—and where it fits
Use this skill when the user wants image generation or image editing with Google Gemini, especially for:
Not for
- Tasks that require unconfirmed production actions or broad system permissions.
- Environments where the pinned source and install steps cannot be inspected.
Compatibility matrix
Platform support, with evidence labels
| Platform | Status | Evidence | What to check |
|---|---|---|---|
| Codex | Not declared | No explicit evidence | Portability before use |
| Claude Code | Not declared | No explicit evidence | Portability before use |
| Cursor | Not declared | No explicit evidence | Portability before use |
| Gemini CLI | Not declared | No explicit evidence | Portability before use |
Installation
Inspect first. Install second.
The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.
npx skills add https://github.com/jimezsa/opencolab --skill "projects/SKILLS/nano-banana"Inspect the Agent Skill "nano-banana" from https://github.com/jimezsa/opencolab/blob/f647b8e4c37a18b4bd3443bd4a8f5470ea1b9d09/projects/SKILLS/nano-banana/SKILL.md at commit f647b8e4c37a18b4bd3443bd4a8f5470ea1b9d09. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.
Workflow
What the source asks the agent to do
- 01
Workflow
Good prompts for this skill are explicit about:
subject,composition,style, - 02
3. Review outputs
The script saves generated images as 01., 02., and so on.
The script saves generated images as 01., 02., and so on.Any model text is saved as .txt.A machine-readable run summary is saved as .json. - 03
Mission
Given a prompt and zero or more reference images:
Generate a new image or edit an existing one with Gemini.Save every returned image locally.Save any accompanying model text next to the image outputs. - 04
Prerequisites
python3 is installed and available in PATH.
python3 is installed and available in PATH.google-genai is installed:Network access is available when the Gemini request runs. - 05
Hard Requirements
Use projects/SKILLS/nano-banana/scripts/nanobanana.py for the API call so key loading stays consistent with the repo.
Use projects/SKILLS/nano-banana/scripts/nanobanana.py for the API call so key loading stays consistent with the repo.Default to gemini-3-pro-image-preview unless the user explicitly wants a cheaper or faster model.Save generated images in the current project folder under images/, not under artifacts/.
Permission review
Static risk signals and limitations
Runs scripts
The documentation asks the agent to run terminal commands or scripts.
python3 -m pip install google-genaiRuns scripts
The documentation asks the agent to run terminal commands or scripts.
### 2. Run the scriptEvidence record
Why each signal appears
| Signal | Value | Evidence type | Meaning |
|---|---|---|---|
| Quality score | 87/100 | Computed | Documentation, specificity, maintenance, and trust rules |
| Repository stars | 11 | Source | Repository attention, not individual Skill quality |
| Compatibility | 0 platforms | Source | Declared in the catalog source record |
| Usage guide | automated source guide | Editorial | Generated or reviewed according to the visible evidence level |
Pinned source
Provenance and original SKILL.md
- Repository
- jimezsa/opencolab
- Skill path
- projects/SKILLS/nano-banana/SKILL.md
- Commit
- f647b8e4c37a18b4bd3443bd4a8f5470ea1b9d09
- License
- MIT
- Collected
- 2026-08-04
- Default branch
- main
View the original SKILL.md
Nano Banana Pro Skill
Use this skill when the user wants image generation or image editing with Google Gemini, especially for:
- paper architecture diagrams,
- figure redraws and cleanups,
- annotated illustrations,
- posters, covers, assets, and product shots,
- edits to an existing image while preserving the important parts.
This skill defaults to Nano Banana Pro (gemini-3-pro-image-preview), which Google documents as the professional image model for complex instructions and high-fidelity asset production.
Mission
Given a prompt and zero or more reference images:
- Generate a new image or edit an existing one with Gemini.
- Save every returned image locally.
- Save any accompanying model text next to the image outputs.
- Keep the workflow deterministic and scriptable from the terminal.
Prerequisites
python3is installed and available inPATH.google-genaiis installed:
python3 -m pip install google-genai
- Network access is available when the Gemini request runs.
Hard Requirements
- Use
projects/SKILLS/nano-banana/scripts/nano_banana.pyfor the API call so key loading stays consistent with the repo. - Default to
gemini-3-pro-image-previewunless the user explicitly wants a cheaper or faster model. - Save generated images in the current project folder under
images/, not underartifacts/. - If the generated image should be sent back to Telegram, emit a raw
@telegram-file {"kind":"photo","file":"<path>","caption":"optional"}line on its own line after generation. Do not wrap it in backticks or code fences. Keep the JSON on one line, keepkindasphoto(neverimage/png/jpg), and on Windows write the path with forward slashes. - For edits, pass the existing image with
--inputand tell the model exactly what must stay unchanged. - For diagrams, specify the layout, labels, arrow directions, grouping, legend, and aspect ratio explicitly.
- When exact text matters, write the exact text in the prompt and keep it short.
- Do not assume the model inferred the paper structure correctly if the diagram is research-critical; inspect the generated image afterward.
Workflow
1. Write a concrete prompt
Good prompts for this skill are explicit about:
- subject,
- composition,
- style,
- required labels/text,
- what to preserve,
- what to change,
- output format or aspect ratio.
Useful prompt patterns:
- Paper architecture diagram:
Create a clean research-paper architecture diagram on a white background. Show the pipeline as five left-to-right blocks with arrows between them: Input Image, Feature Encoder, Multi-Scale Fusion, 3D Reconstruction Head, Rendered Output. Use concise academic figure styling, thin gray arrows, blue highlight for the main module, and exact labels in a modern sans-serif font. Add a small legend in the lower-right corner. - Edit an image:
Edit the provided image. Keep the framing, subject identity, and overall lighting unchanged. Replace the background with a clean studio backdrop, add a subtle shadow, and preserve the original object proportions. - Redraw a rough figure:
Use the provided sketch as structure reference only. Redraw it as a polished conference-paper figure with consistent spacing, aligned labels, clear arrows, and export-ready visual quality.
2. Run the script
Generate a new image:
python3 projects/SKILLS/nano-banana/scripts/nano_banana.py \
--prompt "Create a conference-paper style architecture diagram for a monocular 3D reconstruction pipeline with clearly labeled modules, arrows, and a small legend." \
--aspect-ratio 16:9 \
--image-size 2K \
--output-prefix images/mono3d-diagram
Edit an existing image:
python3 projects/SKILLS/nano-banana/scripts/nano_banana.py \
--prompt "Edit the provided figure into a polished academic diagram. Keep the layout and labels semantically equivalent, but clean the typography, spacing, arrow routing, and color hierarchy." \
--input assets/rough-diagram.png \
--aspect-ratio 16:9 \
--image-size 2K \
--output-prefix images/rough-diagram-polished
Use multiple references:
python3 projects/SKILLS/nano-banana/scripts/nano_banana.py \
--prompt "Create a product hero image using the bottle from the first reference and the packaging language from the second reference. Keep the bottle shape faithful to the original." \
--input references/bottle.png \
--input references/box.png \
--aspect-ratio 4:5 \
--image-size 2K \
--output-prefix images/product-hero
Use Google Search grounding when real-world accuracy matters:
python3 projects/SKILLS/nano-banana/scripts/nano_banana.py \
--prompt "Create an editorial-style travel poster for Berlin using accurate landmark details and current visual references." \
--google-search \
--aspect-ratio 3:4 \
--image-size 2K \
--output-prefix images/berlin-poster
3. Review outputs
- The script saves generated images as
<output-prefix>_01.<ext>,<output-prefix>_02.<ext>, and so on. - Any model text is saved as
<output-prefix>.txt. - A machine-readable run summary is saved as
<output-prefix>.json. - If the first result is close but not correct, rerun with the previous output as a new
--inputand tighten the prompt.
Output Contract
- One or more local image files.
- Optional accompanying text file if Gemini returns text alongside the image.
- One JSON summary describing the model, prompt source, inputs, and saved outputs.
Canonical Assets
- Skill doc:
projects/SKILLS/nano-banana/SKILL.md - Python runner:
projects/SKILLS/nano-banana/scripts/nano_banana.py
Alternatives
Compare before choosing
alirezarezvani/claude-skills
app-store-optimization
App Store Optimization (ASO) toolkit for researching keywords, analyzing competitor rankings, generating metadata suggestions, and improving app visibility on Apple App Store and Google Play Store. Use when the user asks about ASO, app store rankings, app metadata, app titles and descriptions, app store listings, app visibility, or mobile app marketing on iOS or Android. Supports keyword research and scoring, competitor keyword analysis, metadata optimization, A/B test planning, launch checklist
dotnet/skills
migrate-vstest-to-mtp
Migrates .NET test projects from VSTest to Microsoft.Testing.Platform (MTP). Use when user asks to "migrate to MTP", "switch from VSTest", "enable Microsoft.Testing.Platform", "use MTP runner", set OutputType=Exe only for test projects in Directory.Build.props, or mentions EnableMSTestRunner, EnableNUnitRunner, or UseMicrosoftTestingPlatformRunner. USE FOR: MTP behavioral differences vs VSTest (exit code 8, zero tests discovered, --ignore-exit-code, TESTINGPLATFORM_EXITCODE_IGNORE); centralizing
HKUDS/Vibe-Trading
strategy-generate
Create, modify, and optimize quantitative trading strategies, then backtest and evaluate them.
K-Dense-AI/scientific-agent-skills
dask
Distributed computing for larger-than-RAM pandas/NumPy workflows. Use when you need to scale existing pandas/NumPy code beyond memory or across clusters. Best for parallel file processing, distributed ML, integration with existing pandas code. For out-of-core analytics on single machine use vaex; for in-memory speed use polars.