nanobanana-skill
Generate or edit images using Google Gemini API via nanobanana. Use when the user asks to create, generate, edit images with nanobanana, or mentions image generation/editing tasks.
Security Assessment
Detected risks:
About nanobanana-skill
The nanobanana-skill is designed to facilitate image generation and editing using the Google Gemini API through the nanobanana tool. It provides a streamlined interface for users to create high-quality visuals based on descriptive prompts, allowing for both artistic and practical image creation. By integrating with the Gemini API, this skill eliminates the need for manual image design, enabling users to quickly produce images that match specific requirements such as aspect ratio, resolution, and style preferences.
Key features of the nanobanana-skill include support for multiple aspect ratios ranging from square to ultra-wide formats, customizable resolution settings from 1K to 4K, and the ability to select between higher quality or faster generation models. Users can generate entirely new images or edit existing images by specifying the desired modifications. The skill also supports optional parameters like output filenames, ensuring organized file management. Error handling is built-in, with clear guidelines for resolving common issues such as missing API keys, unreadable input files, or unwritable output directories.
This skill is ideal for graphic designers, social media managers, content creators, and developers who require rapid image production or editing capabilities. Use cases include creating social media visuals, designing logos, producing concept art, and enhancing existing photos. Its flexibility in prompt specification, resolution, and model choice makes it suitable for both professional and casual users seeking a simple yet powerful tool for generating or modifying images programmatically.
FAQ
How do I generate an image using nanobanana-skill?
Provide a descriptive prompt of the image you want, optionally specify the aspect ratio, output filename, model, and resolution. Then run the nanobanana.py script with the corresponding parameters.
Can I edit existing images with this skill?
Yes, you can specify input image files and provide a prompt describing the changes you want. The script will generate the edited images based on your instructions.
What are the system requirements for using nanobanana-skill?
You need Python3 with dependencies installed (google-genai, Pillow, python-dotenv), the GEMINI_API_KEY configured in ~/.nanobanana.env or exported, and the nanobanana.py script must be executable.
Which image sizes and aspect ratios are supported?
The skill supports multiple options including square (1024x1024), portrait (832x1248, 864x1184, 896x1152, 768x1344), landscape (1248x832, 1184x864, 1344x768), and ultra-wide (1536x672). The default is 9:16 portrait (768x1344).
What should I do if the image generation fails?
Check that your GEMINI_API_KEY is set correctly, verify that input files exist and are readable, ensure the output directory is writable, and try refining your prompt for clarity.
Install nanobanana-skill
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
Microck/ordinary-claude-skills