Production-grade, agent-portable image prompting skill for Nano Banana Pro and Nano Banana 2 in the Gemini image family
Python
32
11 commits
updated May 30, 2026

A production-grade, agent-portable image prompting skill for Nano Banana Pro and Nano Banana 2 / V2 in the Gemini image family. It turns fuzzy creative requests into clean interview questions, grounded art direction, model-aware prompt stacks, edit-preservation deltas, and structured JSON payloads.
The skill is built as an open Agent Skills package with a canonical SKILL.md entrypoint, plus companion files for agents that prefer AGENTS.md, CLAUDE.md, or GEMINI.md.
Use this repo when you want an agent to do any of the following well:
The skill is optimized for both speed workflows using Nano Banana 2 / V2 for fast iteration, and high-fidelity workflows using Nano Banana Pro for complex reasoning, stronger text rendering, and tighter instruction following.
This repository now includes a broader companion skill at packages/model-aware-image-prompt-engineer.
Use it when the target is not only Nano Banana. It routes image prompts across Gemini, OpenAI image models, Midjourney, FLUX, Qwen-Image, Z-Image, Stable Diffusion, Pony, Illustrious, NoobAI, Animagine, HunyuanImage, HiDream, OmniGen2, Sana, PixArt, Kolors, Chroma, Runway, Ideogram, Firefly, Recraft, Luma, local ComfyUI workflows, and hosted wrappers.
It also includes a public README hero and infographic:
| Friendly name | Canonical model target | Best for |
|---|---|---|
| Nano Banana Pro | gemini-3-pro-image-preview | premium text rendering, complex layouts, infographics, poster work, careful edits |
| Nano Banana 2 / V2 | gemini-3.1-flash-image-preview | fast ideation, multi-variant batches, speedy edits, responsive iteration |
| Nano Banana | gemini-2.5-flash-image | legacy fast path, lightweight tasks |
The skill keeps model choice explicit in both the human-readable brief and the runtime JSON.
Gemini API note: Google currently documents Gemini image generation through generateContent, with gemini-3-pro-image-preview for Nano Banana Pro, gemini-3.1-flash-image-preview for Nano Banana 2 / V2, and gemini-2.5-flash-image for the legacy fast path. Keep prompt text, image config, source references, and provenance notes separate in runtime payloads.
| Goal | How |
|---|---|
| Portable | Canonical SKILL.md for skill-aware agents, plus AGENTS.md, CLAUDE.md, and GEMINI.md for ecosystem-specific loaders. |
| Modular | Core prompting logic split into focused files under skills/core/. Style and output families live in their own registries. Schemas and examples separated cleanly. |
| Beautiful | Includes a GitHub Pages front-end in docs/ with ImageGen raster artwork, SVG diagrams, and a polished landing page. |
| Deployable | Ships with a validation script, example compiler, and GitHub Actions CI workflow. |
nano-banana-image-skill/
├─ README.md
├─ SKILL.md # Canonical entrypoint (slim, under 500 chars)
├─ references/
│ └─ 00-orchestrator.md # Full workflow (progressive disclosure)
├─ AGENTS.md # Codex / AGENTS-style context
├─ CLAUDE.md # Claude Code memory
├─ GEMINI.md # Gemini CLI memory
├─ agents/
│ └─ openai.yaml # Codex UI metadata
├─ LICENSE # Apache-2.0
├─ .gitignore
├─ Makefile
├─ requirements-dev.txt
├─ schemas/
│ ├─ authoring-base.json # Rich authoring contract
│ ├─ runtime-compact.json # Compact runtime payload
│ └─ pack-format.json # Pack manifest schema
├─ registry/
│ ├─ style-axes.md # Style taxonomy
│ ├─ aliases.json # Model and style aliases
│ ├─ forbidden-slop.json # Slop scrubbing rules
│ ├─ interview-question-bank.json
│ └─ token-budgets.json
├─ skills/
│ ├─ core/ # 20+ modular guidance files
│ ├─ families/ # Style family modules
│ ├─ genres/ # Genre modules
│ ├─ movements/ # Art movement modules
│ └─ ... # cultures, capture, pipelines, etc.
├─ examples/
│ ├─ authoring/ # 5 rich authoring briefs
│ └─ runtime/ # 5 matching runtime payloads
├─ scripts/
│ ├─ validate_repo.py # Repository validator
│ ├─ compile_runtime.py # Authoring-to-runtime compiler
│ └─ compile_gemini_request.py # Runtime-to-Gemini request skeleton
├─ docs/
│ ├─ index.html # GitHub Pages landing page
│ └─ assets/ # Raster and SVG artwork (hero, infographic, flow, etc.)
└─ .github/workflows/
└─ validate.yml # CI validation workflow
| Client style | Primary file | Behavior |
|---|---|---|
| Open Agent Skills / skill-aware agents | SKILL.md | Canonical root entrypoint with progressive disclosure via references/. |
| AGENTS-style project guidance | AGENTS.md | Points the agent to the canonical skill and repo workflow. |
| Claude Code memory | CLAUDE.md | Loads concise repo-specific memory without replacing the skill. |
| Gemini CLI / Gemini Code Assist | GEMINI.md | Imports the canonical skill and references supporting files. |
git clone https://github.com/Emily2040/nano-banana-image-skill.git
cd nano-banana-image-skill
Codex / skill-aware clients:
mkdir -p ~/.agents/skills
ln -s /path/to/nano-banana-image-skill ~/.agents/skills/nano-banana-image-skill
Claude Code:
mkdir -p ~/.claude/skills
cp -R nano-banana-image-skill ~/.claude/skills/
Gemini CLI / Gemini Code Assist:
Open the full repository as a workspace. Gemini reads GEMINI.md which imports the canonical SKILL.md.
The high-level workflow is:
The modular files under skills/core/ document each step in detail. The full orchestrator lives in references/00-orchestrator.md.
| Scenario | Mode | Model | Key modules |
|---|---|---|---|
| Fast concept batch (sci-fi alley, drone shot) | generate | Nano Banana 2 | sci-fi, drone, volumetric-lighting, vfx-shot |
| Festival poster with readable text | generate + text-in-image | Nano Banana Pro | poster-layout, text-layout, japanese-edo, ukiyo-e |
| Precise product relight | edit + relight | Nano Banana Pro | preservation, edit-delta, background-swap |
| Character continuity across 3 frames | variation | Nano Banana Pro | continuity, reference-binding, preservation |
| Classroom infographic with labels | generate | Nano Banana Pro | infographic, text-layout, educational |
Five validated authoring + runtime example pairs live in examples/.
python -m pip install -r requirements-dev.txt
python scripts/validate_repo.py
python scripts/compile_runtime.py examples/authoring/poster-edo-festival-text.json \
-o /tmp/poster.runtime.json
python scripts/compile_gemini_request.py examples/runtime/poster-edo-festival-text.json \
-o /tmp/poster.gemini-request.json
make validate
make compile-examples
This repository includes a static landing page in docs/. To publish it:
master branch and the /docs folder, or main if you rename the default branch.A .nojekyll file is included to keep the static assets untouched.
Created by Iamemily2050
Apache-2.0. See LICENSE.
Python
94.3%
Makefile
5.7%
Production-grade, agent-portable image prompting skill for Nano Banana Pro and Nano Banana 2 in the Gemini image family
Python
32
11 commits
updated May 30, 2026

A production-grade, agent-portable image prompting skill for Nano Banana Pro and Nano Banana 2 / V2 in the Gemini image family. It turns fuzzy creative requests into clean interview questions, grounded art direction, model-aware prompt stacks, edit-preservation deltas, and structured JSON payloads.
The skill is built as an open Agent Skills package with a canonical SKILL.md entrypoint, plus companion files for agents that prefer AGENTS.md, CLAUDE.md, or GEMINI.md.
Use this repo when you want an agent to do any of the following well:
The skill is optimized for both speed workflows using Nano Banana 2 / V2 for fast iteration, and high-fidelity workflows using Nano Banana Pro for complex reasoning, stronger text rendering, and tighter instruction following.
This repository now includes a broader companion skill at packages/model-aware-image-prompt-engineer.
Use it when the target is not only Nano Banana. It routes image prompts across Gemini, OpenAI image models, Midjourney, FLUX, Qwen-Image, Z-Image, Stable Diffusion, Pony, Illustrious, NoobAI, Animagine, HunyuanImage, HiDream, OmniGen2, Sana, PixArt, Kolors, Chroma, Runway, Ideogram, Firefly, Recraft, Luma, local ComfyUI workflows, and hosted wrappers.
It also includes a public README hero and infographic:
| Friendly name | Canonical model target | Best for |
|---|---|---|
| Nano Banana Pro | gemini-3-pro-image-preview | premium text rendering, complex layouts, infographics, poster work, careful edits |
| Nano Banana 2 / V2 | gemini-3.1-flash-image-preview | fast ideation, multi-variant batches, speedy edits, responsive iteration |
| Nano Banana | gemini-2.5-flash-image | legacy fast path, lightweight tasks |
The skill keeps model choice explicit in both the human-readable brief and the runtime JSON.
Gemini API note: Google currently documents Gemini image generation through generateContent, with gemini-3-pro-image-preview for Nano Banana Pro, gemini-3.1-flash-image-preview for Nano Banana 2 / V2, and gemini-2.5-flash-image for the legacy fast path. Keep prompt text, image config, source references, and provenance notes separate in runtime payloads.
| Goal | How |
|---|---|
| Portable | Canonical SKILL.md for skill-aware agents, plus AGENTS.md, CLAUDE.md, and GEMINI.md for ecosystem-specific loaders. |
| Modular | Core prompting logic split into focused files under skills/core/. Style and output families live in their own registries. Schemas and examples separated cleanly. |
| Beautiful | Includes a GitHub Pages front-end in docs/ with ImageGen raster artwork, SVG diagrams, and a polished landing page. |
| Deployable | Ships with a validation script, example compiler, and GitHub Actions CI workflow. |
nano-banana-image-skill/
├─ README.md
├─ SKILL.md # Canonical entrypoint (slim, under 500 chars)
├─ references/
│ └─ 00-orchestrator.md # Full workflow (progressive disclosure)
├─ AGENTS.md # Codex / AGENTS-style context
├─ CLAUDE.md # Claude Code memory
├─ GEMINI.md # Gemini CLI memory
├─ agents/
│ └─ openai.yaml # Codex UI metadata
├─ LICENSE # Apache-2.0
├─ .gitignore
├─ Makefile
├─ requirements-dev.txt
├─ schemas/
│ ├─ authoring-base.json # Rich authoring contract
│ ├─ runtime-compact.json # Compact runtime payload
│ └─ pack-format.json # Pack manifest schema
├─ registry/
│ ├─ style-axes.md # Style taxonomy
│ ├─ aliases.json # Model and style aliases
│ ├─ forbidden-slop.json # Slop scrubbing rules
│ ├─ interview-question-bank.json
│ └─ token-budgets.json
├─ skills/
│ ├─ core/ # 20+ modular guidance files
│ ├─ families/ # Style family modules
│ ├─ genres/ # Genre modules
│ ├─ movements/ # Art movement modules
│ └─ ... # cultures, capture, pipelines, etc.
├─ examples/
│ ├─ authoring/ # 5 rich authoring briefs
│ └─ runtime/ # 5 matching runtime payloads
├─ scripts/
│ ├─ validate_repo.py # Repository validator
│ ├─ compile_runtime.py # Authoring-to-runtime compiler
│ └─ compile_gemini_request.py # Runtime-to-Gemini request skeleton
├─ docs/
│ ├─ index.html # GitHub Pages landing page
│ └─ assets/ # Raster and SVG artwork (hero, infographic, flow, etc.)
└─ .github/workflows/
└─ validate.yml # CI validation workflow
| Client style | Primary file | Behavior |
|---|---|---|
| Open Agent Skills / skill-aware agents | SKILL.md | Canonical root entrypoint with progressive disclosure via references/. |
| AGENTS-style project guidance | AGENTS.md | Points the agent to the canonical skill and repo workflow. |
| Claude Code memory | CLAUDE.md | Loads concise repo-specific memory without replacing the skill. |
| Gemini CLI / Gemini Code Assist | GEMINI.md | Imports the canonical skill and references supporting files. |
git clone https://github.com/Emily2040/nano-banana-image-skill.git
cd nano-banana-image-skill
Codex / skill-aware clients:
mkdir -p ~/.agents/skills
ln -s /path/to/nano-banana-image-skill ~/.agents/skills/nano-banana-image-skill
Claude Code:
mkdir -p ~/.claude/skills
cp -R nano-banana-image-skill ~/.claude/skills/
Gemini CLI / Gemini Code Assist:
Open the full repository as a workspace. Gemini reads GEMINI.md which imports the canonical SKILL.md.
The high-level workflow is:
The modular files under skills/core/ document each step in detail. The full orchestrator lives in references/00-orchestrator.md.
| Scenario | Mode | Model | Key modules |
|---|---|---|---|
| Fast concept batch (sci-fi alley, drone shot) | generate | Nano Banana 2 | sci-fi, drone, volumetric-lighting, vfx-shot |
| Festival poster with readable text | generate + text-in-image | Nano Banana Pro | poster-layout, text-layout, japanese-edo, ukiyo-e |
| Precise product relight | edit + relight | Nano Banana Pro | preservation, edit-delta, background-swap |
| Character continuity across 3 frames | variation | Nano Banana Pro | continuity, reference-binding, preservation |
| Classroom infographic with labels | generate | Nano Banana Pro | infographic, text-layout, educational |
Five validated authoring + runtime example pairs live in examples/.
python -m pip install -r requirements-dev.txt
python scripts/validate_repo.py
python scripts/compile_runtime.py examples/authoring/poster-edo-festival-text.json \
-o /tmp/poster.runtime.json
python scripts/compile_gemini_request.py examples/runtime/poster-edo-festival-text.json \
-o /tmp/poster.gemini-request.json
make validate
make compile-examples
This repository includes a static landing page in docs/. To publish it:
master branch and the /docs folder, or main if you rename the default branch.A .nojekyll file is included to keep the static assets untouched.
Created by Iamemily2050
Apache-2.0. See LICENSE.
Python
94.3%
Makefile
5.7%