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.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
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.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate accurate, readable D2 block diagrams for software, research, and system explanations from a text brief. Normalize components and edges, write a canonical .d2 source file, render compact sketch-style SVG and optional PNG artifacts by default, support optional LaTeX equation blocks when the diagram genuinely needs them, keep arrows unlabeled unless a label adds concrete meaning, and emit Telegram file directives when needed.
Create, edit, Git-version, compile, and deliver scientific LaTeX papers, reports, and research-derived PDF summaries. Use for venue-aware templates such as ICLR, NeurIPS, ICML, CVPR, ACL, ACM, and IEEE; experiment-result tables; architecture figures or diagrams; deep-research/pro-research/fast-research to PDF summaries; and .tex to PDF builds with latexmk.
Extract and return figures from already-downloaded local PDFs with PyMuPDF, optionally reusing PageIndex artifacts for page selection and verifying shortlisted candidates multimodally before delivery.
Automated browser control via the `browser-use` CLI. Navigate pages, fill forms, click elements, take screenshots, and extract content from the command line. Used by `apply-to-job` to drive real ATS portals end-to-end while the human watches.
Author, validate, run, and oversee OpenColab project workflows that coordinate multiple agents through bounded loops, decisions, and human gates.
Deep scientific investigation with papercli. Iterative search, broad PDF corpus download and reading, equation-level analysis, and exhaustive referenced markdown findings.
| name | nano-banana |
| description | 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. |
| homepage | https://ai.google.dev/gemini-api/docs/image-generation |
| metadata | {"opencolab":{"emoji":"🖼️","os":["linux","darwin"],"requires":{"bins":["python3"]}}} |
Use this skill when the user wants image generation or image editing with Google Gemini, especially for:
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.
Given a prompt and zero or more reference images:
python3 is installed and available in PATH.google-genai is installed:python3 -m pip install google-genai
projects/SKILLS/nano-banana/scripts/nano_banana.py for the API call so key loading stays consistent with the repo.gemini-3-pro-image-preview unless the user explicitly wants a cheaper or faster model.images/, not under artifacts/.@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, keep kind as photo (never image/png/jpg), and on Windows write the path with forward slashes.--input and tell the model exactly what must stay unchanged.Good prompts for this skill are explicit about:
Useful prompt patterns:
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 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.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.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
<output-prefix>_01.<ext>, <output-prefix>_02.<ext>, and so on.<output-prefix>.txt.<output-prefix>.json.--input and tighten the prompt.projects/SKILLS/nano-banana/SKILL.mdprojects/SKILLS/nano-banana/scripts/nano_banana.py