Skip to content
Back to skills

Generate

ASecurity

Generate, edit, remix, and optimize images using Google Gemini 3 Pro Image Preview (Nano Banana Pro)

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added May 28, 2026
ai-agentspythongobashgitdocumentation

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned May 28, 2026

npx -y skills add fakoli/fakoli-plugins --skill generate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Generate?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Generate
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fakoli-generate/badge)](https://www.skillsdirectory.com/skills/fakoli-generate)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: generate
description: Generate, edit, remix, and optimize images using Google Gemini 3 Pro Image Preview (Nano Banana Pro)
allowed-tools:
  - Bash
  - Read
  - Write
---

# Nano Banana Pro (Gemini 3 Pro Image) Skill

Generate, edit, remix, and optimize images using Google's Gemini 3 Pro Image Preview model.

## Quick Reference

| Command | Description |
|---------|-------------|
| `gen` | Generate an image from a text prompt |
| `edit` | Edit an existing image with instructions |
| `remix-url` | Create an image styled from a webpage |
| `optimize` | Reduce image size for GitHub, Slack, web |

## Model Selection

Use `--model pro` (higher quality, default) or `--model flash` (faster) with any command. Set the default in your configuration via `default_model`.

## Usage

```bash
# Generate/edit/remix
uv run --directory "${CLAUDE_PLUGIN_ROOT}" python "${CLAUDE_PLUGIN_ROOT}/skills/generate/scripts/nanobanana.py" <command> [options]

# Optimize
uv run --directory "${CLAUDE_PLUGIN_ROOT}" python "${CLAUDE_PLUGIN_ROOT}/skills/generate/scripts/optimize.py" <image> [--preset github|slack|web|thumbnail]
```

## Auto-Optimization Guidance

**After generating any image, check the file size.** If over 500KB (or user's configured threshold), suggest optimization:

```
Generated image: ./banner.png (2.3MB)

⚠️ This image is large for GitHub/web use. To optimize:
/optimize-image ./banner.png --preset github
```

### Optimization Presets

| Preset | Max Size | Max Width | Use Case |
|--------|----------|-----------|----------|
| `github` | 500KB | 1280px | README images, PR screenshots |
| `slack` | 128KB | 800px | Slack/Discord messages |
| `web` | 200KB | 1200px | Blog posts, documentation |
| `thumbnail` | 50KB | 400px | Previews, icons |

## PaperBanana Agent Pipeline

This plugin includes 5 specialized agents for automated, high-quality image creation:

| Phase | Agent | Role |
|-------|-------|------|
| Planning | [Retriever](../../agents/retriever.md) | Finds brand assets, colors, fonts in your project |
| Planning | [Planner](../../agents/planner.md) | Creates detailed visual specifications |
| Planning | [Stylist](../../agents/stylist.md) | Applies aesthetic guidelines and design principles |
| Refinement | [Visualizer](../../agents/visualizer.md) | Executes image generation (only agent that writes) |
| Refinement | [Critic](../../agents/critic.md) | Evaluates output, requests revisions (up to 3 rounds) |

Agents are enabled/disabled via configuration. See `/configure agents`.

## Documentation

- [README](../../README.md) - Full documentation, configuration, and troubleshooting
- [Style Templates](references/style-templates.md) - Pre-built prompt patterns for common use cases
- [Configure Command](../../commands/configure.md) - Plugin setup wizard

Files in this skill

  • SKILL.md2.7 KB
  • references/style-templates.md7 KB
  • scripts/nanobanana.py18.1 KB
  • scripts/optimize.py7 KB
  • scripts/pyproject.toml260 B
  • scripts/uv.lock20 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.