Agent Native

image-generation

This skill generates images using Google's Gemini API through text prompts or by modifying reference images with image-to-image mode.

by GreptileOfficial publisherNot reviewed

Identity proven by GitHub's verified organisation badge (greptileai)

Agents
Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode
License
MIT (permissive)
Pin
f5d66f3pinned Oct 9, 2026
Context cost
about 650 tokenswhen the skill loads
GitHub stars
0on greptileai/demo-onyx
Scripts
1 script

What it does

“Generate images using nano banana.”
The author's description, from SKILL.md

Generated summary from the skill's own text

This skill generates images using Google's Gemini API through text prompts or by modifying reference images with image-to-image mode. It supports multiple aspect ratios and can produce multiple image variations in a single call, with options to choose between fast or high-quality generation models.

When to use it

  • Creating visual assets from text descriptions for projects
  • Generating multiple style variations of existing images
  • Producing images in specific aspect ratios for different platforms
  • Prototyping visual designs quickly during development

When not to

  • When you need guaranteed consistency across multiple generations
  • If API costs or rate limits are critical constraints
  • Requiring specific copyrighted imagery or exact visual reproduction

Install

These commands install from the publisher's repository and need no account.

skills CLI

npx skills add greptileai/demo-onyx --skill image-generation

Installs from the repository's default branch, which may have changed since the commit we checked.

GitHub CLI 2.90 or later

gh skill install greptileai/demo-onyx image-generation@f5d66f389cb7fee12dfc5471fa6b82fe68b555ad

Installs the commit we checked (f5d66f3).

Copy by hand

Download the folder at f5d66f3 and put it in .claude/skills/image-generation for Claude Code and in .agents/skills/image-generation for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode.

Skill folder on GitHub at f5d66f3

Copy for your agent

A prompt for any coding agent. It installs this skill from GitHub at the pinned commit, copies the files as they are, and runs nothing unless you ask.

Prompt

Install the agent skill "image-generation" by Greptile.

Source, pinned to commit f5d66f389cb7fee12dfc5471fa6b82fe68b555ad:
https://github.com/greptileai/demo-onyx/tree/f5d66f389cb7fee12dfc5471fa6b82fe68b555ad/backend/onyx/server/features/build/sandbox/kubernetes/docker/skills/image-generation

1. Download that folder at exactly this commit. Do not use the default branch.
2. Copy every file unchanged, keeping the folder structure, into .claude/skills/image-generation/ for Claude Code and .agents/skills/image-generation/ for Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode. Create the folders if they do not exist.
3. Do not edit the files, and do not run any script in the folder unless I ask you to.
4. When you are done, list the files you copied and where you put them.

Listing and checks: https://www.agentnative.dev/skills/greptile/image-generation

SKILL.md at the pin

---
name: image-generation
description: Generate images using nano banana.
---

# Image Generation Skill

Generate images using Nano Banana (Google Gemini Image API). Supports text-to-image and image-to-image generation with configurable options.

## Setup

### Dependencies

```bash
pip install google-genai Pillow
```

### Environment Variable

Set your API key:

```bash
export GEMINI_API_KEY="your_api_key_here"
```

## Usage

### Basic Text-to-Image

```bash
python scripts/generate.py --prompt "A futuristic city at sunset with neon lights" --output city.png
```

### With Aspect Ratio

```bash
python scripts/generate.py \
  --prompt "Mountain landscape with a lake" \
  --output landscape.png \
  --aspect-ratio 16:9
```

### Image-to-Image Mode

Use a reference image to guide generation:

```bash
python scripts/generate.py \
  --prompt "Make it look like a watercolor painting" \
  --input-image original.png \
  --output watercolor.png
```

### Generate Multiple Images

```bash
python scripts/generate.py \
  --prompt "Abstract colorful art" \
  --output art.png \
  --num-images 3
```

## Arguments

| Argument | Short | Required | Default | Description |
|----------|-------|----------|---------|-------------|
| `--prompt` | `-p` | Yes | — | Text prompt describing the desired image |
| `--output` | `-o` | No | `output.png` | Output path for the generated image |
| `--model` | `-m` | No | `gemini-2.0-flash-preview-image-generation` | Model to use for generation |
| `--input-image` | `-i` | No | — | Reference image for image-to-image mode |
| `--aspect-ratio` | `-a` | No | — | Aspect ratio: `1:1`, `16:9`, `9:16`, `4:3`, `3:4` |
| `--num-images` | `-n` | No | `1` | Number of images to generate |

## Available Models

- `gemini-2.0-flash-preview-image-generation` - Fast, optimized for speed and lower latency
- `imagen-3.0-generate-002` - High quality image generation

## Programmatic Usage

Import the function directly in Python:

```python
from scripts.generate import generate_image

paths = generate_image(
    prompt="A serene mountain lake under moonlight",
    output_path="./outputs/lake.png",
    aspect_ratio="16:9",
    num_images=2,
)
```

## Tips

- **Detailed prompts work better**: Instead of "a cat", try "a fluffy orange tabby cat sitting on a windowsill, soft morning light, photorealistic"
- **Specify style**: Include style keywords like "digital art", "oil painting", "photorealistic", "anime style"
- **Use aspect ratios**: Match the aspect ratio to your intended use (16:9 for landscapes, 9:16 for portraits/mobile)
- **Image-to-image**: Great for style transfer, variations, or guided modifications of existing images

From greptileai/demo-onyx at f5d66f3, shown as plain text under its license: MIT (permissive). The license text is in LICENSE.

View SKILL.md on GitHub at f5d66f3

Files

2 files, 9.5 KB in total. Each file has a sha256 in the pin's manifest; the first 12 characters are shown.

Skill folder on GitHub at f5d66f3
All 4 skills from Greptile

More from Greptile

  • external-data-upload

    Uploads test data files to Filebase IPFS storage using the S3 API, replacing them with .cid content links, and maintains a manifest file.

    Contains scripts

    Claude Code, Codex, Cursor +3 · about 1.4K tokens · pinned 6 days ago

  • onyx-cli

    The skill queries an Onyx enterprise search platform to retrieve company documents and internal knowledge.

    Contains scripts

    Claude Code, Codex, Cursor +3 · about 1.5K tokens · pinned 6 days ago

  • pptx

    This skill enables agents to work with PowerPoint presentations through text extraction, visual analysis, template-based editing, and creation from scratch.

    Contains scripts

    Agents not labelled yet · about 2.2K tokens · pinned 6 days ago

  • all-images-ai-automation

    This skill automates All Images AI operations by discovering and executing tools through Composio's All Images AI toolkit via Rube MCP.

    by ComposioOfficial publisher

    Agents not labelled yet · about 710 tokens · pinned 6 days ago

  • remotion-best-practices

    This skill routes the agent through Remotion's specialized knowledge bases for video creation, editing, and deployment.

    by RemotionOfficial publisher

    Contains scripts

    Claude Code, Codex, Cursor +3 · about 920 tokens · pinned 6 days ago

  • remotion-best-practices

    This skill routes the agent to specialized Remotion sub-skills based on the user's task, covering video creation, project setup, React markup, maps…

    by RemotionOfficial publisher

    Claude Code, Codex, Cursor +3 · about 1K tokens · pinned 6 days ago

  • remotion-captions

    This skill enables video caption workflows including transcribing audio to generate captions, displaying captions in videos, and importing captions from SRT…

    by RemotionOfficial publisher

    Claude Code, Codex, Cursor +3 · about 220 tokens · pinned 6 days ago

  • remotion-captions

    This skill enables the agent to work with captions in Remotion videos by transcribing audio to generate captions, displaying them in videos, and importing…

    by RemotionOfficial publisher

    Claude Code, Codex, Cursor +3 · about 270 tokens · pinned 6 days ago

  • remotion-create

    This skill scaffolds a new Remotion video project, opens the browser-based Studio for live preview, and guides composition development using React markup.

    by RemotionOfficial publisher

    Claude Code, Codex, Cursor +3 · about 680 tokens · pinned 6 days ago

Open roles at Greptile

5 of 6 open roles on the jobs board

The skills listed here are third-party software, collected from public GitHub repositories as a catalog of recent skills and provided as is. Agent Native does not write or control them and is not responsible for any harm, loss or damage caused by installing or using them. Labels and checks describe what we saw at one commit and are not a guarantee. Read a skill's files before you run it. Terms of use