AI Image Generation and Editing
zhayujie/CowAgent
Generates or edits images from text prompts through a Python script that picks an image backend based on which API keys are configured.
Generate and edit images using Google Gemini 3 Pro Image (Nano Banana Pro).
$ npx skills add ReScienceLab/opc-skills --skill nanobanana -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ReScienceLab/opc-skills nanobanana --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ReScienceLab/opc-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/nanobanana .claude/skills/nanobanana && rm -rf skills-srcUse ~/.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/
Install the "nanobanana" agent skill from https://github.com/ReScienceLab/opc-skills/tree/main/skills/nanobanana into .claude/skills/nanobanana/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nanobanana", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ReScienceLab/opc-skills/tree/main/skills/nanobananaType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ReScienceLab/opc-skills --skill nanobanana -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ReScienceLab/opc-skills nanobanana --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ReScienceLab/opc-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/nanobanana .agents/skills/nanobanana && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "nanobanana" agent skill from https://github.com/ReScienceLab/opc-skills/tree/main/skills/nanobanana into .agents/skills/nanobanana/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nanobanana", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ReScienceLab/opc-skills --skill nanobanana -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ReScienceLab/opc-skills nanobanana --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ReScienceLab/opc-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/nanobanana .cursor/skills/nanobanana && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "nanobanana" agent skill from https://github.com/ReScienceLab/opc-skills/tree/main/skills/nanobanana into .cursor/skills/nanobanana/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nanobanana", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ReScienceLab/opc-skills.git --path skills/nanobanana--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ReScienceLab/opc-skills --skill nanobanana -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ReScienceLab/opc-skills nanobanana --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ReScienceLab/opc-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/nanobanana .gemini/skills/nanobanana && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "nanobanana" agent skill from https://github.com/ReScienceLab/opc-skills/tree/main/skills/nanobanana into .gemini/skills/nanobanana/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nanobanana", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ReScienceLab/opc-skills nanobananaInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ReScienceLab/opc-skills --skill nanobanana -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ReScienceLab/opc-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/nanobanana .github/skills/nanobanana && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "nanobanana" agent skill from https://github.com/ReScienceLab/opc-skills/tree/main/skills/nanobanana into .github/skills/nanobanana/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nanobanana", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ReScienceLab/opc-skills --skill nanobanana -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ReScienceLab/opc-skills nanobanana --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ReScienceLab/opc-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/nanobanana .opencode/skills/nanobanana && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "nanobanana" agent skill from https://github.com/ReScienceLab/opc-skills/tree/main/skills/nanobanana into .opencode/skills/nanobanana/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nanobanana", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
nanobananaGenerate and edit images using Google Gemini 3 Pro Image (Nano Banana Pro).
Nanobanana is an agent skill from ReScienceLab/opc-skills. 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.
Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts and reference files (for example `.claude-plugin/plugin.json`, `references/prompts.md` and `scripts/batch_generate.py`).
It sits in Media & Creative, covering Image generation and Image editing. It works with Google Gemini. The repository describes itself as: Agent Skills for Solopreneurs. The licence is Apache-2.0.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit d22efdc. It shows what the files ask for, not the result of running them.
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.
Ships 2 files in scripts/ (Python), which the agent can run.
Shell commands in SKILL.md call:
python3pipFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
aistudio.google.comFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
GEMINI_API_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Nanobanana loads about 1.3k tokens when it runs, and up to ~2.6k if it reads all its reference files. Until then it costs about 74 tokens; SKILL.md has 321 words of instructions outside code blocks.
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.
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.
The full file from ReScienceLab/opc-skills at commit d22efdc, republished under its Apache-2.0 licence (© ReScienceLab). 321 words, ~1,320 tokens.
.claude/skills/nanobanana/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.Generate and edit images using Google's Gemini 3 Pro Image model (gemini-3-pro-image-preview, nicknamed "Nano Banana Pro" 🍌).
Required:
GEMINI_API_KEY - Get from Google AI Studiogoogle-genai packageInstall dependencies:
pip install google-genai pillowpython3 <skill_dir>/scripts/generate.py "a cute robot mascot, pixel art style" -o robot.pngpython3 <skill_dir>/scripts/generate.py "make the background blue" -i input.jpg -o output.pngpython3 <skill_dir>/scripts/generate.py "cinematic landscape" --ratio 21:9 -o landscape.pngpython3 <skill_dir>/scripts/generate.py "professional product photo" --size 4K -o product.pngscripts/generate.pyMain 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 outputSupported aspect ratios:
1:1 - Square (default)2:3, 3:2 - Portrait/Landscape3:4, 4:3 - Standard4:5, 5:4 - Photo9:16, 16:9 - Widescreen21:9 - Ultra-wide/Cinematicscripts/batch_generate.pyGenerate 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:
python3 <skill_dir>/scripts/batch_generate.py "pixel art logo" -n 20 -d ./logos -p logoYou can also use the module directly:
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"
)| Variable | Description | Default |
|---|---|---|
GEMINI_API_KEY | Google Gemini API key | Required |
IMAGE_OUTPUT_DIR | Default output directory | ./nanobanana-images |
Create images from text descriptions. The model excels at:
Transform existing images with natural language:
Enable --search for factually accurate images involving:
Good prompts include:
Example:
"A cozy coffee shop interior, warm lighting, vintage aesthetic,
wooden furniture, plants on shelves, morning sunlight through windows,
soft focus background, 35mm film photography style""API key not found"
GEMINI_API_KEY environment variable--api-key option"No image in response"
"Rate limit exceeded"
© ReScienceLab, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 4 other files (scripts, references) in skills/nanobanana of ReScienceLab/opc-skills.
Open the folder on GitHubat commit d22efdc
Nanobanana 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Nanobanana this skillReScienceLab/opc-skills | 1.8k | — | ~1.3k | Automated safety check: Pass | Apache-2.0 | |
| AI Image Generation and Editingzhayujie/CowAgent | 47k | — | ~1.3k | Automated safety check: Pass | MIT | |
| BlockRun Image GenerationBlockRunAI/ClawRouter | 6.6k | — | ~2.1k | Automated safety check: Pass | MIT | |
| Antigravity Gemini ImageuluckyXH/OpenMOSS | 1.3k | — | ~730 | Automated safety check: Notes | MIT | |
| FigureMuuuun/luxas | 1.2k | — | ~1.2k | Automated safety check: Pass | MIT | |
| Gemini Image Generatordair-ai/dair-academy-plugins | 614 | 2 repos | ~3.5k | Automated safety check: Notes | MIT |
zhayujie/CowAgent
Generates or edits images from text prompts through a Python script that picks an image backend based on which API keys are configured.
BlockRunAI/ClawRouter
Generates or edits images through ClawRouter's local image API, with a choice of models and sizes and payment handled automatically through x402.
uluckyXH/OpenMOSS
Generate or edit images using the Antigravity-hosted Gemini image model via the local gateway.
Muuuun/luxas
Hybrid figure pipeline (Nano Banana raster + rembg background removal + TikZ vector assembly).
dair-ai/dair-academy-plugins
Generates and edits images with Google's Gemini Nano Banana Pro model through the Gemini API, including photo edits and multi-image composition.
LichAmnesia/lich-skills
Generates or edits PNG images with Google's Nano Banana 2 model through a small script, with a choice of 512, 1K, 2K or 4K output.
ReScienceLab/opc-skills
SEO & GEO (Generative Engine Optimization) for websites. An agent skill from ReScienceLab/opc-skills.
ReScienceLab/opc-skills
Create banners using AI image generation. An agent skill from ReScienceLab/opc-skills.
ReScienceLab/opc-skills
Create logos using AI image generation. An agent skill from ReScienceLab/opc-skills.
ReScienceLab/opc-skills
Search and retrieve content from Product Hunt. An agent skill from ReScienceLab/opc-skills.
ReScienceLab/opc-skills
Search and retrieve content from Reddit. An agent skill from ReScienceLab/opc-skills.
ReScienceLab/opc-skills
Search and retrieve content from Twitter/X. An agent skill from ReScienceLab/opc-skills.
Works with
Categories
Generate and edit images using Google Gemini 3 Pro Image (Nano Banana Pro). Nanobanana is an agent skill from ReScienceLab/opc-skills. Generate and edit images using Google Gemini 3 Pro Image (Nano Banana Pro).
Nanobanana fits situations like: user wants to generate images; use Gemini image generation; do AI image generation.
Run `npx skills add ReScienceLab/opc-skills --skill nanobanana -a claude-code`. Or copy the skill folder (skills/nanobanana in ReScienceLab/opc-skills) into .claude/skills/nanobanana in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ReScienceLab/opc-skills --skill nanobanana -a codex`. Or copy the skill folder (skills/nanobanana in ReScienceLab/opc-skills) into .agents/skills/nanobanana in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ReScienceLab/opc-skills --skill nanobanana -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, .gemini/skills/nanobanana, .github/skills/nanobanana and .opencode/skills/nanobanana in your project.
Going by SKILL.md and its folder, Nanobanana needs Python for the scripts in its folder, the command-line tools its instructions call (python3 and pip) and credentials named GEMINI_API_KEY. Our summary lists: Python 3; A credential in GEMINI_API_KEY.
SKILL.md names 1 domain. As links in the text: aistudio.google.com. This is read from the text; nothing was executed.
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.
Nanobanana is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.3k tokens (SKILL.md is roughly 5.3k 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 1.3k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Nanobanana: AI Image Generation and Editing (zhayujie/CowAgent, 47k stars), BlockRun Image Generation (BlockRunAI/ClawRouter, 6.6k stars), Antigravity Gemini Image (uluckyXH/OpenMOSS, 1.3k stars) and Figure (Muuuun/luxas, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ReScienceLab (a GitHub organization) maintains it in ReScienceLab/opc-skills, which has 1,847 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 8, 2026.
Source: ReScienceLab/opc-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.