/nano-banana:nano-bananafrom nano-banana
Generates and edits images using Gemini or OpenAI models. Offers direct generation and interactive prompt crafting. For AI art, brand-styled imagery, and reproducible generation.
Ships in nano-banana. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Unified image generation workflow using a fixed Python script with JSON configuration. Eliminates AI hallucinations by avoiding dynamic code generation.
Two modes:
generate_images.pyThe script picks the API based on IMAGE_GEN_MODEL and reference_image:
| Condition | API | Endpoint |
|---|---|---|
gpt-image-2, no reference_image, no TrendLife featured | client.images.generate() | POST /images/generations |
gpt-image-2 + reference_image | client.images.edit() | POST /images/edits |
gpt-image-2 + style: "trendlife" + layout: "featured" | client.images.edit() (logo as image) | POST /images/edits |
| Gemini or other | client.chat.completions.create() | POST /chat/completions |
gpt-image-2: Always uses quality="low" — other values timeout or return 400. Seed and temperature
unsupported (silently ignored, one warning per job).
Gemini (gemini-3-pro-image, gemini-3.1-flash-image): use chat.completions with
extra_body={"response_modalities": ["IMAGE"]}.
client.chat.completions.create(
model=os.environ.get("IMAGE_GEN_MODEL") or "gemini-3-pro-image",
messages=[{"role": "user", "content": prompt}],
seed=seed,
temperature=temperature,
extra_body={"response_modalities": ["IMAGE"]},
)
If IMAGE_GEN_MODEL is set, use it EXACTLY as-is. Custom endpoints have their own model names —
do not append suffixes like -preview. Only choose a default when the env var is unset.
model = os.environ.get("IMAGE_GEN_MODEL")
if not model:
model = "gemini-3-pro-image"
# Use as-is — do NOT add suffixes
Full model × feature matrix: references/api-compatibility.md
Write tool → {temp_dir}/nano-banana-config-{timestamp}.jsonuv run --managed-python ${CLAUDE_SKILL_DIR}/scripts/generate_images.py --config <temp_config_path>
${CLAUDE_SKILL_DIR} prefix without cd — keeps cwd in user's project so relative
paths in config resolve correctly.cd scripts && uv run --managed-python generate_images.py ...uv run --managed-python ${CLAUDE_SKILL_DIR}/scripts/generate_images.py ...5+ slides → automatic background execution. Details: references/batch-generation.md
Minimal:
{
"slides": [{"number": 1, "prompt": "...", "style": "trendlife"}],
"output_dir": "./001-feature-name/"
}
output_dir MUST be ./NNN-short-name/ (relative path, 3-digit number, kebab-case)model field (use env var), no seed/temperature for gpt-image-2Full schema, format selection, layout field rules, gpt-image-2 examples: references/config-reference.md
"seed": 42"temperature" fieldslide.seed > config.seed > auto-generateSame seed + same prompt + same temperature = identical image. Auto-seeds are recorded in
{output_dir}/generation-results.json.
Full parsing patterns + reproducibility detail: references/temperature-seed.md
Detect style: "trendlife", style: "notebooklm", or natural language ("use trendlife style").
references/logo-overlay.md and
references/brand-styles.mdreferences/slide-deck-styles.mdPriority: inline spec → ask in Interactive Mode → no style (default).
| Value | Use for | Logo handling |
|---|---|---|
"featured" | title, divider, closing | Logo as reference image, AI integrates naturally |
"content" | information slides | Post-generation overlay, bottom-right corner |
| omitted | (auto-detect from keywords — less reliable) | — |
Always specify layout explicitly for TrendLife. Full detection rules + manual override:
references/logo-overlay.md
Trigger: prompt help requested OR prompt <5 words.
| Step | Action |
|---|---|
| 1. Gather | Check for reference images, existing prompts, inline style specs |
| 2. Clarify | AskUserQuestion: output type? subject? style? |
| 3. Select technique | Pick from 16+ patterns in references/guide.md |
| 4. Generate prompt | Apply technique + brand style + aspect ratio |
| 5. Present | Show prompt with explanation and variations |
| 6. Execute | Run via Unified Generation Workflow |
Brand style integration:
style: "trendlife"): see references/brand-styles.mdstyle: "notebooklm"): use "clean professional presentation aesthetic" — never the
"NotebookLM" name. See references/slide-deck-styles.mdTechniques and examples: references/guide.md
| Topic | File |
|---|---|
| API compatibility, model × feature matrix | references/api-compatibility.md |
| Batch / multi-slide generation | references/batch-generation.md |
| TrendLife brand specs | references/brand-styles.md |
| Config schema, layout field, format selection | references/config-reference.md |
| Example workflows (4 scenarios) | references/examples.md |
| Prompting techniques (16+) | references/guide.md |
| Logo overlay rules + manual override | references/logo-overlay.md |
| NotebookLM / infographic / data-viz styles | references/slide-deck-styles.md |
| Seed & temperature (Gemini only) | references/temperature-seed.md |
| Errors, debugging, RONE limitations | references/troubleshooting.md |
| Temperature & seed testing data | ../EXPERIMENT_RESULTS.md |
assets/README.md (opens in a new tab)assets/logos/README.md (opens in a new tab)assets/logos/trendlife-2026-logo-light.png (opens in a new tab)assets/templates/README.md (opens in a new tab)references/api-compatibility.md (opens in a new tab)references/batch-generation.md (opens in a new tab)references/brand-styles.md (opens in a new tab)references/config-reference.md (opens in a new tab)references/examples.md (opens in a new tab)references/guide.md (opens in a new tab)references/logo-overlay.md (opens in a new tab)references/slide-deck-styles.md (opens in a new tab)references/temperature-seed.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)scripts/generate_images.py (opens in a new tab)scripts/logo_overlay.py (opens in a new tab)scripts/test_gpt_image.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
image-generation, ai-art, prompt-engineering, gemini, brand-styling
Other plugins' skills for the same job
npx claudepluginhub pigfoot/claude-code-hubs --plugin nano-banana