se-gemini-imagegen
This skill should be used when generating and editing images using the Gemini API (Nano Banana Pro).
Skill by simonwjackson
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/simonwjackson-se-gemini-imagegen
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: backend, writing, productivity
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/se-gemini-imagegen
What's inside
- Skill name
se-gemini-imagegen- Description
- This skill should be used when generating and editing images using the Gemini API (Nano Banana Pro). It applies when creating images from text prompts, editing existing images, applying style transfers, generating logos with text, creating stickers, product mockups, or any image generation/manipulation task. Supports text-to-image, image editing, multi-turn refinement, and composition from multiple reference images.
- License
- MIT
- Compatibility
- python3, Gemini API
- Instructions
- 246 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (7)
- SKILL.md
- requirements.txt
- compose_images.py · scripts/
- edit_image.py · scripts/
- gemini_images.py · scripts/
- generate_image.py · scripts/
- multi_turn_chat.py · scripts/
SKILL.md (first lines)
# Gemini Image Generation (Nano Banana Pro)
**Pi tools (preferred when registered):** three of the five python scripts ship as typed Pi tools. Use the tool surface; the scripts stay on disk as fallback.
| Tool | Wraps | Use when |
|---|---|---|
| `gemini_image_generate` | `scripts/generate_image.py` | Creating a new image from a text prompt |
| `gemini_image_edit` | `scripts/edit_image.py` | Modifying an existing image with a natural-language instruction |
| `gemini_image_compose` | `scripts/compose_images.py` | Combining 1–14 input images into a new image |
`scripts/multi_turn_chat.py` and `scripts/gemini_images.py` remain script-only — they're interactive REPL flows that don't fit a single tool-call shape.
**Pre-flight:** Always confirm `GEMINI_API_KEY` is set before calling any of the three tools. The scripts fail fast without it; surfacing the missing-env check before invoking avoids wasted call attempts.
Generate and edit images using Google's Gemini API. The environment variable `GEMINI_API_KEY` must be set.
## Default Model
| Model | Resolution | Best For |
|-------|------------|----------|
| `gemini-3-pro-image-preview` | 1K-4K | All image generation (default) |
**Note:** Always use this Pro model. Only use a different model if explicitly requested.
## Quick Reference
### Default Settings
- **Model:** `gemini-3-pro-image-preview`
- **Resolution:** 1K (default, options: 1K, 2K, 4K)
- **Aspect Ratio:** 1:1 (default)
### Available Aspect Ratios
`1:1`, `2:3`, `3:2`, `3:4`, `4:3`, `4:5`, `5:4`, `9:16`, `16:9`, `21:9`
### Available Resolutions
`1K` (default), `2K`, `4K`
## Core API Pattern
```python
import os
from google import genai
from google.genai import types
client = genai.Client(api_key=os.environ["GEMINI_API_KEY"])
# Basic generation (1K, 1:1 - defaults)
response = client.models.generate_content(
model="gemini-3-pro-image-preview",
contents=["Your prompt here"],
config=types.GenerateContentConfig(
response_modalities=['TEXT', 'IMAGE'],
),
)
for part in response.parts:
if part.text:
print(part.text)
elif part.inline_data:
image = part.as_image()
image.save("output.png")
```
## Custom Resolution & Aspect Ratio
```python
from google.genai import types
response = client.models.generate_content(
model="gemini-3-pro-image-preview",
contents=[prompt],
config=types.GenerateContentConfig(
response_modalities=['TEXT', 'IMAGE'],
image_config=types.ImageConfig(
aspect_ratio="16:9", # Wide format
image_size="2K" # Higher resolution
),
)
)
```
### Resolution Examples
```python
# 1K (default) - Fast, good for previews
image_config=types.ImageConfig(image_size="1K")
# 2K - Balanced quality/speed
image_config=types.ImageConfig(image_size="2K")
# 4K - Maximum quality, slower
image_config=types.ImageConfig(image_size="4K")
```
### Aspect Ratio Examples
```python
# Square (default)
image_config=types.ImageConfig(aspect_ratio="1:1")
# Landscape wide
image_config=types.ImageConfig(aspect_ratio="16:9")
# Ultra-wide panoramic
image_config=types.ImageConfig(aspect_ratio="21:9")
# Portrait
image_config=types.ImageConfig(aspect_ratio="9:16")
# Photo standard
image_config=types.ImageConfig(aspect_ratio="4:3")
```
## Editing Images
Pass existing images with text prompts:
```python
from PIL import ImageFrom simonwjackson/pi-software-engineering, MIT.
More from simonwjackson/pi-software-engineering
- 0.479score
se-doc-review
simonwjackson
Review requirements or plan documents using parallel persona agents that surface role-specific issues.
SkillCFreshness: CClaude Code +9 - 0.479score
se-demo-reel
simonwjackson
Capture a visual demo reel (GIF, terminal recording, screenshots) for PR descriptions.
SkillCFreshness: CClaude Code +9 - 0.479score
se-brainstorm
simonwjackson
Explore requirements and approaches through collaborative dialogue before writing a right-sized requirements document and planning implementation.
SkillCFreshness: CClaude Code +9 - 0.479score
se-clean-gone-branches
simonwjackson
Clean up local branches whose remote tracking branch is gone.
SkillCFreshness: CClaude Code +9 - 0.479score
se-ideate
simonwjackson
Generate and critically evaluate grounded ideas about a topic.
SkillCFreshness: CClaude Code +9 - 0.479score
se-debug
simonwjackson
Systematically find root causes and fix bugs.
SkillCFreshness: CClaude Code +9 - 0.475score
se-agent-native-architecture
simonwjackson
Build applications where agents are first-class citizens.
SkillCFreshness: CClaude Code +9 - 0.474score
se-frontend-design
simonwjackson
Build web interfaces with genuine design quality, not AI slop.
SkillCFreshness: CClaude Code +9 - 0.474score
se-challenge-plan
simonwjackson
Stress-test an implementation plan or proposed approach against project context, domain language, existing decisions, risks, sequencing, and test strategy.
SkillCFreshness: CClaude Code +9 - 0.474score
se-architecture-improvement
simonwjackson
Find deepening opportunities in a codebase using project context, established domain language, documented decisions, and public-contract test posture.
SkillCFreshness: CClaude Code +9 - 0.474score
se-backlog
simonwjackson
Ambient engineering backlog skill for capturing, reviewing, refining, promoting, and pruning durable follow-up work in a repo-local Backlog.md-style backlog.
SkillCFreshness: CClaude Code +9 - 0.473score
se-polish-beta
simonwjackson
[BETA] Start the dev server, open the feature in a browser, and iterate on improvements together.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- May 30, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from simonwjackson
- 0.479score
se-debug
simonwjackson
Systematically find root causes and fix bugs.
SkillCFreshness: CClaude Code +9 - 0.479score
se-doc-review
simonwjackson
Review requirements or plan documents using parallel persona agents that surface role-specific issues.
SkillCFreshness: CClaude Code +9 - 0.479score
se-demo-reel
simonwjackson
Capture a visual demo reel (GIF, terminal recording, screenshots) for PR descriptions.
SkillCFreshness: CClaude Code +9 - 0.479score
se-clean-gone-branches
simonwjackson
Clean up local branches whose remote tracking branch is gone.
SkillCFreshness: CClaude Code +9 - 0.479score
se-brainstorm
simonwjackson
Explore requirements and approaches through collaborative dialogue before writing a right-sized requirements document and planning implementation.
SkillCFreshness: CClaude Code +9 - 0.479score
se-ideate
simonwjackson
Generate and critically evaluate grounded ideas about a topic.
SkillCFreshness: CClaude Code +9
Cite this page
se-gemini-imagegen skill. Agent Mart. https://agentmart.dev/skills/simonwjackson-se-gemini-imagegen (last updated 2026-10-24)