Skip to content

Generative image skill that creates and edits images from prompts with explicit resolution and aspect-ratio control.

CCM score
62 of 100
skills.sh installs
935
GitHub stars
305
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers generating new images from a text prompt and editing existing images using up to 14 reference inputs
  • Runs generate_image.py on the gemini-3.1-flash-image-preview model with 512px, 1K, 2K, or 4K output and 14 supported aspect ratios
  • Maps plain-language requests like "thumbnail" or "print quality" to the matching resolution and aspect ratio, and saves timestamped PNG files
  • Designed for fast iteration on visuals that need precise sizing, with an API key read from --api-key or GEMINI_API_KEY

Install

$ npx -y skills add intellectronica/agent-skills --skill nano-banana-2 -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Nano Banana 2 Image Generation & Editing

Generate new images or edit existing images with Nano Banana 2 (gemini-3.1-flash-image-preview).

Usage

Run the script using absolute or workspace-relative path (do NOT cd into the skill directory first):

Generate new image:

uv run ./.agents/skills/nano-banana-2/scripts/generate_image.py --prompt "your image description" --filename "output-name.png" [--resolution 512px|1K|2K|4K] [--aspect-ratio RATIO] [--api-key KEY]

Edit image(s) with references:

uv run ./.agents/skills/nano-banana-2/scripts/generate_image.py --prompt "editing instructions" --filename "output-name.png" --input-image "path/to/input1.png" [--input-image "path/to/input2.png" ...] [--resolution 512px|1K|2K|4K] [--aspect-ratio RATIO] [--api-key KEY]

Always run from the user's current working directory so outputs are saved in the active project context.

Model

Use model code:

  • gemini-3.1-flash-image-preview (Nano Banana 2)

Do not use gemini-3-pro-image-preview in this skill.

Resolution Options

Nano Banana 2 supports:

  • 512px (fastest, low-latency iteration)
  • 1K (default)
  • 2K
  • 4K

Details

Repository
github.com/intellectronica/agent-skills
Categories
AI Image, Video & Voice, Design & UI/UX
First seen
Jun 3, 2026

More from intellectronica/agent-skills

All 22

Similar to Nano Banana 2

More AI Image, Video & Voice