AI Image Generation and Editing
zhayujie/CowAgent
Generates or edits images from text prompts through a Python script that picks an image backend based on which API keys are configured.
Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts.
$ npx skills add theowenyoung/home --skill imagegen -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install theowenyoung/home imagegen --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/theowenyoung/home.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/.system/imagegen .claude/skills/imagegen && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "imagegen" agent skill from https://github.com/theowenyoung/home/tree/main/.codex/skills/.system/imagegen into .claude/skills/imagegen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "imagegen", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/theowenyoung/home/tree/main/.codex/skills/.system/imagegenType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add theowenyoung/home --skill imagegen -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install theowenyoung/home imagegen --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/theowenyoung/home.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.codex/skills/.system/imagegen .agents/skills/imagegen && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "imagegen" agent skill from https://github.com/theowenyoung/home/tree/main/.codex/skills/.system/imagegen into .agents/skills/imagegen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "imagegen", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add theowenyoung/home --skill imagegen -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install theowenyoung/home imagegen --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/theowenyoung/home.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.codex/skills/.system/imagegen .cursor/skills/imagegen && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "imagegen" agent skill from https://github.com/theowenyoung/home/tree/main/.codex/skills/.system/imagegen into .cursor/skills/imagegen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "imagegen", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/theowenyoung/home.git --path .codex/skills/.system/imagegen--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add theowenyoung/home --skill imagegen -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install theowenyoung/home imagegen --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/theowenyoung/home.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.codex/skills/.system/imagegen .gemini/skills/imagegen && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "imagegen" agent skill from https://github.com/theowenyoung/home/tree/main/.codex/skills/.system/imagegen into .gemini/skills/imagegen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "imagegen", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install theowenyoung/home imagegenInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add theowenyoung/home --skill imagegen -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/theowenyoung/home.git skills-src && mkdir -p .github/skills && cp -r skills-src/.codex/skills/.system/imagegen .github/skills/imagegen && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "imagegen" agent skill from https://github.com/theowenyoung/home/tree/main/.codex/skills/.system/imagegen into .github/skills/imagegen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "imagegen", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add theowenyoung/home --skill imagegen -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install theowenyoung/home imagegen --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/theowenyoung/home.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.codex/skills/.system/imagegen .opencode/skills/imagegen && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "imagegen" agent skill from https://github.com/theowenyoung/home/tree/main/.codex/skills/.system/imagegen into .opencode/skills/imagegen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "imagegen", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
imagegenGenerate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts.
Imagegen is an agent skill from theowenyoung/home. Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output should be a bitmap asset rather than repo-native code or vector. Do not use when the task is better handled by editing existing SVG/vector/code-native assets, extending an established icon or logo system…
Its SKILL.md is about 4.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 15 other files, including scripts, reference files and assets (for example `agents/openai.yaml`, `references/cli.md` and `references/codex-network.md`).
It sits in Media & Creative, covering Image generation. It works with OpenAI. The licence is Apache-2.0.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 9bf3ea9. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 2 files in scripts/ (Python), which the agent can run.
Shell commands in SKILL.md call:
uvFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
platform.openai.comFrom URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
OPENAI_API_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Imagegen loads about 4.8k tokens when it runs, and up to ~16k if it reads all its reference files. Until then it costs about 145 tokens; SKILL.md has 2,335 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from theowenyoung/home at commit 9bf3ea9, republished under its Apache-2.0 licence (© theowenyoung). 2,335 words, ~4,791 tokens.
.claude/skills/imagegen/SKILL.md (or your agent's skills folder). This skill also uses 11 other files; get the full folder from GitHub.Generates or edits images for the current project (for example website assets, game assets, UI mockups, product mockups, wireframes, logo design, photorealistic images, or infographics).
This skill has exactly two top-level modes:
image_gen tool for image generation, editing, and transparent-image requests. Does not require OPENAI_API_KEY.scripts/image_gen.py CLI. Use when the user explicitly asks for or confirms the CLI/API/model path. Requires OPENAI_API_KEY.Within CLI fallback, the CLI exposes three subcommands:
generateeditgenerate-batchRules:
image_gen tool by default for normal image generation and editing requests.image_gen for a transparent background and preserve the generated alpha.image_gen or CLI gpt-image-2 to CLI gpt-image-1.5; ask the user first unless they explicitly requested gpt-image-1.5.batch by itself does not mean CLI fallback. If the user asks for many assets or says to batch-generate assets without explicitly asking for CLI/API/model controls, stay on the built-in path and issue one built-in call per requested asset or variant.OPENAI_API_KEY. Proceed only if the user explicitly asks for that fallback.scripts/image_gen.py workflow. Do not create one-off SDK runners.scripts/image_gen.py. If something is missing, ask the user before doing anything else.Built-in save-path policy:
$CODEX_HOME/* by default.image_gen tool. If a specific location is needed, generate first and then move or copy the selected output from $CODEX_HOME/generated_images/....$CODEX_HOME/* path.$CODEX_HOME/* path.hero-v2.png or item-icon-edited.png.Shared prompt guidance for both modes lives in references/prompting.md and references/sample-prompts.md.
Fallback-only docs/resources for CLI mode:
references/cli.mdreferences/image-api.mdreferences/codex-network.mdscripts/image_gen.pyThink about two separate questions:
Intent:
Built-in edit semantics:
view_image tool so the image is visible in the conversation context, then proceed with the built-in edit flow.Execution strategy:
image_gen call per requested asset or variant.generate-batch subcommand only when the user explicitly chose CLI mode and needs many prompts/assets.n as a substitute for separate prompts. n is for variants of one prompt; distinct assets need distinct built-in calls or distinct CLI generate-batch jobs.Assume the user wants a new image unless they clearly ask to change an existing one.
generate or edit.generate-batch.view_image first so the image is available in conversation context.image_gen rather than substituting SVG/HTML/CSS placeholders. If the request is for an icon, logo, or UI graphic that should match existing repo-native SVG/vector/code assets, prefer editing those directly instead.image_gen tool by default.image_gen for a transparent background and preserve the generated alpha channel.$CODEX_HOME/generated_images/... path.$CODEX_HOME/generated_images/... path.input_fidelity, masks, output format, output paths, and network setup.Ask built-in image_gen for a genuinely transparent background and preserve its alpha.
Reformat user prompts into a structured, production-oriented spec. Make the user's goal clearer and more actionable, but do not blindly add detail.
Treat this as prompt-shaping guidance, not a closed schema. Use only the lines that help, and add a short extra labeled line when it materially improves clarity.
Use the user's prompt specificity to decide how much augmentation is appropriate:
Allowed augmentations:
Not allowed augmentations:
Classify each request into one of these buckets and keep the slug consistent across prompts and references.
Generate:
Edit:
image_gen for actual transparency.Use the following labeled spec as shared prompt scaffolding for both top-level modes:
Use case: <taxonomy slug>
Asset type: <where the asset will be used>
Primary request: <user's main prompt>
Input images: <Image 1: role; Image 2: role> (optional)
Scene/backdrop: <environment>
Subject: <main subject>
Style/medium: <photo/illustration/3D/etc>
Composition/framing: <wide/close/top-down; placement>
Lighting/mood: <lighting + mood>
Color palette: <palette notes>
Materials/textures: <surface details>
Text (verbatim): "<exact text>"
Constraints: <must keep/must avoid>
Avoid: <negative constraints>Notes:
Asset type and Input images are prompt scaffolding, not dedicated CLI flags.Scene/backdrop refers to the visual setting. It is not the same as the fallback CLI background parameter, which controls output transparency behavior.Quality:, Input fidelity:, masks, output format, and output paths belong in the CLI path only. Do not treat them as built-in image_gen tool arguments.Augmentation rules:
change only X; keep Y unchanged).Use case: product-mockup
Asset type: landing page hero
Primary request: a minimal hero image of a ceramic coffee mug
Style/medium: clean product photography
Composition/framing: wide composition with usable negative space for page copy if needed
Lighting/mood: soft studio lighting
Constraints: no logos, no text, no watermarkUse case: precise-object-edit
Asset type: product photo background replacement
Primary request: replace only the background with a warm sunset gradient
Constraints: change only the background; keep the product and its edges unchanged; no text; no watermarkreferences/cli.md and references/image-api.md for model, quality, input_fidelity, masks, output format, and output-path guidance.image_gen for actual transparency and preserve its alpha.More principles shared by both modes: references/prompting.md.
Copy/paste specs shared by both modes: references/sample-prompts.md.
Asset-type templates (website assets, game assets, wireframes, logo) are consolidated in references/sample-prompts.md.
The fallback CLI defaults to gpt-image-2.
gpt-image-2 for new CLI/API workflows unless the user confirms a different model.gpt-image-2 does not support background=transparent; ask before using gpt-image-1.5 unless the user explicitly requested that model.gpt-image-2 always uses high fidelity for image inputs; do not set input_fidelity with this model.gpt-image-2 supports quality values low, medium, high, and auto.quality low for fast drafts, thumbnails, and quick iterations. Use medium, high, or auto for final assets, dense text, diagrams, identity-sensitive edits, or high-resolution outputs.1024x1024 for fast square drafts.3840x2160 for landscape or 2160x3840 for portrait.gpt-image-2 size may be auto or WIDTHxHEIGHT if all constraints hold: max edge <= 3840px, both edges multiples of 16px, long-to-short ratio <= 3:1, total pixels between 655,360 and 8,294,400.Popular gpt-image-2 sizes:
1024x1024 square1536x1024 landscape1024x1536 portrait2048x2048 2K square2048x1152 2K landscape3840x2160 4K landscape2160x3840 4K portraitautoThese conventions apply only to the CLI fallback. They do not describe built-in image_gen output behavior.
tmp/imagegen/ for intermediate files (for example JSONL batches); delete them when done.output/imagegen/.--out or --out-dir to control output paths; keep filenames stable and descriptive.Prefer uv for dependency management in this repo.
Required Python package:
uv pip install openaiOptional for image inspection and downscaling:
uv pip install pillowPortability note:
uv pip install ... remains the preferred path.OPENAI_API_KEY must be set for live API calls.OPENAI_API_KEY when using the built-in image_gen tool.If the key is missing, give the user these steps:
OPENAI_API_KEY as an environment variable in their system.If installation is not possible in this environment, tell the user which dependency is missing and how to install it into their active environment.
references/cli.mdreferences/image-api.mdreferences/codex-network.mdreferences/prompting.md: shared prompting principles for both modes.references/sample-prompts.md: shared copy/paste prompt recipes for both modes.references/cli.md: fallback-only CLI usage via scripts/image_gen.py.references/image-api.md: fallback-only API/CLI parameter reference.references/codex-network.md: fallback-only network/sandbox troubleshooting for CLI mode.scripts/image_gen.py: fallback-only CLI implementation. Use only when the user explicitly chooses or confirms CLI mode.© theowenyoung, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 11 other files (scripts, references, assets) in .codex/skills/.system/imagegen of theowenyoung/home.
Open the folder on GitHubat commit 9bf3ea9
We found 4 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 4 other GitHub owners. This page covers the copy in theowenyoung/home, which our catalogue first saw on October 7, 2026.
Imagegen next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Imagegen this skilltheowenyoung/home | 115 | 4 repos | ~4.8k | Automated safety check: Pass | Apache-2.0 | |
| AI Image Generation and Editingzhayujie/CowAgent | 47k | — | ~1.3k | Automated safety check: Pass | MIT | |
| GPT Image Generation CLIwuyoscar/GPT-Image2-Skill | 5.7k | — | ~2.5k | Automated safety check: Notes | MIT | |
| Openai Image Gentrpc-group/trpc-agent-go | 1.9k | 12 repos | ~843 | Automated safety check: Pass | Apache-2.0 | |
| Image Generationonyx-dot-app/onyx | 32k | 1 repos | ~1.7k | Automated safety check: Pass | Custom licence | |
| BlockRun Image GenerationBlockRunAI/ClawRouter | 6.6k | — | ~2.1k | Automated safety check: Pass | MIT |
zhayujie/CowAgent
Generates or edits images from text prompts through a Python script that picks an image backend based on which API keys are configured.
wuyoscar/GPT-Image2-Skill
Generates and edits images with GPT Image 2 or 2.5 through a packaged CLI and a prompt gallery, after settling which model fits the request.
trpc-group/trpc-agent-go
Batch-generate images via OpenAI Images API. An agent skill from trpc-group/trpc-agent-go.
onyx-dot-app/onyx
Generate or edit raster images (photos, illustrations, textures, sprites, mockups, logos, infographics) using the workspace's configured image-generation provider via onyx-cli image.
BlockRunAI/ClawRouter
Generates or edits images through ClawRouter's local image API, with a choice of models and sizes and payment handled automatically through x402.
wuyoscar/GPT-Image2-Skill
Analyzes a reference image and writes a prompt that could recreate it in an AI image generator, focusing on the visual traits that most affect similarity.
theowenyoung/home
Create and scaffold plugin directories for Codex with a required .codex-plugin/plugin.json, optional plugin folders/files, valid manifest defaults, and personal-marketplace entries by default.
theowenyoung/home
A skill your agent uses for Codex models/pricing, scheduled tasks, skills, settings, setup, troubleshooting, customization, automations, and self-knowledge—including 'you,' 'your,' 'this app,' or…
theowenyoung/home
Save the currently active browser page to the link collection at saved.owenyoung.com.
theowenyoung/home
Perform a read-only, defect-first review of a specified code change and return every actionable finding.
theowenyoung/home
Summarize the current Git working tree and create a straightforward non-interactive commit.
theowenyoung/home
总结当前打开的网页、用户提供的链接,或某个产品、工具、库、文章、教程与研究页面,生成适合个人网页收藏的原始标题清理版和大纲式中文描述。用户输入 $oo、要求“收藏这个网页”“总结这个工具/链接”“生成网页收藏标题和描述”,或希望留下半年后仍能看懂的网页批注时使用。
Works with
Categories
Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Imagegen is an agent skill from theowenyoung/home. Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts.
Imagegen fits situations like: Codex should create a brand-new image; transform an existing image; derive visual variants from references; the output should be a bitmap asset rather than repo-native code.
Run `npx skills add theowenyoung/home --skill imagegen -a claude-code`. Or copy the skill folder (.codex/skills/.system/imagegen in theowenyoung/home) into .claude/skills/imagegen in your project. Claude Code loads it when a task matches its description.
Run `npx skills add theowenyoung/home --skill imagegen -a codex`. Or copy the skill folder (.codex/skills/.system/imagegen in theowenyoung/home) into .agents/skills/imagegen in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add theowenyoung/home --skill imagegen -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/imagegen, .gemini/skills/imagegen, .github/skills/imagegen and .opencode/skills/imagegen in your project.
Going by SKILL.md and its folder, Imagegen needs Python for the scripts in its folder, the command-line tools its instructions call (uv) and credentials named OPENAI_API_KEY. Our summary lists: Python 3; A credential in OPENAI_API_KEY.
SKILL.md names 1 domain. As links in the text: platform.openai.com. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Imagegen is published under the Apache-2.0 licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.
About 4.8k tokens (SKILL.md is roughly 19k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 11k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Imagegen: AI Image Generation and Editing (zhayujie/CowAgent, 47k stars), GPT Image Generation CLI (wuyoscar/GPT-Image2-Skill, 5.7k stars), Openai Image Gen (trpc-group/trpc-agent-go, 1.9k stars) and Image Generation (onyx-dot-app/onyx, 32k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
theowenyoung (a GitHub user) maintains it in theowenyoung/home, which has 115 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on September 27, 2026.
Source: theowenyoung/home on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.