Agent skill
nano-banana-pro
Generate images using Google's Nano Banana Pro (gemini-3-pro-image-preview). Use when user asks to create, generate, or draw images, infographics, visualizations, diagrams, charts, illustrations, or any visual content. Excellent for data-accurate infographics and text rendering.
Install this agent skill to your Project
npx add-skill https://github.com/landfill/devtool-and-rule/tree/main/skills/nano-banana-pro
SKILL.md
Nano Banana Pro Image Generator
Generate images using Google's advanced Nano Banana Pro model (gemini-3-pro-image-preview).
Prerequisites
The user must have GEMINI_API_KEY environment variable set with a valid Google AI API key.
Usage
The script is located in the same directory as this SKILL.md file. Run it with uv run:
uv run /path/to/skills/nano-banana-pro/generate_image.py "your prompt" -o output.png
When this skill is invoked, locate generate_image.py in the skill directory and run it.
Parameters
| Parameter | Required | Description |
|---|---|---|
prompt |
Yes | Text description of the image to generate |
-o, --output |
Yes | Output filename (you decide the path based on context) |
--aspect-ratio |
No | One of: 1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9 (default: 1:1) |
--size |
No | Image size: 1K, 2K, 4K (default: 1K) |
Examples
Basic image generation:
uv run generate_image.py "A sunset over mountains" -o sunset.png
Infographic with specific aspect ratio:
uv run generate_image.py "Infographic showing the water cycle with labeled stages" -o water_cycle.png --aspect-ratio 9:16
High-resolution ultrawide:
uv run generate_image.py "Professional photo of a modern office space" -o office.png --aspect-ratio 21:9 --size 4K
Model Capabilities
Nano Banana Pro excels at:
- Accurate infographics with real data (uses Google Search grounding)
- Text rendering in images
- Cartographic visualizations and maps
- Detailed instruction following
- Chain-of-thought reasoning for complex visual tasks
Output
The script prints:
- Progress message while generating
- Path to saved image on success
- Any text response from the model
- Error message if no image was generated
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
gpt-image-1-5
Generate and edit images using OpenAI's GPT Image 1.5 model. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports text-to-image generation and image editing with optional mask. DO NOT read the image file first - use this skill directly with the --input-image parameter.
feature-plan
Creates phase-based feature plans with quality gates and incremental delivery structure. Use when planning features, organizing work, breaking down tasks, creating roadmaps, or structuring development strategy. Keywords: plan, planning, phases, breakdown, strategy, roadmap, organize, structure, outline.
skillsmp-search
Search and discover AI skills from the SkillsMP marketplace using keyword search or AI-powered semantic search. Use this skill when users want to find specific skills, explore available capabilities, or search for solutions to particular problems using natural language queries.
landing-page-guide-v2
Create distinctive, high-converting landing pages that combine proven conversion elements with exceptional design quality. Build beautiful, memorable landing pages using Next.js 14+ and ShadCN UI that avoid generic AI aesthetics while following the 11 essential elements framework.
handoff
Compact the current conversation into a handoff document for another agent to pick up.
obsidian-vault
Search, create, and manage notes in the Obsidian vault with wikilinks and index notes. Use when user wants to find, create, or organize notes in Obsidian.
Didn't find tool you were looking for?