---
title: "Nano Banana Plugin"
description: "Python scripting and Gemini image generation using uv with inline script dependencies."
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/readme-142
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:36:10.733Z
license: CC-BY-4.0
attribution: "Nano Banana Plugin — Claudary (https://claudary.paisolsolutions.com/skills/readme-142)"
---

# Nano Banana Plugin
Python scripting and Gemini image generation using uv with inline script dependencies.

## Overview

# Nano Banana Plugin

Python scripting and Gemini image generation using uv with inline script dependencies.

## Features

- **Image Generation**: Generate images using Google's Gemini models
- **Image Editing**: Edit existing images with AI
- **Python Scripting**: Run Python scripts with uv using heredocs
- **Inline Dependencies**: Self-contained scripts with `# /// script` metadata

## Prerequisites

- [uv](https://docs.astral.sh/uv/) installed
- `GOOGLE_API_KEY` environment variable set with a valid Gemini API key

## Usage

The skill activates when you ask Claude to generate images or run Python scripts. Example triggers:

- "Generate an image of..."
- "Create a picture..."
- "Draw..."
- "nano banana"

## Quick Example

```bash
uv run - << 'EOF'
# /// script
# dependencies = ["google-genai", "pillow"]
# ///
from google import genai
from google.genai import types

client = genai.Client()

response = client.models.generate_content(
    model="gemini-2.5-flash-image",
    contents=["A cute banana character"],
    config=types.GenerateContentConfig(
        response_modalities=['IMAGE']
    )
)

for part in response.parts:
    if part.inline_data is not None:
        part.as_image().save("tmp/output.png")
        print("Saved: tmp/output.png")
EOF
```

## Installation

```bash
claude plugins add cc-handbook/handbook-nano-banana
```

## Resources
- [Official Prompting Guide](https://blog.google/products/gemini/prompting-tips-nano-banana-pro/) - Learn how to structure your prompts effectively.
- [How to prompt Nano Banana Pro](https://www.fofr.ai/nano-banana-pro-guide)

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/readme-142) · https://claudary.paisolsolutions.com
