imagegen

Generate or edit raster bitmap images from natural-language prompts and reference images.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

It removes the time and effort of manually creating and editing image assets by producing production-ready raster visuals directly from your instructions and references.

Core Features & Use Cases

  • Bitmap Image Generation & Editing: Create or modify photos, illustrations, sprites, textures, mockups, and transparent cutouts as true raster outputs.
  • Built-in vs Fallback Transparency Handling: Use a built-in image generation path by default, with a chroma-key workflow for transparency and a CLI fallback only when true native transparency is required.
  • Project-Ready Asset Workflow: Produces assets meant to be consumed by your current project (e.g., website/game/UI mockups) and guides safe, non-destructive saving behavior.

Quick Start

Generate a new product image for the current project by asking: "Use imagegen to create a clean, modern hero image of a matte ceramic coffee mug for my landing page."

Frequently Asked Questions about imagegen

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

FAQPage Schema
How do I generate transparent PNG assets for website mockups from natural language prompts?

Bitmap image generation for website mockups creates production-ready raster visuals directly from natural-language prompts. You can generate brand-new photos, illustrations, and UI assets without manually creating or editing image files.

Can I use a reference image to edit existing product photography via inpainting?

Image editing via inpainting transforms existing product photography by applying modifications to provided reference images. You can produce visual variants and modify specific bitmap regions using natural-language instructions.

What is the best way to get true native transparency for game sprites without manual chroma keying?

True native transparency for game sprites requires routing to a CLI-based workflow with a specified model path. The default built-in image generation path uses local chroma-key alpha extraction instead of native transparency.

Does this image generation workflow output WebP files for UI asset use cases?

The image generation workflow outputs both PNG and WebP raster assets for UI use cases. It performs local chroma-key alpha extraction to ensure assets are project-ready and safely saved without destructive overwrites.

When should I avoid the built-in image generation path and use the CLI fallback?

You should avoid the built-in image generation path and use the CLI fallback only when you explicitly need true native transparency or specify a custom CLI model path. The default path handles standard bitmap generation and editing efficiently.