nano-banana

Generate Gemini images from prompts via inline Python heredoc scripts.

5|Updated Nov 6, 2025
One-click install
npx skills add https://github.com/pigfoot/claude-code-hubs --skill nano-banana-pigfoot
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nano-banana
Source: https://github.com/pigfoot/claude-code-hubs/tree/main/plugins/nano-banana/skills/nano-banana
Command: npx skills add https://github.com/pigfoot/claude-code-hubs --skill nano-banana-pigfoot

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables Python scripting with Gemini Gemini image generation using uv, allowing inline scripts for quick image generation tasks, with a simple directory naming convention for outputs.

Core Features & Use Cases

  • Inline Python scripts with dependencies declared inside heredocs
  • Gemini models usage like gemini-2.5-flash-image for quick visuals
  • Output to themed directory structure (NNN-short-name)
  • Simple, repeatable prompts for one-off image tasks

Quick Start

Describe your image prompt and run a quick inline script via uv run with a heredoc to generate an image.

Frequently Asked Questions about nano-banana

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate images with Gemini using Python scripts?

Use inline Python scripts with uv to call Gemini image generation models like gemini-2.5-flash-image. Declare dependencies inside heredocs and run scripts directly without file setup for one-off image tasks.

Can I automate image generation from text prompts with Gemini?

Yes. This Skill automates Gemini image generation from user prompts via two-mode Python workflows, supporting direct generation, interactive prompting, and batch tasks like creating slides and infographics.

How do I control which Gemini model and output format are used?

Set environment variables NANO_BANANA_MODEL and NANO_BANANA_FORMAT to drive model selection and output formatting. The Skill detects style directives and applies them automatically.

What's the quickest way to generate an image without setting up files?

Write a heredoc Python script with dependencies inline and run it via uv. Outputs organize automatically into themed directories using NNN-short-name naming convention.

Does this work for editing existing images with Gemini?

Yes. The two-mode workflow supports interactive prompting tasks including image editing alongside direct generation, allowing both creative and modification-focused use cases.