This wraps Google's Gemini 3.1 Flash Image Preview API for generating and editing images straight from the command line. You get explicit control over resolution (512px through 4K) and aspect ratios, plus the ability to feed in up to 14 reference images when you need character consistency or multi-source composition. The skill maps natural language like "quick draft" or "hero image" to actual parameters, which saves you from memorizing the API. It's faster than waiting on Midjourney's queue and more scriptable than clicking through web UIs. If you're building workflows that need repeatable image generation with version control and CI integration, this is the straightforward Python wrapper you'd write yourself if you had an afternoon.

skills.sh installs
897
GitHub stars
301
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/intellectronica/agent-skills
Categories
Backend & APIs, AI & Agent Building
First seen
Jun 3, 2026

More from intellectronica/agent-skills

All 22
1ifuryst avataropen-computer-useifuryst/open-codex-computer-usePlatform-neutral guidance for using Open Computer Use, the open-source Computer Use MCP server and CLI for macOS, Linux, and Windows. Use when an agent needs to895skills.sh installs
2workos avatarworkos-widgetsworkos/skillsUse when the user is implementing, embedding, or debugging a WorkOS Widget — specifically the User Management, User Profile, Admin Portal SSO Connection, or Adm885skills.sh installs
3mindrally avatarfastify-typescriptmindrally/skillsGuidelines for building high-performance APIs with Fastify and TypeScript, covering validation, Prisma integration, and testing best practices883skills.sh installs
4vercel-labs avatard3kvercel-labs/dev3000Use when the user asks to use d3k, run/dev/test/debug a web project with d3k, or reproduce a browser issue. Own the runtime: reuse or background-start d3k non-i877skills.sh installs
5sanjay3290 avatargoogle-drivesanjay3290/ai-skillsInteract with Google Drive - search files, find folders, list contents, download files, upload files, create folders, move, copy, rename, and trash files. Use w875skills.sh installs
6vm0-ai avatarcloudflare-tunnelvm0-ai/vm0-skillsCloudflare Tunnel API for secure tunnels. Use when user mentions "Cloudflare tunnel", "argo tunnel", or secure connectivity.870skills.sh installs