imagegen

Generate and edit raster images with built-in and CLI modes.

Updated Apr 28, 2026
One-click install
npx skills add https://github.com/suwandre/my-codex-config --skill imagegen-suwandre
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: imagegen
Source: https://github.com/suwandre/my-codex-config/tree/main/skills/.system/imagegen
Command: npx skills add https://github.com/suwandre/my-codex-config --skill imagegen-suwandre

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openai, Pillow, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Generate and edit raster images for projects. This Skill streamlines creating website visuals, product images, logos, and marketing graphics, reducing manual iteration and ensuring consistent quality.

Core Features & Use Cases

  • Built-in image generation and editing using the default image_gen tool for fast, in-context visuals.
  • CLI fallback (scripts/image_gen.py) with explicit model controls, batch support, and transparent-background workflows.
  • Transparent-image handling, including chroma-key-based alpha extraction and optional true transparency fallback when requested.
  • Support for single assets and multi-asset batches, with prompts augmented and validated to maintain invariants and guardrails.

Quick Start

Generate a photorealistic hero image for the product page using the built-in image_gen tool.

Frequently Asked Questions about imagegen

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

FAQPage Schema
How do I generate transparent images for website assets using AI?

Generate transparent images using built-in chroma-key alpha extraction or true transparency fallback. It handles single or batch workflows, validating prompts to produce ready-to-use raster graphics with transparent backgrounds for website assets.

Can I batch generate game art and UI mockups with OpenAI?

Batch generate game art and UI mockups using the CLI fallback script with explicit OpenAI model controls. It supports multi-asset batch processing with prompt augmentation to maintain consistent quality across all generated raster images.

How do I edit existing raster images and marketing visuals deterministically?

Edit existing raster images and marketing visuals using dual top-level modes for in-context edits or CLI fallback. Robust error handling and input validation enforce guardrails, ensuring deterministic results for all image editing tasks.

What's the best way to create logos with AI while enforcing prompt guardrails?

Create logos with AI using prompt augmentation and validation guardrails. The workflow enforces input validation and invariants during image generation, ensuring deterministic results and consistent quality for branding visuals.

Does image generation with Pillow support chroma-key alpha extraction?

Image generation with Pillow supports chroma-key-based alpha extraction for transparent-image handling. It processes raster images with an optional true transparency fallback, validating inputs to enforce guardrails for deterministic outputs.

Why does prompt augmentation matter for AI image generation consistency?

Prompt augmentation matters for AI image generation consistency because it enforces invariants and guardrails during input validation. This ensures deterministic results across single or batch processing of website assets, game art, and marketing visuals.