nano-banana
Skill387 starsChanged 5 months agoMITView on GitHub
Generate and edit images using Google's Gemini image generation models (Nano Banana family). Supports style presets, platform-specific sizing (YouTube/slides/blog), variants, image editing via inlineData, reference images for style transfer, and organized output with metadata. Default model is Nano Banana 2 (gemini-3.1-flash-image-preview). Key is auto-decrypted via SOPS.
- Reads credentials
25 other projects use a version of this.
Adopted by
Most recently taken up by
- EvoScientist/EvoSkillstheir own version, first seen Sep 30, 2026
- lsongdev/skillstheir own version, first seen Sep 10, 2026
- buildatscale-tv/agent-skillstheir own version, first seen Sep 9, 2026
- OpenMinis/MinisSkillstheir own version, first seen Sep 4, 2026
- JoeCotellese/claude-code-configtheir own version, first seen Aug 5, 2026
- jh941213/my-cc-harnesstheir own version, first seen Jul 27, 2026
Used with
Projects with it also use hyperframes-cli, tavily-search and 4 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
OpenAISkillhyperframes-cli
HyperFrames CLI tool — hyperframes init, lint, inspect, preview, render, transcribe, tts, doctor, browser, info, upgrade, compositions, docs, benchmark. Use when scaffolding a project, linting, validating, inspecting visual layout in compositions, previewing in the studio, rendering to video, transcribing audio, generating TTS, or troubleshooting the HyperFrames environment.
Also in 4 projects that use this
caicongyangSkilltavily-search
Tavily 搜索工具,提供 AI 优化的搜索结果。每月免费 1000 次查询。
Also in 3 projects that use this
IgosukiSkillweb-search
This skill should be used when users need to search the web for information, find current content, look up news articles, search for images, or find videos. It uses DuckDuckGo's search API to return results in clean, formatted output (text, markdown, or JSON). Use for research, fact-checking, finding recent information, or gathering web resources.
Also in 3 projects that use this
JetBrainsSkillbrand-guidelines
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.
Also in 3 projects that use this
VercelSkillfrontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
Also in 3 projects that use this
MicrosoftSkillskill-creator
Guide for creating effective GitHub Copilot skills (.github/skills/) in this repository. Use when creating a new skill, updating an existing skill, or when asked about skill structure, format, or best practices for the vscode-documentdb project.
Also in 3 projects that use this
Other versions25 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 25
- nexu-io/nexu★ 3.3ksame name
- EvoScientist/EvoSkills★ 470same name
- OpenMinis/MinisSkills★ 438same name
- kkoppenhaver/cc-nano-banana★ 377same name
- LichAmnesia/lich-skills★ 233same name
- refly-ai/refly-skills★ 203same name
- jh941213/my-cc-harness★ 126same name
- okou-ai/okou-skills★ 77same name
- mycelium-hq/ai-brain-starter★ 38same name
- nilecui/SkillsBase★ 27same name
15 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository104 other files it gives its agents.
- automation-advisor/CLAUDE.mdCLAUDE.md
- agency-docs-updaterSkill
- agency-meetup-publishSkill
- agency-socialsSkill
- agent-cliSkill
- app-releaseSkill
- automation-advisorSkill
- balancedSkill
- brand-agencySkill
- browser-mateSkill
- browsing-historySkill
- chrome-historySkill
- coaching-session-summarizerSkill
- codexSkill
- cognitive-toolkitSkill
- context-builderSkill
- cull-release-checkSkill
- cull-release-prepareSkill
- cull-release-publishSkill
- cull-release-recoverSkill
- cull-releaseSkill
- cull-release-verifySkill
- cullSkill
- daydreamSkill
- decision-toolkitSkill
- deep-researchSkill
- design-tokensSkill
- doctorgSkill
- ecosystemSkill
- elevenlabs-ttsSkill
- elimination-researchSkill
- fathomSkill
- feature-factorySkill
- firecrawl-researchSkill
- font-featuresSkill
- github-gistSkill
- gmailSkill
- google-image-searchSkill
- gpt-image-2Skill
- granolaSkill
- gwsSkill
- health-dataSkill
- i18n-studioSkill
- init-tauri-appSkill
- init-xcode-appSkill
- insight-extractorSkill
- jtbdSkill
- lab-retroSkill
- learning-vaultSkill
- linearSkill
- llm-cliSkill
- local-modelsSkill
- meeting-prepSkill
- meeting-processorSkill
- metaSkill
- name-auditionSkill
- nielsen-heuristicsSkill
- pdf-generationSkill
- peer-agent-collaborationSkill
- presentation-generatorSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 1 is distinctive, and 4 are very specific to this project.
0
Common
Most of the 24 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 69
Use via --model flash|pro|flash-2.5 or full ID.
- Very specific: line 121
When each output needs *different* text or a different prompt (e.g.
- Very specific: line 145
Use 'single quotes' for the exact text you want rendered, inside the double-quoted prompt, so the model reproduces it verbatim.
- Very specific: line 148
After a batch, assemble a review sheet by calling the tool directly (no var indirection): magick montage ad-*.png -tile 2x3 -geometry …
- Distinctive: line 157
Use one or more reference images to guide the aesthetic without editing them:
“Common” is measured: kept by at least 6 in 10 of the 24 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Nano Banana - Gemini Image Generation
Generate and edit images from text prompts via Google's Gemini image generation API.
When to Use
- User requests image generation, creation, or production from a text description
- Editing existing images with text instructions
- Style-transfer: generate new images that match the aesthetic of a reference
- Creating illustrations for presentations, articles, thumbnails, social posts
- Batch variations of the same concept
First-Time Setup
scripts/nano_banana.py initWizard checks dependencies (sops, age, magick), verifies the API key, and saves defaults to ~/.config/nano-banana/config.yaml.
Quick Start
# Simple generation
scripts/nano_banana.py "a minimalist illustration of a rocket" ./rocket.png
# With style preset
scripts/nano_banana.py --preset editorial "interconnected nodes" ./nodes.png
# YouTube thumbnail (auto-cropped to 1280x720)
scripts/nano_banana.py --preset grain --platform youtube "coffee on desk" ./thumb.png
# Generate 4 variants + contact sheet
scripts/nano_banana.py --preset wireframe "a crystal" ./crystal.png --n 4
# Edit existing image
scripts/nano_banana.py --edit ./old.png "make the background deep teal" ./new.png
# Style reference (match aesthetic of existing image)
scripts/nano_banana.py --reference ./style.png "a new mountain landscape" ./mountain.png
# Re-roll last prompt
scripts/nano_banana.py again
# View history
scripts/nano_banana.py history -n 10Requirements
GEMINI_API_KEY— auto-decrypted fromsecrets.enc.yamlvia SOPS + age. Fallback:export GEMINI_API_KEY=...sops,age— for key decryptionmagick(ImageMagick) — for platform fit + contact sheetspython3withpyyaml
Models
| Model | Alias | Nano Banana Name | Use When |
gemini-3.1-flash-image-preview (default) | flash | Nano Banana 2 | Best instruction following, fast |
gemini-3-pro-image-preview | pro | Nano Banana Pro | Highest quality, text in images |
gemini-2.5-flash-image | flash-2.5 | Nano Banana (original) | Legacy |
Use via --model flash|pro|flash-2.5 or full ID.
Style Presets
scripts/nano_banana.py list-presets
scripts/nano_banana.py --preset editorial "your subject" out.png| Preset | Style |
editorial | Thin lines on black, muted palette, technical diagram feel |
blueprint | White/cyan lines on dark navy, engineering drawing |
ink | Japanese sumi-e ink wash, organic brushstrokes, monochrome |
risograph | Flat colors, grain, terracotta + sage, zine aesthetic |
wireframe | 3D wireframe mesh, glowing edges on black |
constellation | Star map dots connected by faint lines, celestial |
brutalist | Bold shapes, thick borders, hard shadows, flat colors |
grain | Film grain photo, high ISO, warm cinematic tones |
Defined in presets.yaml — edit to add your own.
Platform Presets
scripts/nano_banana.py list-platforms
scripts/nano_banana.py --platform youtube "your subject" out.pngGenerated image is automatically resized + center-cropped to target dimensions.
| Platform | Size |
youtube | 1280×720 |
youtube-short | 1080×1920 |
slides | 1920×1080 |
blog | 1200×630 |
x | 1600×900 |
square | 1080×1080 |
story | 1080×1920 |
pinterest | 1000×1500 |
Features
Variants + Contact Sheet
--n N generates N variants in parallel and assembles them into a contact sheet:
scripts/nano_banana.py --preset ink "mountain" ./mt.png --n 6
# Creates mt-01.png ... mt-06.png + mt-contact.pngBatch generation (campaigns / multi-copy ad sets)
When each output needs different text or a different prompt (e.g. a set of ads sharing one style), loop over a list. --n won't help here — it re-rolls the same prompt. Use a shared $STYLE string + a per-item array.
cd /abs/output/dir
REF="_reference.png" # optional style anchor
STYLE="<shared visual-style description, written once>"
# Each entry: pipe-delimited fields + output filename. NAME the array — see gotchas.
ADS=(
"CALL NOW|FOR TOTAL|CONFIDENTIALITY|ad-callnow.png"
"REDACT|BEFORE|YOU SEND|ad-redact.png"
)
for entry in "${ADS[@]}"; do
IFS='|' read -r L1 L2 L3 OUT <<< "$entry"
python3 scripts/nano_banana.py \
"$STYLE The exact text reads, on three centered lines: '$L1' / '$L2' / '$L3'. Spell every word correctly." \
"$OUT" --reference "$REF" --platform youtube --model pro --no-metadata --project NAME
doneShell gotchas (this is zsh on macOS — these bite every time):
- Never name a loop array
LINES,COLUMNS,PATH,path,status,argv, etc. — zsh reserves them.LINES=(...)fails withcan't assign array value to non-array special. UseADS,ITEMS,JOBS. - zsh does NOT word-split unquoted variables (unlike bash).
CMD="magick montage"; $CMD ...looks for a single command literally named "magick montage". Don't stuff multi-word commands in a var — call the command directly, or use an array (cmd=(magick montage); "${cmd[@]}"). - Always quote expansions —
"$OUT","${ADS[@]}"— paths and prompts contain spaces. - Use
'single quotes'for the exact text you want rendered, inside the double-quoted prompt, so the model reproduces it verbatim. - To parallelize a batch, append
&per iteration andwaitat the end — but cap concurrency (the API rate-limits); sequential is safest for >6 items.
After a batch, assemble a review sheet by calling the tool directly (no var indirection): magick montage ad-*.png -tile 2x3 -geometry 480x270+6+6 -background black _contact.png.
Edit Mode
Pass an existing image and the prompt becomes the edit instruction:
scripts/nano_banana.py --edit ./thumb.png "remove the watermark, warmer colors" ./clean.pngReference Images (Style Anchor)
Use one or more reference images to guide the aesthetic without editing them:
scripts/nano_banana.py --reference ./episode1.png --reference ./episode2.png \
"episode 3: data drift" ./ep3.pngProjects + Metadata
Organize outputs by project:
scripts/nano_banana.py --project lab-04/meeting-02 --preset editorial "MCP loops" ./overlay.png
# Saves to ~/nano-banana/outputs/lab-04/meeting-02/20260414-<subject>.png + .json sidecarRe-roll + History
scripts/nano_banana.py again # rerun last prompt
scripts/nano_banana.py history -n 20 # show last 20 generations
scripts/nano_banana.py history --project lab-04Dry Run
Preview the composed prompt without calling the API:
scripts/nano_banana.py --preset editorial --platform youtube "subject" --dry-runTransient Errors & Retry
The API occasionally returns 500/INTERNAL or empty candidates. The script retries up to 4 times with exponential backoff (2s, 4s, 8s, 16s). Permanent errors (4xx, safety violations) fail fast without retry.
Prompt Tips
- Specify visual style: "photograph", "flat illustration", "watercolor", "3D render"
- Include composition: "centered", "white background", "wide shot"
- Name colors: "blue and white color scheme", "warm earth tones"
- For text rendering, use
--model proand quote exact text:'with the text "Hello"'
See references/api_reference.md for full API documentation.
Files
scripts/nano_banana.py— main CLI (Python)scripts/generate_image.sh— thin bash wrapper (back-compat)presets.yaml— style presetsplatforms.yaml— platform sizing presetssecrets.enc.yaml— encrypted API key (SOPS + age)~/.config/nano-banana/config.yaml— user defaults (frominit)~/.config/nano-banana/history.jsonl— generation log~/.config/nano-banana/last.json— last run (foragain)
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.

