Agent skill

nanobanana

Generate and edit images using Google Gemini 3 Pro Image (Nano Banana Pro). Supports text-to-image, image editing, various aspect ratios, and high-resolution output (2K/4K). Use when user wants to generate images, create images, use Gemini image generation, or do AI image generation.

ReScienceLabgithub.com/ReScienceLabGitHub ↗
claude-codeships scriptsApache-2.0
Install
npx skills add ReScienceLab/opc-skills --skill nanobanana --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 5
SKILL.md size: 5 KB
Bundled scripts: yes
Path: skills/nanobanana/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 1,192
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Nano Banana - AI Image Generation Generate and edit images using Google's Gemini 3 Pro Image model (`gemini-3-pro-image-preview`, nicknamed "Nano Banana Pro" 🍌). ## Prerequisites **Required:** - `GEMINI_API_KEY` - Get from [Google AI Studio](https://aistudio.google.com/apikey) - Python 3.10+ with `google-genai` package **Install dependencies:** ```bash pip install google-genai pillow ``` ## Quick Start ### Generate an image: ```bash python3 <skill_dir>/scripts/generate.py "a cute robot mascot, pixel art style" -o robot.png ``` ### Edit an existing image: ```bash python3 <skill_dir>/scripts/generate.py "make the background blue" -i input.jpg -o output.png ``` ### Generate with specific aspect ratio: ```bash python3 <skill_dir>/scripts/generate.py "cinematic landscape" --ratio 21:9 -o landscape.png ``` ### Generate high-resolution 4K image: ```bash python3 <skill_dir>/scripts/generate.py "professional product photo" --size 4K -o product.png ``` ## Script Reference ### `scripts/generate.py` Main image generation script. ``` Usage: generate.py [OPTIONS] PROMPT Arguments: PROMPT Text prompt for image generation Options: -o, --output PATH Output file path (default: auto-generated) -i,

What's inside
Steps it walks through
  1. Prerequisites
  2. Quick Start
  3. Generate an image:
  4. Edit an existing image:
  5. Generate with specific aspect ratio:
  6. Generate high-resolution 4K image:
  7. Script Reference
  8. scripts/generate.py
  9. scripts/batchgenerate.py
  10. Python API
  11. Environment Variables
  12. Features
  13. Text-to-Image Generation
  14. Image Editing
Ships with 4 files
  • .claude-plugin/plugin.json
  • references/prompts.md
  • scripts/batch_generate.py
  • scripts/generate.py
Commands it runs
pip install google-genai pillow
python3 <skill_dir>/scripts/generate.py "a cute robot mascot, pixel art style" -o robot.png
python3 <skill_dir>/scripts/generate.py "make the background blue" -i input.jpg -o output.png
python3 <skill_dir>/scripts/generate.py "cinematic landscape" --ratio 21:9 -o landscape.png
python3 <skill_dir>/scripts/generate.py "professional product photo" --size 4K -o product.png
python3 <skill_dir>/scripts/batch_generate.py "pixel art logo" -n 20 -d ./logos -p logo
More from opc-skills
All skills →
About this skill
What does the nanobanana skill do?

Generate and edit images using Google Gemini 3 Pro Image (Nano Banana Pro). Supports text-to-image, image editing, various aspect ratios, and high-resolution output (2K/4K). Use when user wants to generate images, create images, use Gemini image generation, or do AI image generation.

How do I install it?

Run `npx skills add ReScienceLab/opc-skills --skill nanobanana --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ReScienceLab/opc-skills, a repository with 1,192 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going