/claude-skills:nano-banana-pro-jsonfrom claude-skills
Generates and edits raster images using Google's Nano Banana models (2.1 default, Pro on request). Covers logos, product shots, ads, mockups, and infographics with style presets and WebP output.
Ships in claude-skills. 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.
Generate and edit images using Google's Nano Banana models (Gemini image API) with structured JSON control, style presets, and photorealistic enhancement. Everyday work runs on Nano Banana 2.1; switch to Nano Banana Pro with --model pro when the job needs it.
Run the script using absolute path (do NOT cd to skill directory first):
uv run ~/.claude/skills/nano-banana-pro-json/scripts/generate_image.py --prompt "description" --filename "output.png" [options]
Important: Always run from the user's current working directory so images save where the user is working.
Do not read an image file before editing it. Pass its path to --input-image and let the script send it. Reading it first spends the whole file through the context window and changes nothing about the result.
If uv isn't found (uv: command not found — non-interactive shells often drop ~/.local/bin or the Homebrew bin from PATH), resolve it and call it explicitly rather than giving up. This script needs uv (third-party deps: google-genai, pillow), so plain python3 is not a fallback here:
UV="$(command -v uv || ls "$HOME/.local/bin/uv" "$HOME/.cargo/bin/uv" /opt/homebrew/bin/uv /usr/local/bin/uv 2>/dev/null | head -1)"
"$UV" run ~/.claude/skills/nano-banana-pro-json/scripts/generate_image.py --prompt "..." --filename "..."
--model (-m) picks the model. Use pro for infographics, diagrams and photorealistic images, and whenever the user asks for Pro. Use flash for everything else. Pro costs about four times as much per 1K image.
--model | Model ID | Use for | Price per image (paid tier) |
|---|---|---|---|
flash (default) | gemini-nano-banana-2.1 | Everyday generation and editing: concepts, illustrations, quick edits, drafts of an infographic before the Pro final | $0.0336 at 1K, $0.0504 at 2K, $0.113 at 4K |
pro | gemini-3-pro-image | Infographics and diagrams; photorealistic images; the user says "Pro" or "best quality"; final brand or logo assets; complex multi-step edits; many reference images | $0.134 at 1K or 2K, $0.24 at 4K |
lite | gemini-3.1-flash-lite-image | Cheap, fast drafts and bulk variations. 1K only; weak at multi-reference and multi-turn editing | $30 per 1M output image tokens (Google gives no per-image figure) |
What a side-by-side test showed (one infographic and one photo per model, 1K, 2026-12-05):
lite for final images that might contain signs, packaging or print.Prices are from Google's Gemini API pricing page, checked 2026-12-05; check there before quoting a cost. A full model ID beginning gemini- also works, so a new model needs no code change. Set NANO_BANANA_MODEL=pro to change the default for a session; --model still wins. The script prints the model it used: report it with the result.
Works identically to the original nano-banana-pro skill:
uv run ~/.claude/skills/nano-banana-pro-json/scripts/generate_image.py --prompt "A serene Japanese garden" --filename "2025-11-23-14-23-05-japanese-garden.png"
Use --style-preset NAME to apply a curated camera/lighting/composition profile:
| Preset | Camera | Lighting | Look |
|---|---|---|---|
photorealistic-studio | Sony A7III, 85mm f/1.4 | Studio three-point, 5500K | Professional headshot, clean |
nostalgic-film | Film 35mm f/2.8 | Direct flash, warm 3800K | 1990s aesthetic, grain |
cinematic | Kodak Portra 400, 50mm f/1.8 | Golden hour side light, 3200K | Film grain, bokeh, emotional |
high-fashion | DSLR 85mm f/2.0 | Dramatic flash, cool 5000K | Editorial, bold styling |
anime-hyperrealistic | Portrait lens 85mm f/1.4 | Spotlight, cool 6500K | Anime-inspired, high contrast |
Example:
uv run ~/.claude/skills/nano-banana-pro-json/scripts/generate_image.py \
--prompt "portrait of a woman in a garden" \
--filename "2025-11-23-14-23-05-studio-portrait.png" \
--style-preset photorealistic-studio
Logos are a distinct mode — flat, iconic, scalable, the opposite of the photographic presets above.
When the user wants a logo, brand mark, wordmark, or brand identity, follow the brand-brief
recipe in references/logo-brand-identity.md: take a short
brief (name, industry, personality, colors, logo type, icon concept), construct a logo-appropriate
prompt (flat vector, minimal, strong silhouette, limited palette — explicitly away from
photorealism/3D/gradients), generate a batch of varied concepts at --aspect-ratio 1:1 --resolution 2K
(no photographic --style-preset, no --photorealistic), run the proof checklist (monochrome,
favicon-size, spelling, originality), iterate via --input-image one change at a time, then
vectorize the winner to SVG for free (vtracer/potrace — the step every paid logo tool charges for).
Boundary: the generator makes a raster concept (the recipe's Step 5 traces it to production SVG locally). It does not do trademark clearance or confirm font licensing, and text can slip — verify a wordmark's spelling.
For product shots, e-commerce catalog images, lifestyle scenes, and ad creative, follow
references/product-marketing.md. It's photographic (the presets
help), and adds the product-specific discipline: e-commerce specs (pure #FFFFFF bg, product fills
70-90%, per-platform aspect ratios), identity-lock when you pass a real product via
--input-image ("preserve exact appearance; do not reinterpret"), consistent shot sets
(lock lighting/angle, vary one element), and on-image text.
Boundary: for a real product it can subtly alter details — verify the render against reality, and never render fabricated prices/claims/label text or brand-impersonation imagery.
For infographics, explainers, and process/comparison diagrams, follow
references/infographics-diagrams.md: pick a layout matching
the content's shape (timeline / pyramid / hub-and-spoke / comparison / funnel / cross-section) and a
named style (corporate-flat, isometric, blueprint…), supply every label and number verbatim in
quotes, and proofread the output.
Boundary: it renders the look of an infographic, not trustworthy data — it garbles text and
invents numbers. Supply the facts and verify them; for real data viz use the report-builder
skill, not this.
Use --json-config with a file path or inline JSON string:
# Inline JSON
uv run ~/.claude/skills/nano-banana-pro-json/scripts/generate_image.py \
--prompt "mountain landscape" \
--filename "output.png" \
--json-config '{"style_parameters":{"camera":{"focal_length":"24mm","aperture":"f/8"}}}'
# File path
uv run ~/.claude/skills/nano-banana-pro-json/scripts/generate_image.py \
--prompt "mountain landscape" \
--filename "output.png" \
--json-config config.json
{
"prompt": "optional - CLI --prompt always takes precedence",
"consistency_id": "character name for consistency across generations",
"style_parameters": {
"camera": {
"type": "DSLR",
"model": "Sony A7III",
"focal_length": "85mm",
"aperture": "f/1.4",
"shutter_speed": "1/200s",
"iso": "100"
},
"lighting": {
"type": "Studio",
"setup": "Three-point lighting",
"direction": "Front-angled key light",
"color_temperature": "5500K"
},
"composition": {
"framing": "Medium close-up",
"perspective": "Eye-level",
"depth_of_field": "Shallow"
}
},
"output_settings": {
"aspect_ratio": "16:9",
"format": "png"
}
}
All fields are optional. Only include what you want to control.
Use --aspect-ratio to set the output shape. The ratio goes to the API, which sets the real pixel size, and a short phrase is added to the prompt to guide composition.
Choices: 1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 4:5, 5:4, 21:9, and the banner and strip ratios 1:4, 4:1, 1:8, 8:1.
pro does not support 1:4, 4:1, 1:8 or 8:1; the script refuses them before any API call, so switch to flash for a banner or strip. With no ratio, an edit keeps the input image's shape and a new image is square.
uv run ~/.claude/skills/nano-banana-pro-json/scripts/generate_image.py \
--prompt "cityscape at dusk" \
--filename "output.png" \
--aspect-ratio 16:9
Can also be set via JSON output_settings.aspect_ratio. CLI flag takes precedence.
Use --photorealistic to auto-inject quality markers (8k, ultra-sharp, hyperrealistic, visible pores, natural skin texture, etc.):
uv run ~/.claude/skills/nano-banana-pro-json/scripts/generate_image.py \
--prompt "portrait of an elderly fisherman" \
--filename "output.png" \
--photorealistic
All options can be combined. Precedence rules:
--prompt always wins over JSON prompt field--aspect-ratio wins over JSON output_settings.aspect_ratioExample combining everything:
uv run ~/.claude/skills/nano-banana-pro-json/scripts/generate_image.py \
--prompt "portrait of a woman on a rooftop at sunset" \
--filename "2025-11-23-14-23-05-rooftop-portrait.png" \
--style-preset cinematic \
--json-config '{"style_parameters":{"camera":{"focal_length":"35mm"}},"consistency_id":"Elena"}' \
--photorealistic \
--aspect-ratio 16:9 \
--resolution 4K
The flash and pro models support three resolutions (uppercase K required). lite supports 1K only: the script refuses 2K or 4K with lite, and caps an edit's auto-detected resolution at 1K.
Map user requests:
1K1K2K4KChecked in order:
--api-key argumentGEMINI_API_KEY environment variableGenerate filenames with the pattern: yyyy-mm-dd-hh-mm-ss-name.ext
yyyy-mm-dd-hh-mm-ss (24-hour format).png (default), .jpg, or .webp based on JSON config output_settings.formatExamples:
2025-11-23-14-23-05-japanese-garden.png2025-11-23-15-30-12-sunset-mountains.jpgWhen modifying an existing image:
--input-image with the path to the source image--prompt contains editing instructionsuv run ~/.claude/skills/nano-banana-pro-json/scripts/generate_image.py \
--prompt "make it look like a cinematic film still" \
--filename "2025-11-23-14-25-30-cinematic-edit.png" \
--input-image "original-photo.jpg" \
--style-preset cinematic
Set via JSON config output_settings.format, filename extension, or --webp flag:
WebP notes: The Gemini API does not natively export WebP. The script receives the image as PNG/JPEG from the API and converts it to WebP using PIL. This adds a negligible conversion step but produces smaller files with good quality.
Use --webp to force WebP output regardless of filename extension:
uv run ~/.claude/skills/nano-banana-pro-json/scripts/generate_image.py \
--prompt "sunset over ocean" \
--filename "2025-11-23-14-23-05-sunset.png" \
--webp
This saves as 2025-11-23-14-23-05-sunset.webp (extension auto-corrected).
Use --quality (1-100, default 80) to control JPEG/WebP compression:
# High quality WebP
uv run ~/.claude/skills/nano-banana-pro-json/scripts/generate_image.py \
--prompt "detailed macro photo" \
--filename "output.webp" \
--quality 95
# Smaller file size
uv run ~/.claude/skills/nano-banana-pro-json/scripts/generate_image.py \
--prompt "web thumbnail" \
--filename "output.webp" \
--quality 60
Quality has no effect on PNG output (always lossless).
--webp flag (highest)output_settings.formatSimple generation:
uv run ~/.claude/skills/nano-banana-pro-json/scripts/generate_image.py \
--prompt "A cat wearing a tiny hat" \
--filename "2025-11-23-14-23-05-cat-hat.png"
Studio portrait with preset:
uv run ~/.claude/skills/nano-banana-pro-json/scripts/generate_image.py \
--prompt "professional headshot of a young CEO" \
--filename "2025-11-23-14-23-05-ceo-headshot.png" \
--style-preset photorealistic-studio \
--photorealistic \
--resolution 4K
Cinematic landscape with custom JSON:
uv run ~/.claude/skills/nano-banana-pro-json/scripts/generate_image.py \
--prompt "misty mountain valley at dawn" \
--filename "2025-11-23-14-23-05-mountain-dawn.png" \
--json-config '{"style_parameters":{"camera":{"focal_length":"24mm","aperture":"f/11"},"lighting":{"setup":"Soft diffused dawn light","color_temperature":"4000K warm"}}}' \
--aspect-ratio 16:9 \
--resolution 4K
Nostalgic film edit:
uv run ~/.claude/skills/nano-banana-pro-json/scripts/generate_image.py \
--prompt "add warm film grain and a slight vignette" \
--filename "2025-11-23-14-23-05-nostalgic-edit.png" \
--input-image "modern-photo.jpg" \
--style-preset nostalgic-film
This skill calls Google's Gemini image API ("Nano Banana Pro" / Gemini 3 Pro Image) via the official google-genai SDK, and converts output formats with Pillow (PIL). It requires your own GEMINI_API_KEY — no key is bundled or stored in the skill. Not affiliated with or endorsed by Google; Google's API terms, pricing, and content policies apply.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub kevin-burns/claude-skills --plugin claude-skills32 skills in this plugin
/adr-authorWrite or amend an architecture decision record (ADR) that a team will want to read and that names exactly what it decides: the modules, functions, paths or settings, and what must or must never happen. Asks whether the decision deserves a record, interviews briefly, follows the repo's existing ADR format and numbering, shows the draft before writing, and self-checks it (hedged decisions, names missing from the code, status and supersede links). Also amends or supersedes a record when the code turned out to be right. Use for "write an ADR", "record this decision", "document the architecture decision we made", "turn this into a decision record", "supersede ADR 4", "our ADR no longer matches the code", or a one-off exception to an existing ADR. Does not judge code against records, and does not make the decision. General prose and docs are clear-and-human./azadvertizerOffline lookups over AzAdvertizer's published Azure data: Policy, policy initiative and RBAC role metadata with cross-references found nowhere else in one place (which roles a policy uses, which initiatives include a policy, which policies use a role), plus Entra ID roles, API permissions (Microsoft Graph and other first-party apps) and resource types with their latest API versions. Use whenever accurate current facts about an Azure built-in policy, initiative, RBAC or Entra role, Graph permission or resource API version are needed for Azure IaC, governance or landing-zone work.Other plugins' skills for the same job