Agent skill

Nanobanana Image Generation

by LeoYeAI in LeoYeAI/openclaw-master-skills

A skill your agent uses when the user wants to generate or edit images with Google's Nanobanana/Gemini image models using the official Gemini API shape, or when they need publication-style…

MITAuto-check passedMedia & Creative

Install Nanobanana Image Generation

skills CLI
$ npx skills add LeoYeAI/openclaw-master-skills --skill nanobanana-image-generation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install LeoYeAI/openclaw-master-skills nanobanana-image-generation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/LeoYeAI/openclaw-master-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/materials-science-figure-skill .claude/skills/nanobanana-image-generation && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
nanobanana-image-generation
GitHub stars
2.2k
Token cost
~4.5k tokens
SKILL.md length
1,712 words
Files
16 (incl. scripts, references)
Skills in repo
1,235
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when the user wants to generate or edit images with Google's Nanobanana/Gemini image models using the official Gemini API shape, or when they need publication-style…

  • Works in 2 steps: If the user needs an exact edit of the… → If the user accepts a close recreation,…
  • The user wants to generate
  • SKILL.md covers Overview, Attachment-Only Inputs, Quick Start and Workflow, plus 9 more sections
  • Runs Python and JavaScript scripts from its folder; calls python3 and node; reaches generativelanguage.googleapis.com and api.zhizengzeng.com; needs NANOBANANA_API_KEY and GEMINI_API_KEY

What it does

Nanobanana Image Generation is an agent skill from LeoYeAI/openclaw-master-skills. Use when the user wants to generate or edit images with Google's Nanobanana/Gemini image models using the official Gemini API shape, or when they need publication-style scientific figures rendered exactly from data with the bundled Python plotting tool. Prefer this skill for text-to-image, image-to-image editing, multi-image reference workflows, attachment-based recreations, exact bar/trend/heatmap/scatter plots, or when the user wants publication-style figures such as materials-science paper schematics. Use it…

Its SKILL.md is about 4.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 18 other files, including scripts and reference files (for example `_meta.json`, `agents/openai.yaml` and `references/api-reference.md`).

It sits in Media & Creative, covering Image generation, Data visualization and Image editing. It works with Python and Google Gemini. The repository describes itself as: 🧠 Curated collection of 1209+ best OpenClaw skills — weekly updated by MyClaw.ai. The licence is MIT.

When your agent uses it

  • The user wants to generate
  • Edit images with Googles Nanobanana/Gemini image models using the official Gemini API shape
  • They need publication-style scientific figures rendered exactly from data with the bundled Python plotting tool
  • Wants publication-style figures such as materials-science paper schematics

Example prompts

  • “/nanobanana-image-generation”

Requirements

  • Python 3
  • Node.js
  • A credential in NANOBANANA_API_KEY
  • A credential in GEMINI_API_KEY

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. If the user needs an exact edit of the original uploaded pixels, ask for the local file path first.
  2. If the user accepts a close recreation, analyze the attached image visually and generate a new image that preserves the original…

What it can do on your machine

Read from SKILL.md and the folder at commit e5199b5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 5 files in scripts/ (Python and JavaScript), which the agent can run.

    Shell commands in SKILL.md call:

    • python3
    • node

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • generativelanguage.googleapis.com
    • api.zhizengzeng.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • NANOBANANA_API_KEY
    • GEMINI_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Nanobanana Image Generation loads about 4.5k tokens when it runs, and up to ~14k if it reads all its reference files. Until then it costs about 187 tokens; SKILL.md has 1,712 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~187
When it runs · the whole SKILL.md, loaded when a task matches
~4.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~14k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from LeoYeAI/openclaw-master-skills at commit e5199b5, republished under its MIT licence (© LeoYeAI). 1,712 words, ~4,451 tokens.

Download SKILL.mdSave it as .claude/skills/nanobanana-image-generation/SKILL.md (or your agent's skills folder). This skill also uses 15 other files; get the full folder from GitHub.
name
nanobanana-image-generation
description
Use when the user wants to generate or edit images with Google's Nanobanana/Gemini image models using the official Gemini API shape, or when they need publication-style scientific figures rendered exactly from data with the bundled Python plotting tool. Prefer this skill for text-to-image, image-to-image editing, multi-image reference workflows, attachment-based recreations, exact bar/trend/heatmap/scatter plots, or when the user wants publication-style figures such as materials-science paper schematics. Use it when the user asks for a materials-science figure, journal-style scientific illustration, graphical abstract, mechanism diagram, device architecture, processing workflow, or paper-ready materials figure.
disable-model-invocation
true

Nanobanana Image Generation

Overview

This skill now supports two modes:

  • image mode Gemini or Nanobanana generation and editing through the official generateContent flow
  • plot mode Exact Python or matplotlib rendering of publication-style figures from numeric data

Use image mode for mechanism figures, graphical abstracts, device schematics, style-matched redraws, and diagram-first work. Use plot mode for exact bar charts, trend curves, heatmaps, scatter plots, and multi-panel figures that must preserve numeric truth.

Runtime policy:

  • Python is the required runtime for this skill and the canonical path for both image and plot workflows.
  • scripts/generate_image.js is an optional parity CLI for environments that already use Node.js, not the required runtime baseline for registry gating.

When the user is working in Codex and describes a plot in natural language, do not require them to hand-write a JSON spec. Codex should translate the request into an internal plot request or spec and run the plotting scripts.

For image mode, follow Google's official examples and replace:

  • API key with the provider key
  • base URL with the chosen Google-compatible Gemini endpoint

Do not use OpenAI-style /images/generations or /images/edits routes for this skill.

Attachment-Only Inputs

If the image exists only as a chat attachment and the platform does not expose a local file path, do not claim the script can upload it directly.

Use this rule:

  1. If the user needs an exact edit of the original uploaded pixels, ask for the local file path first.
  2. If the user accepts a close recreation, analyze the attached image visually and generate a new image that preserves the original composition and style as closely as possible.

For requests like "replace the English text in this attached image with Chinese", the fallback recreation workflow is acceptable when exact pixel-preserving edit is impossible.

Quick Start

Preflight:

  • plot mode is local-only and does not require API credentials or outbound network access.
  • image mode sends prompt text, API credentials, and any --input-image files to the configured Gemini-compatible endpoint.
  • Prefer the official Google endpoint unless you intentionally trust another provider.
  • If you use a third-party endpoint, require --allow-third-party or NANOBANANA_ALLOW_THIRD_PARTY=1 and treat that as an explicit trust decision.

Set environment variables:

bash
export NANOBANANA_API_KEY="your-provider-key"
export NANOBANANA_BASE_URL="https://generativelanguage.googleapis.com"
export NANOBANANA_MODEL="gemini-3.1-flash-image-preview"

Optional third-party provider:

bash
export NANOBANANA_BASE_URL="https://api.zhizengzeng.com/google"
export NANOBANANA_ALLOW_THIRD_PARTY=1

If you do not want the API key to appear in the command line, store it in a file and use:

bash
export NANOBANANA_API_KEY_FILE="$PWD/.secrets/nanobanana_api_key"

Generate an image:

bash
python3 scripts/generate_image.py "Create a picture of a nano banana dish in a fancy restaurant with a Gemini theme"

Edit an image:

bash
python3 scripts/generate_image.py "Using the provided image, change only the blue sofa to a vintage brown leather Chesterfield sofa. Keep everything else exactly the same." --input-image ./living-room.png

Recreate an attached diagram with translated labels:

bash
python3 scripts/generate_image.py "Recreate the attached pastel technical diagram with the same layout, icons, arrows, and hand-drawn style. Replace all visible English labels with natural Simplified Chinese. Keep the composition unchanged." --aspect-ratio 16:9 --image-size 2K

Safety note:

  • scripts/build_materials_figure_prompt.py and --print-prompt are local-only and do not send data over the network.
  • Actual prompt text, API keys, and user-provided input images are sent only when you run the generation scripts against the configured provider.
  • Non-official Gemini-compatible endpoints require explicit confirmation via --allow-third-party or NANOBANANA_ALLOW_THIRD_PARTY=1.
  • Prefer NANOBANANA_API_KEY_FILE over inline --api-key when you do not want the key to appear in shell history.

Workflow

Choose a mode first:

  1. If the user supplied numeric data and needs exact plotting, use plot mode. Read references/publication-plot-api.md and run scripts/plot_publication_figure.py. For natural-language requests, also read references/natural-language-plot-workflow.md.
  2. If the user needs a schematic, graphical abstract, or image editing workflow, use image mode. Follow the Gemini generateContent flow below.

For image mode:

  1. Keep the official Gemini request shape. Use POST /v1beta/models/{model}:generateContent with X-goog-api-key.
  2. Put prompt text and image inputs into contents[].parts. Text-only generation uses one text part. Image editing appends one or more inline image parts.
  3. Put image options in generationConfig.imageConfig. Prefer --aspect-ratio and --image-size, matching the official docs.
  4. For materials-science figures, prefer building the final prompt first. Use python3 scripts/build_materials_figure_prompt.py --materials-figure ... when you want to inspect or refine the prompt before sending any API request.
  5. For publication-style research figures, load the bundled design guides as needed. Read references/publication-figure-design.md for house style, palette semantics, typography, and panel logic.
  6. If the figure contains chart-like panels, read references/publication-chart-patterns.md. Use those patterns to specify grouped bars, heatmaps, trend layouts, dedicated legends, and wide comparison panels.
  7. Save image outputs from candidates[0].content.parts[].inlineData. Save text parts too when returned.
  8. If the source image is attachment-only, choose between exact edit and recreation. Ask for a local path for exact editing. Use recreation if the user wants the result and accepts a visually matched redraw.

For plot mode:

  1. Read references/publication-plot-api.md.
  2. If the user is speaking naturally, infer the plotting intent and data structure. Do not ask the user to author the internal spec unless they explicitly want low-level control.
  3. For concise internal translation, optionally create a request JSON and expand it with scripts/build_plot_spec.py.
  4. Build or generate a JSON spec with top-level style, layout, and panels.
  5. Use bar, trend, heatmap, scatter, legend, or empty panels.
  6. Render with:
bash
python3 skills/nanobanana-image-generation/scripts/plot_publication_figure.py spec.json
  1. Export exact PNG, PDF, or SVG outputs.

Environment

Required:

  • NANOBANANA_API_KEY
  • NANOBANANA_BASE_URL Must be set explicitly. Official Google endpoint: https://generativelanguage.googleapis.com

Optional:

  • NANOBANANA_MODEL Default: gemini-3.1-flash-image-preview
  • NANOBANANA_TIMEOUT Default: 120
  • NANOBANANA_API_KEY_FILE Path to a file containing the API key. Prefer this when you do not want the key shown in command history or command logs.
  • NANOBANANA_ALLOW_THIRD_PARTY Set to 1 only when you intentionally want to send API keys and user-provided files to a non-official Gemini-compatible provider.

Scripts

  • scripts/generate_image.py Python CLI that follows the official Gemini generateContent request shape.
  • scripts/generate_image.js Node.js CLI with the same request format.
  • scripts/plot_publication_figure.py Python CLI for exact publication-style plotting from JSON specs.
  • scripts/build_plot_spec.py Python CLI that expands a concise request JSON into a full plotting spec.

Common options:

  • --input-image ./source.png
  • --prompt-file ./background.md
  • --aspect-ratio 16:9
  • --image-size 2K
  • --text-only
  • --thinking-level high
  • --include-thoughts
  • --materials-figure mechanism-figure
  • --lang zh
  • --style-note "Nature Energy style"
  • --print-prompt
  • --allow-third-party
  • --api-key-file ./.secrets/nanobanana_api_key

Default output location:

  • ./output/nanobanana/ relative to the current Codex working directory
  • Override only when the user explicitly wants another folder

Deterministic plotting:

bash
python3 skills/nanobanana-image-generation/scripts/plot_publication_figure.py ./spec.json \
  --out-path ./output/plots/result \
  --formats png pdf svg \
  --dpi 300

Natural-language-friendly internal workflow:

bash
python3 skills/nanobanana-image-generation/scripts/build_plot_spec.py ./request.json --out ./spec.json
python3 skills/nanobanana-image-generation/scripts/plot_publication_figure.py ./spec.json

Official Mapping

Official Google examples:

  • api_key="GEMINI_API_KEY"
  • base_url="https://generativelanguage.googleapis.com"

Third-party provider replacements:

  • api_key="your_provider_api_key"
  • base_url="your_google_compatible_endpoint"
  • allow_third_party=true

Optional Zhizengzeng example:

  • api_key="your_zzz_api_key"
  • base_url="https://api.zhizengzeng.com/google"
  • allow_third_party=true

Everything else should stay aligned with the official Gemini documentation.

Prompting Rules

  • For generation, describe the scene instead of dumping keywords.
  • For editing, explicitly say what must stay unchanged.
  • For multi-image workflows, describe the role of each reference image.
  • Prefer English or zh-CN prompts when image fidelity matters.
  • For attachment-only translation tasks, list each label that must be rewritten so the regenerated image does not miss text.
  • If layout fidelity matters, explicitly say to preserve icon positions, arrows, spacing, hierarchy, and reading order.
  • For publication figures, specify semantic color roles, panel order, arrow logic, and which elements should stay neutral.
  • Keep figure text short. Prefer concise labels and legend entries over paragraph-like annotations baked into the image.
  • If the figure resembles a plot, say whether it is a conceptual chart, a style-matched redraw, or an exact quantitative reproduction.
Show full SKILL.md (624 more words)Show less

Materials Science Figure Shortcut

If the user asks for a materials-science paper figure, journal-style scientific schematic, graphical abstract, mechanism diagram, synthesis workflow figure, microstructure-property diagram, device architecture figure, or characterization-plan figure, use the bundled materials-science templates instead of writing the prompt from scratch.

Workflow:

  1. Read references/materials-science-figure-template.md.
  2. Pick the closest subtype:
    • graphical-abstract
    • mechanism-figure
    • device-architecture
    • processing-workflow
  3. Choose the output language:
    • en
    • zh
  4. Insert the user's scientific content into the Scientific Background slot, or use the script shortcut directly.
  5. Preserve the template's constraints about causality, palette, typography, layout, and avoiding unsupported claims.
  6. If the user did not provide exact numbers, keep labels qualitative or explicitly use placeholders rather than fabricating data.
  7. If the user wants a specific journal style, append that preference after the template rather than rewriting the template.
  8. If the scientific background is long, put it in a markdown file and use --prompt-file or scripts/build_materials_figure_prompt.py --background-file ... instead of squeezing it into one shell argument.
  9. For prompt refinement, consult:

Research Figure Design Integration

This skill includes a distilled publication-figure playbook adapted from the figures4papers project. Use it to make Nanobanana outputs look like journal figures rather than generic AI art.

Read the reference files only as needed:

Apply these rules when prompting:

  • Keep the overall composition minimal, high-contrast, and panel-driven.
  • Use blue for the primary mechanism or proposed method, green for improvements, red for contrasts, and neutral gray for scaffolds/background categories.
  • Ask for short professional labels, frameless legends, and uncluttered white backgrounds.
  • Preserve consistent visual encoding across panels so the same color always means the same phase, state, or method.
  • For chart-like figures, ask the model to mimic publication layout and styling, but do not imply exact quantitative correctness unless the figure is being recreated from provided source data or reference images.

Quantitative Boundary

This skill is strong for:

  • graphical abstracts
  • mechanism figures
  • device schematics
  • processing workflows
  • chart-like conceptual panels
  • style-matched redraws of existing paper figures

This skill is not a guarantee of exact quantitative plotting. If the user needs exact bar heights, exact heatmap values, or faithful axis tick math from raw numbers, treat Nanobanana as a layout or visual-direction tool unless the request is explicitly a redraw from a trusted reference image.

For exact plotting, switch to plot mode and use references/publication-plot-api.md plus scripts/plot_publication_figure.py.

Python shortcut:

bash
python3 scripts/generate_image.py "paste the scientific background here" \
  --materials-figure mechanism-figure \
  --lang en \
  --style-note "Benchmark the figure against Nature Materials aesthetics." \
  --aspect-ratio 4:3 \
  --image-size 2K

JavaScript shortcut:

bash
node scripts/generate_image.js "paste the scientific background here" \
  --materials-figure graphical-abstract \
  --lang zh \
  --aspect-ratio 4:3 \
  --image-size 2K

Prompt-only preflight:

bash
python3 scripts/build_materials_figure_prompt.py \
  --materials-figure mechanism-figure \
  --lang en \
  --background-file ./background.md \
  --style-note "Nature Materials aesthetic with concise panel labels."

Failure Handling

  • If the API returns 401 or 403, verify NANOBANANA_API_KEY.
  • If the CLI says the base URL is missing, set NANOBANANA_BASE_URL or pass --base-url.
  • If the CLI refuses a non-official endpoint, add --allow-third-party or set NANOBANANA_ALLOW_THIRD_PARTY=1 only if that provider is intentional.
  • If the API returns 404, verify that the request is going to /v1beta/models/{model}:generateContent.
  • If the provider says the model does not exist, verify the exact model name in the official docs and the provider's supported model list.
  • If no image is returned, inspect candidates[0].content.parts and check whether the request asked for image output.
  • If the user supplied only a chat attachment and no file path, do not describe the result as an exact edit unless the platform actually exposed the attachment bytes.

References

© LeoYeAI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 15 other files (scripts, references) in skills/materials-science-figure-skill of LeoYeAI/openclaw-master-skills.

  • SKILL.md
  • _meta.json
  • agents/openai.yaml
  • references/api-reference.md
  • references/materials-science-figure-template.md
  • references/materials-science-figure-templates.json
  • references/natural-language-plot-workflow.md
  • references/prompt-templates.md
  • references/publication-chart-patterns.md
  • references/publication-figure-design.md
  • references/publication-plot-api.md
  • scripts/build_materials_figure_prompt.py
  • scripts/build_plot_spec.py
  • scripts/generate_image.js
  • scripts/generate_image.py
  • scripts/plot_publication_figure.py

Open the folder on GitHubat commit e5199b5

Compare with similar skills

Nanobanana Image Generation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Nanobanana Image Generation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Nanobanana Image Generation this skillLeoYeAI/openclaw-master-skills2.2k—~4.5kAutomated safety check: PassMIT
Gemini Interactions APIAyuilos/Miffan225—~4.6kAutomated safety check: PassAGPL-3.0
Nano Banana Proswarmclawai/swarmclaw689—~481Automated safety check: PassMIT
Generate ImageK-Dense-AI/claude-scientific-writer2.4k1 repos~3.8kAutomated safety check: NotesMIT
Nanobanana Skillfeiskyer/claude-code-settings1.7k—~1.1kAutomated safety check: PassMIT
Nanobanana SkillMicrock/ordinary-claude-skills404—~1kAutomated safety check: PassCustom licence

Similar skills

  • A skill your agent uses when writing code that calls the Gemini API for text generation, multi-turn chat, multimodal understanding, image generation, video generation, streaming responses…

    225 GitHub stars~4.6k tokensUpdated today
    Media & CreativeAuto-check passed
  • Nano Banana Pro

    swarmclawai/swarmclaw

    Generate or edit images via Gemini 3 Pro Image (Nano Banana Pro).

    689 GitHub stars~481 tokensUpdated 3 mo ago
    Media & CreativeAuto-check passed
  • Generate Image

    K-Dense-AI/claude-scientific-writer

    Generate or edit images with AI models through the OpenRouter Image API (Gemini, Seedream, Recraft, GPT-Image, Riverflow).

    2.4k GitHub starsUsed in 1 repo~3.8k tokens
    Media & CreativeAuto-check: notes
  • Nanobanana Skill

    feiskyer/claude-code-settings

    Generate or edit images via Google Gemini (nanobanana). An agent skill from feiskyer/claude-code-settings.

    1.7k GitHub stars~1.1k tokensUpdated 13 days ago
    Media & CreativeAuto-check passed
  • Nanobanana Skill

    Microck/ordinary-claude-skills

    Generate or edit images using Google Gemini API via nanobanana.

    404 GitHub stars~1k tokensUpdated 1 mo ago
    Media & CreativeAuto-check passed
  • Gemini Image Simple

    sundial-org/awesome-openclaw-skills

    Generate and edit images with Gemini API using pure Python stdlib.

    663 GitHub stars~624 tokensUpdated 7 mo ago
    Media & CreativeAuto-check passed

More from LeoYeAI/openclaw-master-skills

All 1,200 skills in this repo
  • DevOps Pipeline Management

    LeoYeAI/openclaw-master-skills

    Manages pipelines on a DevOps quality and efficiency platform through its OpenAPI: list workspaces and templates, create, update, run and cancel pipelines, and read run records.

    2.2k GitHub stars~4.2k tokensUpdated 2 mo ago
    Auto-check: notes
  • Feishu Document Collaboration

    LeoYeAI/openclaw-master-skills

    Patches OpenClaw's Feishu extension so an edited document triggers an isolated agent session that reads the doc and replies inline, turning it into a live chat space.

    2.2k GitHub stars~2k tokensUpdated 2 mo ago
    Auto-check passed
  • Files Memory System

    LeoYeAI/openclaw-master-skills

    Multi-context memory management system for OpenClaw agents with group-isolated storage, global shared memory, workspace organization, and group-specific skills isolation.

    2.2k GitHub stars~3.8k tokensUpdated 2 mo ago
    Auto-check passed
  • GEO-Claw AI Visibility Agent

    LeoYeAI/openclaw-master-skills

    Runs a brand's AI-search visibility work end to end: diagnosing how AI platforms represent it, repositioning it, producing AI-optimized content and monitoring ongoing mentions.

    2.2k GitHub stars~4.7k tokensUpdated 2 mo ago
    Auto-check passed
  • Google Workspace CLI

    LeoYeAI/openclaw-master-skills

    Installs and authenticates the gws CLI, then automates Gmail, Drive, Sheets, Calendar, Docs, Chat and Tasks with ready-made recipes, persona bundles and security audits.

    2.2k GitHub stars~2.6k tokensUpdated 2 mo ago
    Auto-check: notes
  • HealthFit Health Advisors

    LeoYeAI/openclaw-master-skills

    Runs four advisor roles, a fitness coach, nutritionist, data analyst and TCM practitioner, to build a health profile and track workouts, diet and wellness over time.

    2.2k GitHub stars~4.4k tokensUpdated 2 mo ago
    Auto-check passed

Questions about Nanobanana Image Generation

What does Nanobanana Image Generation do?

A skill your agent uses when the user wants to generate or edit images with Google's Nanobanana/Gemini image models using the official Gemini API shape, or when they need publication-style…. Nanobanana Image Generation is an agent skill from LeoYeAI/openclaw-master-skills. Use when the user wants to generate or edit images with Google's Nanobanana/Gemini image models using the official Gemini API shape, or when they need publication-style scientific figures rendered exactly from data with the bundled Python plotting tool.

When should I use Nanobanana Image Generation?

Nanobanana Image Generation fits situations like: the user wants to generate; edit images with Googles Nanobanana/Gemini image models using the official Gemini API shape; they need publication-style scientific figures rendered exactly from data with the bundled Python plotting tool; wants publication-style figures such as materials-science paper schematics.

How do I install Nanobanana Image Generation in Claude Code?

Run `npx skills add LeoYeAI/openclaw-master-skills --skill nanobanana-image-generation -a claude-code`. Or copy the skill folder (skills/materials-science-figure-skill in LeoYeAI/openclaw-master-skills) into .claude/skills/nanobanana-image-generation in your project. Claude Code loads it when a task matches its description.

How do I install Nanobanana Image Generation in Codex?

Run `npx skills add LeoYeAI/openclaw-master-skills --skill nanobanana-image-generation -a codex`. Or copy the skill folder (skills/materials-science-figure-skill in LeoYeAI/openclaw-master-skills) into .agents/skills/nanobanana-image-generation in your project. Codex loads it when a task matches its description.

Can I use Nanobanana Image Generation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add LeoYeAI/openclaw-master-skills --skill nanobanana-image-generation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/nanobanana-image-generation, .gemini/skills/nanobanana-image-generation, .github/skills/nanobanana-image-generation and .opencode/skills/nanobanana-image-generation in your project.

What does Nanobanana Image Generation need to run?

Going by SKILL.md and its folder, Nanobanana Image Generation needs Python and JavaScript for the scripts in its folder, the command-line tools its instructions call (python3 and node) and credentials named NANOBANANA_API_KEY and GEMINI_API_KEY. Our summary lists: Python 3; Node.js; A credential in NANOBANANA_API_KEY; A credential in GEMINI_API_KEY.

Does Nanobanana Image Generation access the network?

SKILL.md names 2 domains. In commands or code: generativelanguage.googleapis.com and api.zhizengzeng.com; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is Nanobanana Image Generation safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Nanobanana Image Generation use?

Nanobanana Image Generation is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Nanobanana Image Generation use?

About 4.5k tokens (SKILL.md is roughly 18k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 9.8k tokens, read only when the agent opens those files.

What are the alternatives to Nanobanana Image Generation?

Skills that share tags, products or a category with Nanobanana Image Generation: Gemini Interactions API (Ayuilos/Miffan, 225 stars), Nano Banana Pro (swarmclawai/swarmclaw, 689 stars), Generate Image (K-Dense-AI/claude-scientific-writer, 2.4k stars) and Nanobanana Skill (feiskyer/claude-code-settings, 1.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Nanobanana Image Generation?

LeoYeAI (a GitHub user) maintains it in LeoYeAI/openclaw-master-skills, which has 2,161 GitHub stars. The repository holds 1,235 skills in this directory. The repository was last updated on July 20, 2026.

Source: LeoYeAI/openclaw-master-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.