nano-banana
CommunityPython scripting for Gemini image generation.
System Documentation
What problem does it solve?
This Skill enables rapid Python-based scripting to drive Gemini image generation, enabling quick iterations and automated asset production without heavy project setup.
Core Features & Use Cases
- Inline Python scripting: Write and execute small scripts directly with uv run.
- Image generation flow: Generate and save assets using Gemini models.
- Directives & dependencies: Use runtime directives to manage packages and SDKs.
Quick Start
Run a simple image generation script with uv run -: uv run - << 'EOF'
/// script
dependencies = ["google-genai", "pillow"]
///
from google import genai from google.genai import types
client = genai.Client() response = client.models.generate_content( model="gemini-2.5-flash-image", contents=["A cute banana character with sunglasses"], config=types.GenerateContentConfig( response_modalities=['IMAGE'] ) ) for part in response.parts: if part.inline_data is not None: image = part.as_image() image.save("tmp/generated.png") print("Saved: tmp/generated.png") EOF
Dependency Matrix
Required Modules
None requiredComponents
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: nano-banana Download link: https://github.com/NikiforovAll/claude-code-rules/archive/main.zip#nano-banana Please download this .zip file, extract it, and install it in the .claude/skills/ directory.