# Image Gen Pro

A universal image generation skill for AI coding assistants using CLIProxy.

## Features

- 🎨 Generate images via CLIProxy (Gemini 3 Pro)
- 🔄 Batch generation with parallel processing
- 🖼️ Reference image support for ID/style consistency
- 🔍 Automatic auth detection and helpful error messages
- 📁 Organized output with date-based directories

## Prerequisites

- [CLIProxy](https://github.com/youruser/cli-proxy-api) running on `localhost:8317`
- Authenticated with an AGY account that has image generation access

## Quick Start

```bash
# Check auth status
python scripts/gen_image.py --check

# Generate single image
python scripts/gen_image.py --prompt "A cyberpunk hacker in neon city"

# With reference image
python scripts/gen_image.py --prompt "Same person, new outfit" --ref anchor.jpg

# Batch from file
python scripts/gen_image.py --prompts prompts.txt --concurrent 4
```

## Configuration

Copy `.env.example` to `.env`:

```bash
CLIPROXY_BASE=http://127.0.0.1:8317/v1
CLIPROXY_TOKEN=ccs-internal-managed
IMAGE_MODEL=gemini-3-pro-image-preview
```

## Prompt Enhancement

For best results, activate `skill-ai-artist` before generating to enhance your prompts.
If unavailable, see [references/advanced-prompting.md](references/advanced-prompting.md) for manual enhancement guidelines.
