Nano banana pro

From bighardperson/computer-science-skills-collection · View interactive version

Nano banana pro is an AI agent skill from the GitHub repository bighardperson/computer-science-skills-collection. Generate/edit images with Nano Banana Pro (Gemini 3 Pro Image). Use for image create/modify requests incl. edits. Supports text-to-image + image-to-image; 1K/2K/4K; use --input-image.

How to use this skill

Skill file

Nano Banana Pro Image Generation & Editing

Generate new images or edit existing ones using Google's Nano Banana Pro API (Gemini 3 Pro Image).

Usage

Run the script using absolute path (do NOT cd to skill directory first):

Generate new image:

uv run {baseDir}/scripts/generate_image.py --prompt "your image description" --filename "output-name.png" [--resolution 1K|2K|4K] [--api-key KEY]

Edit existing image:

uv run {baseDir}/scripts/generate_image.py --prompt "editing instructions" --filename "output-name.png" --input-image "path/to/input.png" [--resolution 1K|2K|4K] [--api-key KEY]

Important: Always run from the user's current working directory so images are saved where the user is working.

Default Workflow (draft > iterate > final)

Resolution Options

API Key

  1. --api-key argument
  2. GEMINI_API_KEY environment variable

Image Editing

Use --input-image parameter with the path to the image. The prompt should contain editing instructions.

Prompt Handling

For generation: Pass user's image description as-is to --prompt.

For editing: Pass editing instructions in --prompt.

Output

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.