Agent skill · Workflow & Productivity

image-generator

Generate and edit images using Gemini's Nano Banana Pro model (gemini-3-pro-image-preview). Use this skill when the user asks you to generate images, create visuals, edit photos, create logos, generate product mockups, or perform any image generation/editing task.

Nick44,086★ · +407/wk · 1 repos on radarProfile →
claude-codecodexcursorcan modify filesMIT
Install
npx skills add sickn33/agentic-awesome-skills --skill image-generator --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 15 KB
Bundled scripts: none
Declared author: DAIR.AI
Allowed tools: ReadWriteBashWebFetch
Path: skills/image-generator/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 44,414 · +328 this week
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Image Generator ## When to Use Use when this workflow matches the user request: Generate and edit images using Gemini's Nano Banana Pro model (gemini-3-pro-image-preview). Use this skill when the user asks you to generate images, create visuals, edit photos, create logos, generate product mockups, or perform any image generation/editing task. _Source: [dair-ai/dair-academy-plugins](https://github.com/dair-ai/dair-academy-plugins) (MIT)._ This skill generates and edits images using Google's Gemini Nano Banana Pro model (`gemini-3-pro-image-preview`). ## IMPORTANT: Setup Required Before using this skill, the user must set the `GEMINI_API_KEY` environment variable: 1. Get a free API key from [Google AI Studio](https://aistudio.google.com/) 2. Export the key in your shell profile (`~/.zshrc`, `~/.bashrc`, etc.): ```bash read -rsp "Gemini API key: " GEMINI_API_KEY echo export GEMINI_API_KEY ``` 3. Restart your terminal or run `source ~/.zshrc` (or `~/.bashrc`) **The skill will not work without this configuration.** ## Pre-flight Check Before making any API call, verify the key is set: ```bash if [ -z "$GEMINI_API_KEY" ]; then echo "ERROR: GEMINI_API_KEY is not set. Please export it in

What's inside
Steps it walks through
  1. When to Use
  2. IMPORTANT: Setup Required
  3. Pre-flight Check
  4. Configuration
  5. Iterating on User-Provided Images
  6. Step 1: Read and encode the image to base64
  7. Step 2: Send image with edit prompt (File-Based Approach)
  8. Step 3: Extract and save the edited image
  9. Complete Example (File-Based)
  10. Multi-Image Input (Combine/Compose)
  11. Capabilities
  12. Text-to-Image Generation
  13. Image Editing
  14. Advanced Features
Ships with 1 file
  • .env.example
Commands it runs
read -rsp "Gemini API key: " GEMINI_API_KEY
echo
export GEMINI_API_KEY
if [ -z "$GEMINI_API_KEY" ]; then
echo "ERROR: GEMINI_API_KEY is not set. Please export it in your shell profile."
exit 1
fi
Get the image path from user
Detect mime type
if [[ "$IMG_PATH" == *.png ]]; then
More from agentic-awesome-skills
All skills →
About this skill
What does the image-generator skill do?

Generate and edit images using Gemini's Nano Banana Pro model (gemini-3-pro-image-preview). Use this skill when the user asks you to generate images, create visuals, edit photos, create logos, generate product mockups, or perform any image generation/editing task.

How do I install it?

Run `npx skills add sickn33/agentic-awesome-skills --skill image-generator --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From sickn33/agentic-awesome-skills, a repository with 44,414 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going