imagegen

Generate images, UI mockups, and game assets with transparent-background cutouts via ChatGPT credentials.

Updated Jul 28, 2026
One-click install
npx skills add https://github.com/vinzenz/workflows --skill imagegen-vinzenz
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: imagegen
Source: https://github.com/vinzenz/workflows/tree/main/.agents/skills/imagegen
Command: npx skills add https://github.com/vinzenz/workflows --skill imagegen-vinzenz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires rembg.

What problem does it solve? Creating UI mockups, game sprites, and transparent-background assets normally requires switching between image generation services and separate background-removal tools. This Skill unifies both into a single CLI workflow that writes files exactly where you specify. ## Core Features & Use Cases - Image Generation: Create general images, UI mockups (with platform and theme options), and game/UI assets (sprites, icons, characters, tiles) using ChatGPT/Codex credentials. - Background Removal: Run offline cutouts via rembg from the repo virtualenv, producing RGBA PNGs without any image API call or billing. - Reference-Based Iteration: Pass up to five reference images with --ref to guide generation toward a sketch or palette. - Use Case: Generate a pixel-art shopkeeper sprite with a transparent background in one command, then iterate on it using a reference sketch, and finally verify the output file before wiring it into your game project. ## Quick Start Ask the agent to generate a dark-themed desktop settings screen mockup and save it to artifacts/settings.png using imagegen.

Frequently Asked Questions about imagegen

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a UI mockup from a text prompt?▼

Run imagegen mockup with your prompt, an --out path, and optional --platform (web, desktop, ios, android, mobile, tablet) and --theme (light or dark) flags. Use --dry-run first to preview the write without billing.

How do I remove an image background without an API call?▼

Use imagegen cutout with the input image and a --out path ending in .png. It runs rembg locally from the repo virtualenv, so no image API call or billing occurs, though the first use may download a model into ~/.u2net.

What credentials does image generation need?▼

Generation uses ChatGPT/Codex credentials from codex login or an OPENAI_API_KEY environment variable. Agents must not authenticate themselves; ask a human to run codex login, and never read ~/.codex/auth.json.

Which image formats are supported for references and cutouts?▼

Reference images and cutout inputs accept only .png, .jpg, .jpeg, and .webp files. Cutout output is always RGBA PNG, so --out must end in .png whenever cutout is enabled.

Why did imagegen fail with a CONFLICT or TIMEOUT error?▼

A code: CONFLICT means the local destination path has a problem and is reported before any network or billing work. A code: TIMEOUT means the call exceeded --timeout and is safe to retry; run imagegen doctor for broader diagnosis.