imagegen
Skill by scholay-xsime
Generates or edits raster images for projects, such as photos, illustrations, sprites, mockups and transparent-background cutouts. Built for Codex users who need bitmap assets rather than SVG or code-native visuals.
Install imagegen
Built from the published package, never by AI.
git clone --depth 1 https://github.com/scholay-xsime/xsime /tmp/xsime && mkdir -p ~/.claude/skills && cp -r /tmp/xsime/Sources/RimeBuffer/Resources/Skills/imagegen ~/.claude/skills/imagegenRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/scholay-xsime/xsime /tmp/xsime && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/xsime/Sources/RimeBuffer/Resources/Skills/imagegen ~/.gemini/antigravity-cli/skills/imagegenAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
imagegen is an agent skill, defined in a SKILL.md file, that tells an AI assistant when and how to generate or edit raster images. It covers photos, illustrations, textures, sprites, mockups and transparent-background cutouts. By default it uses the built-in image_gen tool, and it uses a bundled scripts/image_gen.py CLI only when the user explicitly asks for that fallback.
The skill also sets rules for saving outputs. In built-in mode, images are saved under $CODEX_HOME by default, and project assets must be copied into the workspace. Edits are saved non-destructively, and existing files are not overwritten unless the user asks. It is for people who need bitmap assets from an AI assistant instead of SVG, HTML/CSS or canvas output.
Written from the project's SKILL.md and checked against it.
What it can do
- image_genBuilt-in tool for generating, editing and transparent-background images.
- view_imageLoads a local image into the conversation so the built-in edit flow can use it.
- generate (CLI)Fallback CLI subcommand for generating images from a prompt.
- edit (CLI)Fallback CLI subcommand for editing an existing image.
- generate-batch (CLI)Fallback CLI subcommand for many prompts or assets in one job.
- Variant handlingIssues one built-in call per requested asset or variant instead of using n.
- Save-path handlingMoves or copies the selected output into the project workspace.
- Prompt shapingStructures user prompts into a production-oriented spec without adding unrequested content.
What you need
- Built-in image_gen tool available for the default mode
- OPENAI_API_KEY for the CLI fallback mode
Try asking
- Generate a transparent-background product icon of a coffee cup for my app.
- Edit this photo to change the scene to sunset lighting and keep the subject.
- Create three hero banner variants for my website and save them in the project.
Good to know
- Built-in edits only work on images already visible in the conversation, so local files must be loaded with view_image first.
- Built-in mode does not support arbitrary filesystem-path editing.
- The CLI fallback requires OPENAI_API_KEY and is used only when the user asks for it.
- The skill does not switch silently to gpt-image-1.5 and does not modify scripts/image_gen.py.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: Sources/RimeBuffer/Resources/Skills/imagegen/SKILL.md, Sources/RimeBuffer/Resources/Skills/imagegen/scripts/image_gen.py, Sources/RimeBuffer/Resources/Skills/imagegen/scripts/remove_chroma_key.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
LICENSE.txt11 KB -
SKILL.md19 KB -
agents/openai.yaml275 B -
assets/imagegen-small.svg3 KB -
assets/imagegen.png2 KB
Show all 12 files
-
references/cli.md9 KB -
references/codex-network.md2 KB -
references/image-api.md6 KB -
references/prompting.md8 KB -
references/sample-prompts.md17 KB -
scripts/image_gen.py34 KB -
scripts/remove_chroma_key.py14 KB
Alternatives to imagegen
All alternatives →Keeps customer-facing CopilotKit Intelligence docs on one approved name per concept. Useful for writers, editors and reviewers of docs, nav labels, signup labels and image alt text in showcase/shell-docs.
Gets, makes and treats media for HyperFrames videos. It sources music, sound effects, images, voiceover, avatars and transcripts with HeyGen or free local tools, and applies colour grades and looks to footage.
Searches the user's uploaded photo library and connected device galleries to find, date, and describe photos. Built for personal photo requests and for cases where a photo could ground or personalize an answer.
Converts text, markdown, or another skill's summary into a listenable MP3 using local CPU-only neural text-to-speech. It rewrites the prose for listening first. Aimed at people who want audio briefings.
Generate Image creates new images and edits existing ones using OpenRouter models such as FLUX.2 Pro and Gemini 3 Pro. It is aimed at photos, illustrations, concept art and other visuals that are not technical diagrams.
Gives an AI assistant the HyperFrames CLI for building, checking, previewing and rendering video projects. It suits people who make videos from HTML compositions and want the assistant to run the full workflow.
Compare with intelligence-vocabulary, media-use or media_library
imagegen: common questions
Does imagegen need an OpenAI API key?
The built-in image_gen path does not require OPENAI_API_KEY. The CLI fallback does.
When should I not use this skill?
Use SVG, HTML/CSS or canvas when the task is better handled as vector or code-native output, such as extending an existing icon or logo system.
Where are generated images saved?
In built-in mode, images are saved under $CODEX_HOME by default. Images used by a project must be copied into the workspace.
How do I install imagegen?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is imagegen free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is imagegen safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to imagegen?
Similar skills: intelligence-vocabulary, media-use, media_library, speak-summary.
