nanobanana
Nano Banana images with Gemini CLI
Overview
Use Gemini CLI plus the Nano Banana extension to generate and edit images via slash commands. Outputs are saved to ./nanobanana-output/ for review or delivery.
Prerequisites
- Confirm Gemini CLI is installed:
gemini --version - Confirm the extension is installed:
gemini extensions install https://github.com/gemini-cli-extensions/nanobanana - Ensure an API key is set:
NANOBANANA_GEMINI_API_KEY,NANOBANANA_GOOGLE_API_KEY,GEMINI_API_KEY, orGOOGLE_API_KEY - Optional: set
NANOBANANA_MODEL=gemini-3-pro-image-previewfor Nano Banana Pro - If MCP tools are blocked by policy, run with approvals:
gemini --approval-mode yolo -p "..."or allow the MCP server with--allowed-mcp-server-names nanobanana
Workflow
- Identify the request type (generate, edit, restore, icon, pattern, story, diagram).
- Ensure any input images are in the current directory or the extension search paths.
- Start Gemini CLI in the working directory:
gemini(or usegemini --approval-mode yolo -p "..."for one-shot runs) - Run the appropriate command:
/generate "prompt" --count=3 --styles="watercolor,sketch"/edit input.png "instruction" --preview/restore old_photo.jpg "instruction"/icon "prompt" --sizes="64,128,256"/pattern "prompt" --type="seamless"/story "prompt" --steps=4/diagram "prompt" --type="architecture"/nanobanana "freeform instruction"
- Collect outputs from
./nanobanana-output/and share the file paths.
Troubleshooting
- If
generate_imageis denied by policy, re-run with--approval-mode yoloor allow MCP servernanobanana. - If you see
No valid API key found, setNANOBANANA_GEMINI_API_KEY(orNANOBANANA_GOOGLE_API_KEY,GEMINI_API_KEY,GOOGLE_API_KEY) and retry.
Prompting Guidance
- Specify subject, style, medium, lighting, composition, color palette, and constraints.
- For consistent series, repeat style and include specific variation goals.
- Use
--count,--styles, and--variationsfor systematic exploration. - Use
--previewonly when interactive output is desired.
Files and Tools
- Use
scripts/example.pyto list output images or fetch the newest output. - Use
references/api_reference.mdfor command options and file-handling details. - Use
assets/example_asset.txtas a prompt template.
More from nateberkopec/dotfiles
sandi-metz-rules
This skill should be used when users request code review, refactoring, or code quality improvements for Ruby codebases. Apply Sandi Metz's four rules for writing maintainable object-oriented code - classes under 100 lines, methods under 5 lines, no more than 4 parameters, and controllers instantiate only one object. Use when users mention "Sandi Metz", "code quality", "refactoring", or when reviewing Ruby code for maintainability.
15argument-validator
This skill should be used when users want to validate or critique an argument by extracting premises, surfacing hidden assumptions, checking logical validity, optionally formalizing in Lean, and researching premise support.
15webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
14env-to-fnox
This skill should be used when users want to migrate from .env files to fnox with 1Password (or another secret provider). It covers installing fnox, creating 1Password items, configuring fnox.toml, and integrating with mise. Use when users mention ".env migration", "fnox setup", "1password secrets", or want to improve their secret management workflow.
14deep-research
This skill should be used when users request comprehensive, in-depth research on a topic that requires detailed analysis similar to an academic journal or whitepaper. The skill conducts multi-phase research using web search and content analysis, employing high parallelism with multiple subagents, and produces a detailed markdown report with citations.
14skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
13