nanobanana
Generate and edit images using Google Gemini 3 Pro Image (Nano Banana Pro).
Skill by ReScienceLab
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/resciencelab-nanobanana
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: writing
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 3
aistudio.google.com· found in codecodeload.github.com· found in install commandgithub.com· found in code
Files it touches
~/.claude/skills/nanobanana
What's inside
- Skill name
nanobanana- Description
- 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.
- License
- Apache-2.0
- Instructions
- 198 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (5)
- plugin.json · .claude-plugin/
- SKILL.md
- prompts.md · references/
- batch_generate.py · scripts/
- generate.py · scripts/
SKILL.md (first lines)
# 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, --input PATH Input image for editing (optional)
-r, --ratio RATIO Aspect ratio (1:1, 16:9, 9:16, 21:9, etc.)
-s, --size SIZE Image size: 2K or 4K (default: standard)
--search Enable Google Search grounding for accuracy
-v, --verbose Show detailed output
```
**Supported aspect ratios:**
- `1:1` - Square (default)
- `2:3`, `3:2` - Portrait/Landscape
- `3:4`, `4:3` - Standard
- `4:5`, `5:4` - Photo
- `9:16`, `16:9` - Widescreen
- `21:9` - Ultra-wide/Cinematic
### `scripts/batch_generate.py`
Generate multiple images with sequential naming.
```
Usage: batch_generate.py [OPTIONS] PROMPT
Arguments:
PROMPT Text prompt for image generation
Options:
-n, --count N Number of images to generate (default: 10)
-d, --dir PATH Output directory
-p, --prefix STR Filename prefix (default: "image")
-r, --ratio RATIO Aspect ratio
-s, --size SIZE Image size (2K/4K)
--delay SECONDS Delay between generations (default: 3)
```
**Example:**
```bash
python3 <skill_dir>/scripts/batch_generate.py "pixel art logo" -n 20 -d ./logos -p logo
```
## Python API
You can also use the module directly:
```python
from generate import generate_image, edit_image
# Generate image
result = generate_image(
prompt="a futuristic city at night",
output_path="city.png",
aspect_ratio="16:9",
image_size="4K"
)
# Edit existing image
result = edit_image(
prompt="add flying cars to the sky",
input_path="city.png",
output_path="city_edited.png"
)
```
## Environment Variables
| Variable | Description | Default |
|----------|-------------|---------|
| `GEMINI_API_KEY` | Google Gemini API key | Required |
| `IMAGE_OUTPUT_DIR` | Default output directory | `./nanobanana-images` |From ReScienceLab/opc-skills, Apache-2.0.
More from ReScienceLab/opc-skills
- 0.657score
seo-geo
ReScienceLab
SEO & GEO (Generative Engine Optimization) for websites.
SkillDFreshness: D★ 1.9KClaude Code +9 - 0.657score
seo-geo
ReScienceLab
SEO & GEO (Generative Engine Optimization) for websites.
SkillDFreshness: D★ 1.9KClaude Code +9 - 0.657score
twitter
ReScienceLab
Search and retrieve content from Twitter/X.
SkillDFreshness: D★ 1.9KClaude Code +9 - 0.657score
archive
ReScienceLab
Archive session learnings, debugging solutions, and deployment logs to .archive/yyyy-mm-dd/ as indexed markdown with searchable tags.
SkillDFreshness: D★ 1.9KClaude Code +9 - 0.657score
banner-creator
ReScienceLab
Create banners using AI image generation.
SkillDFreshness: D★ 1.9KClaude Code +9 - 0.657score
domain-hunter
ReScienceLab
Search domains, compare prices, find promo codes, get purchase recommendations.
SkillDFreshness: D★ 1.9KClaude Code +9 - 0.657score
logo-creator
ReScienceLab
Create logos using AI image generation.
SkillDFreshness: D★ 1.9KClaude Code +9 - 0.657score
producthunt
ReScienceLab
Search and retrieve content from Product Hunt.
SkillDFreshness: D★ 1.9KClaude Code +9 - 0.657score
reddit
ReScienceLab
Search and retrieve content from Reddit.
SkillDFreshness: D★ 1.9KClaude Code +9 - 0.651score
add-new-opc-skill
ReScienceLab
Checklist and automation guide for adding a new skill to the OPC Skills project.
SkillDFreshness: D★ 1.9KClaude Code +9 - 0.651score
requesthunt
ReScienceLab
Generate user demand research reports from real user feedback.
SkillDFreshness: D★ 1.9KClaude Code +9
Signals
- Stars
- 1,875
- Forks
- 168
- Open issues
- 10
- Last commit (this folder)
- Feb 15, 2026 (8 months ago)
- Last release
- Feb 23, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/ReScienceLab/opc-skills
- Website
- opc.dev
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from ReScienceLab
- 0.657score
seo-geo
ReScienceLab
SEO & GEO (Generative Engine Optimization) for websites.
SkillDFreshness: D★ 1.9KClaude Code +9 - 0.657score
seo-geo
ReScienceLab
SEO & GEO (Generative Engine Optimization) for websites.
SkillDFreshness: D★ 1.9KClaude Code +9 - 0.657score
twitter
ReScienceLab
Search and retrieve content from Twitter/X.
SkillDFreshness: D★ 1.9KClaude Code +9 - 0.657score
archive
ReScienceLab
Archive session learnings, debugging solutions, and deployment logs to .archive/yyyy-mm-dd/ as indexed markdown with searchable tags.
SkillDFreshness: D★ 1.9KClaude Code +9 - 0.657score
banner-creator
ReScienceLab
Create banners using AI image generation.
SkillDFreshness: D★ 1.9KClaude Code +9 - 0.657score
domain-hunter
ReScienceLab
Search domains, compare prices, find promo codes, get purchase recommendations.
SkillDFreshness: D★ 1.9KClaude Code +9
Cite this page
nanobanana skill. Agent Mart. https://agentmart.dev/skills/resciencelab-nanobanana (last updated 2026-10-24)