imagegen

Generate or edit raster images with optional prompts and references.

1|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/DEEP-PolyU/matopt-xlab --skill imagegen-deep-polyu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: imagegen
Source: https://github.com/DEEP-PolyU/matopt-xlab/tree/main/backend/skills/imagegen
Command: npx skills add https://github.com/DEEP-PolyU/matopt-xlab --skill imagegen-deep-polyu

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Generate or edit raster images for projects using AI.

Core Features & Use Cases

  • Built-in image_gen tool for normal image generation and editing without needing an OPENAI_API_KEY.
  • Fallback CLI mode (scripts/image_gen.py) for explicit CLI usage with generate, edit, and generate-batch commands (requires OPENAI_API_KEY when used).
  • Prompt augmentation, format handling, and optional downscaling for multiple outputs.
  • Supports masks, references, and batch processing for asset generation.

Quick Start

Use the built-in image_gen tool by default for raster image tasks and switch to the CLI fallback only if you explicitly request it.

Frequently Asked Questions about imagegen

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

FAQPage Schema
How do I generate raster images for UI assets and product visuals using AI?

AI image generation for product visuals and UI assets is handled by a built-in image_gen tool that requires no API key. It applies prompt augmentation and configurable output formats to produce raster graphics directly.

Do I need an OPENAI_API_KEY to edit existing images or generate batch variants?

You do not need an OPENAI_API_KEY for standard image editing or batch variant generation when using the built-in image_gen tool. The CLI fallback mode requires the key only if you explicitly invoke it for generate, edit, or generate-batch commands.

Can I use masks and reference images for AI image editing?

Yes, you can use masks and reference images for AI image editing. The tool supports applying masks and references to edit existing raster images, allowing targeted modifications and batch processing for asset generation.

What is the best way to configure size, output format, and background for AI generated images?

The best way to configure size, output format, and background for AI generated images is through the built-in image_gen tool settings. It also supports optional downscaling to manage multiple outputs and raster image resolutions.

Does batch processing for AI art generation support prompt augmentation?

Batch processing for AI art generation fully supports prompt augmentation. This allows you to scale raster image creation across multiple variants while automatically enhancing prompts for better visual outputs.

Why use the CLI fallback script when the built-in image_gen tool is available?

You should use the CLI fallback script only when you need explicit command-line execution for generate, edit, or generate-batch tasks. It requires an OPENAI_API_KEY and serves as an alternative to the default built-in image_gen tool.