Nano Banana Image Generation banner
kkoppenhaver kkoppenhaver

Nano Banana Image Generation

Development community intermediate

Description

Generate professional images via the Gemini CLI's nanobanana extension.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README


name: nano-banana description: REQUIRED for all image generation requests. Generate and edit images using Nano Banana (Gemini CLI). Handles blog featured images, YouTube thumbnails, icons, diagrams, patterns, illustrations, photos, visual assets, graphics, artwork, pictures. Use this skill whenever the user asks to create, generate, make, draw, design, or edit any image or visual content. allowed-tools: Bash(gemini:*)

Nano Banana Image Generation

Generate professional images via the Gemini CLI's nanobanana extension.

When to Use This Skill

ALWAYS use this skill when the user:

  • Asks for any image, graphic, illustration, or visual
  • Wants a thumbnail, featured image, or banner
  • Requests icons, diagrams, or patterns
  • Asks to edit, modify, or restore a photo
  • Uses words like: generate, create, make, draw, design, visualize

Do NOT attempt to generate images through any other method.

Before First Use

  1. Verify extension is installed:
    gemini extensions list | grep nanobanana
  2. If missing, install it:
    gemini extensions install https://github.com/gemini-cli-extensions/nanobanana
  3. Verify API key is set:
    [ -n "$GEMINI_API_KEY" ] && echo "API key configured" || echo "Missing GEMINI_API_KEY"

Command Selection

User Request Command
"make me a blog header" /generate
"create an app icon" /icon
"draw a flowchart of..." /diagram
"fix this old photo" /restore
"remove the background" /edit
"create a repeating texture" /pattern
"make a comic strip" /story

Available Commands

**Note:** Always use the `--yolo` flag to automatically approve all tool actions.

Command Use Case
gemini --yolo "/generate 'prompt'" Text-to-image generation
gemini --yolo "/edit file.png 'instruction'" Modify existing image
gemini --yolo "/restore old_photo.jpg 'fix scratches'" Repair damaged photos
gemini --yolo "/icon 'description'" App icons, favicons, UI elements
gemini --yolo "/diagram 'description'" Flowcharts, architecture diagrams
gemini --yolo "/pattern 'description'" Seamless textures and patterns
gemini --yolo "/story 'description'" Sequential/narrative images
gemini --yolo "/nanobanana prompt" Natural language interface

Common Options

  • --yolo - Required. Auto-approve all tool actions (no confirmation prompts)
  • --count=N - Generate N variations (1-8)
  • --preview - Auto-open generated images
  • --styles="style1,style2" - Apply artistic styles
  • --format=grid|separate - Output arrangement

Common Sizes

Use Case Dimensions Notes
YouTube thumbnail 1280x720 --aspect=16:9
Blog featured image 1200x630 Social preview friendly
Square social 1080x1080 Instagram, LinkedIn
Twitter/X header 1500x500 Wide banner
Vertic