imagegen

Generate and edit raster images via image_gen workflow or CLI.

4|1|Updated Oct 5, 2024
One-click install
npx skills add https://github.com/xrehpicx/anya --skill imagegen-xrehpicx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: imagegen
Source: https://github.com/xrehpicx/anya/tree/main/codex-rs/skills/src/assets/samples/imagegen
Command: npx skills add https://github.com/xrehpicx/anya --skill imagegen-xrehpicx

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Generates and edits raster images for websites, apps, and games using AI prompts, saving time and effort on asset creation.

Core Features & Use Cases

  • Built-in image_gen workflow (default) for normal generation and quick edits.
  • Fallback CLI mode (scripts/image_gen.py) for advanced model controls, transparency workflows, and batch jobs.
  • Guidance on prompt augmentation, references, and safe, production-ready bitmap outputs.

Quick Start

Provide a concise description of the image you want to generate and let image_gen produce the asset.

Frequently Asked Questions about imagegen

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

FAQPage Schema
How do I generate raster image assets for websites and apps using AI?

AI image generation for assets provides a built-in image_gen workflow where you provide a concise prompt to generate production-ready bitmap outputs for websites and apps. The system applies prompt augmentation and safety checks automatically.

How does the CLI fallback mode handle transparency workflows and batch jobs?

The CLI fallback mode uses scripts/image_gen.py to execute advanced model controls, transparency workflows, and batch jobs for image generation. It provides explicit command-line access when the default workflow is insufficient for complex asset requirements.

Do I need Pillow and openai dependencies to run image generation workflows?

Yes, the image generation Skill requires both openai and Pillow dependencies to execute its core workflows. These libraries enable the AI prompt processing and the resulting bitmap image manipulation required for asset creation.

What's the best way to edit existing AI art assets for game development?

The default image_gen workflow supports quick edits of existing AI art by providing concise descriptions of the desired changes. This delivers safe, production-ready bitmap outputs suitable for game development without manual external editing.

When should I use the default image_gen workflow versus the CLI fallback for bitmap assets?

Use the default image_gen workflow for normal generation and quick edits of bitmap assets. Switch to the CLI fallback mode when you need advanced model controls, transparency workflows, or batch jobs that exceed the default workflow's capabilities.

Why does prompt augmentation matter for AI image generation?

Prompt augmentation in AI image generation enhances basic user prompts to enforce output formatting and safety checks. This process ensures the system delivers ready-to-use bitmap assets that meet production standards without requiring manual prompt engineering.