kingbootoshi/nano-banana-2-skill/nano-banana
Claude Code and agent skill by kingbootoshi/nano-banana-2-skill
- community
Checking that the SKILL.md file is still in the repository.
Generates AI images using the nano-banana CLI (Gemini 3.1 Flash default, Pro available). Handles multi-resolution (512-4K), aspect ratios, reference images for style transfer, green screen workflow for transparent assets, cost tracking, and exact dimension control. Use when asked to "generate an image", "create a sprite", "make an asset", "generate artwork", or any image generation task for UI mockups, game assets, videos, or marketing materials.
Install
npx vskill@latest install kingbootoshi/nano-banana-2-skill/nano-bananaSKILL.md
nano-banana
AI image generation CLI. Default model: Gemini 3.1 Flash Image Preview (Nano Banana 2).
/init - First-Time Setup
When the user says "init", "setup nano-banana", or "install nano-banana", run these commands to get the CLI tool on their machine. No sudo required.
Prerequisites: Bun must be installed. If not: curl -fsSL https://bun.sh/install | bash
After init, the user can type nano-banana "prompt" from anywhere.
If bun link fails or the command is not found after linking, fall back to:
Get a Gemini API key at: https://aistudio.google.com/apikey
Quick Reference
- Command:
nano-banana "prompt" [options] - Default: 1K resolution, Flash model, current directory
Core Options
| Option | Default | Description | |
|---|---|---|---|
-o, --output | nano-gen-{timestamp} | Output filename (no extension) | |
-s, --size | 1K | Image size: 512, 1K, 2K, or 4K | |
-a, --aspect | model default | Aspect ratio: 1:1, 16:9, 9:16, 4:3, 3:4, etc. | |
-m, --model | flash | Model: flash/nb2, pro/nb-pro, or any model ID | |
-d, --dir | current directory | Output directory | |
-r, --ref | - | Reference image (can use multiple times) | |
-t, --transparent | - | Generate on green screen, remove background (FFmpeg) | |
--api-key | - | Gemini API key (overrides env/file) | |
--costs | - | Show cost summary |
Models
| Alias | Model | Use When | |
|---|---|---|---|
flash, nb2 | Gemini 3.1 Flash | Default. Fast, cheap (~$0.067/1K image) | |
pro, nb-pro | Gemini 3 Pro | Highest quality needed (~$0.134/1K image) |
Sizes
| Size | Cost (Flash) | Cost (Pro) | |
|---|---|---|---|
512 | ~$0.045 | Flash only | |
1K | ~$0.067 | ~$0.134 | |
2K | ~$0.101 | ~$0.201 | |
4K | ~$0.151 | ~$0.302 |
Aspect Ratios
Supported: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 4:5, 5:4, 21:9
Use -a flag: nano-banana "cinematic scene" -a 16:9
Key Workflows
Basic Generation
Model Selection
Reference Images (Style Transfer / Editing)
Transparent Assets
The -t flag automatically prompts the AI to generate on a green screen, then uses FFmpeg colorkey + despill to key out the background and remove green spill from edge pixels. Pixel-perfect transparency with no manual prompting needed.
Requires: brew install ffmpeg imagemagick
Exact Dimensions
To get a specific output dimension:
- First
-rflag: your reference/style image - Last
-rflag: blank image in target dimensions - Include dimensions in prompt
Reference Order Matters
- First reference: primary style/content source
- Additional references: secondary influences
- Last reference: controls output dimensions (if using blank image trick)
Cost Tracking
Every generation is logged to ~/.nano-banana/costs.json. View summary:
Use Cases
- Landing page assets - product mockups, UI previews
- Image editing - transform existing images with prompts
- Style transfer - combine multiple reference images
- Marketing materials - hero images, feature illustrations
- UI iterations - quickly generate variations of designs
- Transparent assets - icons, logos, mascots with no background
- Game assets - sprites, backgrounds, characters
- Video production - visual elements for video compositions
Prompt Examples
API Key Setup
The CLI resolves the Gemini API key in this order:
--api-keyflagGEMINI_API_KEYenvironment variable.envfile in current directory.envfile next to the CLI script~/.nano-banana/.env
Get a key at: https://aistudio.google.com/apikey
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/nano-banana/skills/nano-banana/SKILL.md
Popularity
- Repository npm downloads, 7 days
- 21
- 7-day trend score
- 9
Downloads are for the repository's npm package. Refreshed 18 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kingbootoshi/nano-banana-2-skill/nano-banana)