A CLI wrapper for Gemini's image generation that actually handles the annoying parts: green screen workflows for transparent assets, multi-reference style transfer, exact dimension control, and built-in cost tracking. Default model is Flash (cheap and fast at ~$0.067 per 1K image), but you can bump to Pro when quality matters. The transparent asset workflow is clever: it auto-prompts for green screen generation then uses FFmpeg to key it out cleanly. Supports everything from 512px sketches to 4K renders with standard aspect ratios. If you're mocking up UI, generating game sprites, or need quick marketing visuals without opening Photoshop, this is the kind of tool that just gets out of your way.

skills.sh installs
679
GitHub stars
418
last updated
Aug 21, 2026

Install

$ npx -y skills add kingbootoshi/nano-banana-2-skill --skill nano-banana --agent claude-code

Installs into .claude/skills of the current project.

Files

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

# 1. Clone the repo
git clone https://github.com/kingbootoshi/nano-banana-2-skill.git ~/tools/nano-banana-2

# 2. Install dependencies
cd ~/tools/nano-banana-2 && bun install

# 3. Link globally (creates `nano-banana` command via Bun - no sudo)
cd ~/tools/nano-banana-2 && bun link

# 4. Set up API key
mkdir -p ~/.nano-banana
echo "GEMINI_API_KEY=<ask user for their key>" > ~/.nano-banana/.env

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:

mkdir -p ~/.local/bin
ln -sf ~/tools/nano-banana-2/src/cli.ts ~/.local/bin/nano-banana
# Then ensure ~/.local/bin is on PATH:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc

Sponsors

Details

Repository
github.com/kingbootoshi/nano-banana-2-skill
Categories
Code Review & Quality, Automation & Workflows, Marketing & SEO, CLI & Terminal, Game Development
First seen
Jun 3, 2026
1yaojingang avataryao-meta-skillyaojingang/yao-meta-skillCreate, refactor, evaluate, and package agent skills from workflows, prompts, transcripts, docs, or notes. Use when asked to create a skill, turn a repeated pro677skills.sh installs
2yeachan-heo avatarrememberyeachan-heo/oh-my-claudecodeReview reusable project knowledge and decide what belongs in project memory, notepad, or durable docs674skills.sh installs
3akin-ozer avatarmakefile-validatorakin-ozer/cc-devops-skillsValidate, lint, audit, or check Makefiles and .mk files for errors.671skills.sh installs
4mims-harvard avatartooluniverse-literature-deep-researchmims-harvard/tooluniverseDeep literature review — PubMed, EuropePMC, bioRxiv preprints, citation networks, evidence synthesis. Disambiguates queries, runs collision-aware searches, grad669skills.sh installs
5jpudysz avatarreact-native-unistyles-v3jpudysz/react-native-unistylesGuide for using react-native-unistyles v3. Triggers on: "unistyles", "StyleSheet.create", "create stylesheet", "add theme", "breakpoints", "variants", "withUnis666skills.sh installs
6aj-geddes avatarimage-optimizationaj-geddes/useful-ai-promptsOptimize images for web to reduce file size without sacrificing quality. Use compression, modern formats, and responsive techniques for faster loading.662skills.sh installs