Generate images using Google's Nano Banana Pro (Gemini 3 Pro Image) with workflow-based prompting
View on GitHubkrishagel/geoffrey
geoffrey
January 24, 2026
Select agents to install to:
npx add-skill https://github.com/krishagel/geoffrey/blob/main/skills/image-gen/SKILL.md -a claude-code --skill image-genInstallation paths:
.claude/skills/image-gen/# Image Generation Skill Generate professional images, infographics, and diagrams using Google's Nano Banana Pro model (gemini-3-pro-image-preview). ## Model Capabilities **Nano Banana Pro** (released November 20, 2025): - **Text rendering** - Accurate, legible text in images - **Google Search grounding** - Real-time data (weather, stocks, etc.) - **Multi-turn conversation** - Iterative refinement - **Up to 14 reference images** - For composition and style transfer - **Resolutions**: 1K, 2K, 4K - **Aspect ratios**: 1:1, 2:3, 3:2, 4:3, 16:9, 21:9 ## Scripts All scripts use Python via `uv run` with inline dependencies. ### generate.py - Text to Image ```bash uv run scripts/generate.py "prompt" output.png [aspect_ratio] [size] ``` **Examples:** ```bash # Basic image uv run scripts/generate.py "A cozy coffee shop in autumn" coffee.png # Infographic with specific aspect ratio uv run scripts/generate.py "Infographic explaining how neural networks work" nn.png 16:9 2K # 4K professional image uv run scripts/generate.py "Professional headshot, studio lighting" headshot.png 3:2 4K ``` ### edit.py - Image Editing ```bash uv run scripts/edit.py input.png "edit instructions" output.png ``` **Examples:** ```bash # Edit existing image uv run scripts/edit.py photo.png "Change the background to a beach sunset" edited.png ``` ### compose.py - Multi-Image Composition ```bash uv run scripts/compose.py "prompt" output.png --refs image1.png image2.png ``` **Examples:** ```bash # Combine styles from multiple images uv run scripts/compose.py "Combine these styles into a logo" logo.png --refs style1.png style2.png ``` ## Workflows Workflows provide structured approaches for specific visual types. Each workflow follows the PAI 6-step editorial process: 1. **Extract narrative** - Understand the complete story/concept 2. **Derive visual concept** - Single metaphor with 2-3 physical objects 3. **Apply aesthetic** - Define style, colors, mood 4. **Construct prompt** - Build detai