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's Nano Banana 2 (Gemini 3.1 Flash Image Preview) API.
$ npx skills add intellectronica/agent-skills --skill nano-banana-2 -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install intellectronica/agent-skills nano-banana-2 --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/intellectronica/agent-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/nano-banana-2 .claude/skills/nano-banana-2 && 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 "nano-banana-2" agent skill from https://github.com/intellectronica/agent-skills/tree/main/skills/nano-banana-2 into .claude/skills/nano-banana-2/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nano-banana-2", 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/intellectronica/agent-skills/tree/main/skills/nano-banana-2Type 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 intellectronica/agent-skills --skill nano-banana-2 -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install intellectronica/agent-skills nano-banana-2 --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/intellectronica/agent-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/nano-banana-2 .agents/skills/nano-banana-2 && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "nano-banana-2" agent skill from https://github.com/intellectronica/agent-skills/tree/main/skills/nano-banana-2 into .agents/skills/nano-banana-2/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nano-banana-2", 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 intellectronica/agent-skills --skill nano-banana-2 -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install intellectronica/agent-skills nano-banana-2 --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/intellectronica/agent-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/nano-banana-2 .cursor/skills/nano-banana-2 && 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 "nano-banana-2" agent skill from https://github.com/intellectronica/agent-skills/tree/main/skills/nano-banana-2 into .cursor/skills/nano-banana-2/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nano-banana-2", 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/intellectronica/agent-skills.git --path skills/nano-banana-2--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 intellectronica/agent-skills --skill nano-banana-2 -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install intellectronica/agent-skills nano-banana-2 --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/intellectronica/agent-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/nano-banana-2 .gemini/skills/nano-banana-2 && 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 "nano-banana-2" agent skill from https://github.com/intellectronica/agent-skills/tree/main/skills/nano-banana-2 into .gemini/skills/nano-banana-2/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nano-banana-2", 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 intellectronica/agent-skills nano-banana-2Installs 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 intellectronica/agent-skills --skill nano-banana-2 -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/intellectronica/agent-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/nano-banana-2 .github/skills/nano-banana-2 && 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 "nano-banana-2" agent skill from https://github.com/intellectronica/agent-skills/tree/main/skills/nano-banana-2 into .github/skills/nano-banana-2/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nano-banana-2", 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 intellectronica/agent-skills --skill nano-banana-2 -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install intellectronica/agent-skills nano-banana-2 --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/intellectronica/agent-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/nano-banana-2 .opencode/skills/nano-banana-2 && 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 "nano-banana-2" agent skill from https://github.com/intellectronica/agent-skills/tree/main/skills/nano-banana-2 into .opencode/skills/nano-banana-2/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "nano-banana-2", 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.
nano-banana-2Generate and edit images using Google's Nano Banana 2 (Gemini 3.1 Flash Image Preview) API.
Nano Banana 2 is an agent skill from intellectronica/agent-skills. Generate and edit images using Google's Nano Banana 2 (Gemini 3.1 Flash Image Preview) API. This skill should be used when the user asks to create or modify images, especially when they need fast iteration, explicit aspect-ratio control, or resolution control from 512px to 4K.
Its SKILL.md is about 970 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/generate_image.py`).
It sits in Media & Creative, covering Image generation and Image editing. It works with Google Gemini. The repository describes itself as: @intellectronica's agent skills. The licence is CC0-1.0.
2 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 9b0e00a. 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 1 file in scripts/ (Python), which the agent can run.
Shell commands in SKILL.md call:
uvFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use uv, which can reach the network depending on how they are called.
From 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.
Nano Banana 2 loads about 972 tokens when it runs. Until then it costs about 73 tokens; SKILL.md has 323 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 intellectronica/agent-skills at commit 9b0e00a, republished under its CC0-1.0 licence (© intellectronica). 323 words, ~972 tokens.
.claude/skills/nano-banana-2/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Generate new images or edit existing images with Nano Banana 2 (gemini-3.1-flash-image-preview).
Run the script using absolute or workspace-relative path (do NOT cd into the skill directory first):
Generate new image:
uv run ./.agents/skills/nano-banana-2/scripts/generate_image.py --prompt "your image description" --filename "output-name.png" [--resolution 512px|1K|2K|4K] [--aspect-ratio RATIO] [--api-key KEY]Edit image(s) with references:
uv run ./.agents/skills/nano-banana-2/scripts/generate_image.py --prompt "editing instructions" --filename "output-name.png" --input-image "path/to/input1.png" [--input-image "path/to/input2.png" ...] [--resolution 512px|1K|2K|4K] [--aspect-ratio RATIO] [--api-key KEY]Always run from the user's current working directory so outputs are saved in the active project context.
Use model code:
gemini-3.1-flash-image-preview (Nano Banana 2)Do not use gemini-3-pro-image-preview in this skill.
Nano Banana 2 supports:
512px (fastest, low-latency iteration)1K (default)2K4KMap common user language:
512px1K2K4KUse uppercase K for 1K, 2K, 4K.
Supported aspect ratios:
1:1, 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9, 21:9Map common requests:
1:19:1616:921:92:3 or 3:44:1 or 8:1If unspecified, let the model default behavior apply.
Provide up to 14 reference images when needed by repeating --input-image:
Use one image for simple edits; use multiple images for composition or consistency-sensitive tasks.
Resolve API key in this order:
--api-key argumentGEMINI_API_KEY environment variableIf no key is available, stop and report a clear error.
Generate filenames as: yyyy-mm-dd-hh-mm-ss-name.png
Examples:
2026-02-26-17-31-04-japanese-garden.png2026-02-26-17-31-59-social-banner.pngFor generation, pass the user's request as-is unless critically underspecified. For editing, include explicit transformation instructions in the prompt and preserve the original intent.
--filename)Create a 4K widescreen image:
uv run ./.agents/skills/nano-banana-2/scripts/generate_image.py --prompt "Futuristic city skyline at blue hour with neon reflections" --filename "2026-02-26-17-45-00-futuristic-skyline.png" --resolution 4K --aspect-ratio 16:9Edit with multiple references:
uv run ./.agents/skills/nano-banana-2/scripts/generate_image.py --prompt "Create a polished campaign image that keeps the exact logo details and character identity" --filename "2026-02-26-17-50-10-campaign-image.png" --input-image "logo.png" --input-image "character.png" --resolution 2K --aspect-ratio 4:5© intellectronica, CC0-1.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 1 other file (scripts) in skills/nano-banana-2 of intellectronica/agent-skills.
Open the folder on GitHubat commit 9b0e00a
Nano Banana 2 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 |
|---|---|---|---|---|---|---|
| Nano Banana 2 this skillintellectronica/agent-skills | 295 | — | ~972 | Automated safety check: Pass | CC0-1.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.
ReScienceLab/opc-skills
Generate and edit images using Google Gemini 3 Pro Image (Nano Banana Pro).
intellectronica/agent-skills
Render Mermaid diagrams as SVG and PNG using the Beautiful Mermaid library.
intellectronica/agent-skills
Generate and edit images using OpenAI's GPT Image 1.5 model.
intellectronica/agent-skills
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API.
intellectronica/agent-skills
This skill provides comprehensive instructions for interacting with the Notion API via REST calls.
intellectronica/agent-skills
Convert documents and files to Markdown using markitdown. An agent skill from intellectronica/agent-skills.
intellectronica/agent-skills
Extract transcripts from YouTube videos. An agent skill from intellectronica/agent-skills.
Works with
Categories
Generate and edit images using Google's Nano Banana 2 (Gemini 3.1 Flash Image Preview) API. Nano Banana 2 is an agent skill from intellectronica/agent-skills.1 Flash Image Preview) API.
Nano Banana 2 fits situations like: especially when they need fast iteration; explicit aspect-ratio control; resolution control from 512px to 4K.
Run `npx skills add intellectronica/agent-skills --skill nano-banana-2 -a claude-code`. Or copy the skill folder (skills/nano-banana-2 in intellectronica/agent-skills) into .claude/skills/nano-banana-2 in your project. Claude Code loads it when a task matches its description.
Run `npx skills add intellectronica/agent-skills --skill nano-banana-2 -a codex`. Or copy the skill folder (skills/nano-banana-2 in intellectronica/agent-skills) into .agents/skills/nano-banana-2 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 intellectronica/agent-skills --skill nano-banana-2 -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/nano-banana-2, .gemini/skills/nano-banana-2, .github/skills/nano-banana-2 and .opencode/skills/nano-banana-2 in your project.
Going by SKILL.md and its folder, Nano Banana 2 needs Python for the scripts in its folder, the command-line tools its instructions call (uv) and credentials named GEMINI_API_KEY. Our summary lists: Python 3; A credential in GEMINI_API_KEY.
SKILL.md contains no URLs. Its commands use uv, which can reach the network depending on how they are called. 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.
Nano Banana 2 is published under the CC0-1.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 972 tokens (SKILL.md is roughly 3.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Nano Banana 2: 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.
intellectronica (a GitHub user) maintains it in intellectronica/agent-skills, which has 295 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on April 25, 2026.
Source: intellectronica/agent-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.