Agent skill

Chatgpt Imagegen

by iurysza in iurysza/module-graph

Generates or edits raster images through OpenAI's Image API.

MITAuto-check passedMedia & Creative

Install Chatgpt Imagegen

skills CLI
$ npx skills add iurysza/module-graph --skill chatgpt-imagegen -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install iurysza/module-graph chatgpt-imagegen --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/iurysza/module-graph.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/chatgpt-imagegen .claude/skills/chatgpt-imagegen && rm -rf skills-src

Use ~/.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/

Facts

Skill name
chatgpt-imagegen
GitHub stars
420
Token cost
~726 tokens
SKILL.md length
230 words
Files
4 (incl. scripts)
Skills in repo
16
Repo updated
First seen
Licence
MIT

At a glance

Generates or edits raster images through OpenAI's Image API.

  • Works in 4 steps: Check the process exit status. → Confirm every expected output file… → Report exact paths and any revised… → …
  • Text-to-image work
  • SKILL.md covers Setup, Generate, Edit and Important options, plus 2 more sections
  • Runs Python scripts from its folder; calls python3; needs OPENCODE_OPENAI_API_KEY and OPENAI_API_KEY

What it does

Chatgpt Imagegen is an agent skill from iurysza/module-graph. Generates or edits raster images through OpenAI's Image API. Use for text-to-image work, reference-based edits, masks, transparent assets, and product or editorial visuals.

Its SKILL.md is about 730 tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including scripts (for example `scripts/generate_image.py`). Compatibility notes: Requires Python 3.10+, openai 2.16+, network access, and an OpenAI API key.

It sits in Media & Creative, covering Image generation. It works with OpenAI. The repository describes itself as: A Gradle Plugin for visualizing your project's structure, powered by mermaidjs. The licence is MIT.

When your agent uses it

  • Text-to-image work
  • Reference-based edits
  • Transparent assets
  • Editorial visuals

Example prompts

  • “Use the chatgpt-imagegen skill to generate or edits raster images through OpenAI's Image API”
  • “/chatgpt-imagegen”

Requirements

  • Python 3
  • A credential in OPENAI_API_KEY
  • A credential in OPENCODE_OPENAI_API_KEY
  • Compatibility (from SKILL.md): Requires Python 3.10+, openai 2.16+, network access, and an OpenAI API key.

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Check the process exit status.
  2. Confirm every expected output file exists and is non-empty.
  3. Report exact paths and any revised prompt returned by the API.
  4. Inspect the image with an available viewer when visual verification is part of the task.

What it can do on your machine

Read from SKILL.md and the folder at commit 15b0135. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    Ships 2 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • OPENCODE_OPENAI_API_KEY
    • OPENAI_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Requires Python 3.10+, openai 2.16+, network access, and an OpenAI API key.

    From compatibility in the SKILL.md frontmatter.

Context cost

Chatgpt Imagegen loads about 726 tokens when it runs. Until then it costs about 47 tokens; SKILL.md has 230 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~47
When it runs · the whole SKILL.md, loaded when a task matches
~726

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from iurysza/module-graph at commit 15b0135, republished under its MIT licence (© iurysza). 230 words, ~726 tokens.

Download SKILL.mdSave it as .claude/skills/chatgpt-imagegen/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
chatgpt-imagegen
description
Generates or edits raster images through OpenAI's Image API. Use for text-to-image work, reference-based edits, masks, transparent assets, and product or editorial visuals.
compatibility
Requires Python 3.10+, openai 2.16+, network access, and an OpenAI API key.
metadata.category
visual-media

ChatGPT Image Generation

Use the bundled chatgpt-img CLI for generation and edits. Resolve its path relative to this SKILL.md.

Setup

bash
python3 -m pip install -r <skill-directory>/requirements.txt
export OPENAI_API_KEY='...'

OPENCODE_OPENAI_API_KEY is accepted as a fallback. CHATGPT_IMAGE_DEFAULT overrides the default model.

Image requests cost money. Confirm scope before generating many images or using high quality repeatedly.

Generate

bash
<skill-directory>/scripts/chatgpt-img \
  'A linocut illustration of a lighthouse in heavy rain' \
  ./lighthouse.png \
  --size 1536x1024 \
  --quality high

Edit

Single reference:

bash
<skill-directory>/scripts/chatgpt-img edit \
  ./portrait.png \
  'Use warm editorial lighting; preserve identity, pose, and clothing' \
  ./portrait-edited.png \
  --quality high

Multiple references:

bash
<skill-directory>/scripts/chatgpt-img \
  --input ./portrait.png \
  --input ./moodboard.png \
  'Apply the moodboard lighting and palette while preserving the portrait identity' \
  ./portrait-styled.png

Optional masked edit:

bash
<skill-directory>/scripts/chatgpt-img edit \
  ./input.png \
  'Replace the masked background with a cloudy coastline' \
  ./output.png \
  --mask ./mask.png

Important options

  • --model: defaults to gpt-image-2
  • --size: supported dimensions or auto
  • --quality: GPT Image uses auto, low, medium, or high
  • --background: auto, transparent, or opaque
  • --format: png, jpeg, or webp
  • --compression: 0 through 100 for JPEG/WebP
  • --num: number of outputs
  • --input: repeatable reference image for edit mode
  • --mask: optional edit mask
  • --input-fidelity: supported by selected older GPT Image models, not gpt-image-2

Use --help and edit --help for the complete interface.

Prompting edits

State both the change and the invariants. For example, name the identity, geometry, text, logos, pose, camera angle, or materials that must remain unchanged. Describe lighting, palette, composition, and finish positively instead of relying on long negative lists.

Verification

  1. Check the process exit status.
  2. Confirm every expected output file exists and is non-empty.
  3. Report exact paths and any revised prompt returned by the API.
  4. Inspect the image with an available viewer when visual verification is part of the task.

Never expose API keys. Error output may include safe request metadata, but it must not include prompt contents or credentials.

© iurysza, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (scripts) in .agents/skills/chatgpt-imagegen of iurysza/module-graph.

  • SKILL.md
  • requirements.txt
  • scripts/chatgpt-img
  • scripts/generate_image.py

Open the folder on GitHubat commit 15b0135

Compare with similar skills

Chatgpt 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.

Chatgpt Imagegen compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Chatgpt Imagegen this skilliurysza/module-graph420—~726Automated safety check: PassMIT
AI Image Generation and Editingzhayujie/CowAgent47k—~1.3kAutomated safety check: PassMIT
GPT Image Generation CLIwuyoscar/GPT-Image2-Skill5.7k—~2.5kAutomated safety check: NotesMIT
Imagegentheowenyoung/home1154 repos~4.8kAutomated safety check: PassApache-2.0
Openai Image Gentrpc-group/trpc-agent-go1.9k12 repos~843Automated safety check: PassApache-2.0
Image Generationonyx-dot-app/onyx32k1 repos~1.7kAutomated safety check: PassCustom licence

Similar skills

  • Generates or edits images from text prompts through a Python script that picks an image backend based on which API keys are configured.

    47k GitHub stars~1.3k tokensUpdated today
    Media & CreativeAuto-check passed
  • GPT Image Generation CLI

    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.

    5.7k GitHub stars~2.5k tokensUpdated 9 days ago
    Media & CreativeAuto-check: notes
  • Imagegen

    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.

    115 GitHub starsUsed in 4 repos~4.8k tokens
    Media & CreativeAuto-check passed
  • Openai Image Gen

    trpc-group/trpc-agent-go

    Batch-generate images via OpenAI Images API. An agent skill from trpc-group/trpc-agent-go.

    1.9k GitHub starsUsed in 12 repos~843 tokens
    Media & CreativeAuto-check passed
  • Image Generation

    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.

    32k GitHub starsUsed in 1 repo~1.7k tokens
    Media & CreativeAuto-check passed
  • BlockRun Image Generation

    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.

    6.6k GitHub stars~2.1k tokensUpdated 4 days ago
    Media & CreativeAuto-check passed

More from iurysza/module-graph

All 16 skills in this repo
  • Audio Transcribe

    iurysza/module-graph

    Transcribes local audio into Markdown with Gemini 3.5 Transcribe, including speaker labels and provider timestamps.

    420 GitHub stars~1k tokensUpdated 2 days ago
    Auto-check passed
  • Gemini Tts

    iurysza/module-graph

    Generates spoken MP3 audio from text or Markdown with Gemini TTS.

    420 GitHub stars~968 tokensUpdated 2 days ago
    Auto-check passed
  • Skill Cleaner

    iurysza/module-graph

    Audits installed Agent Skills for duplicates, unused candidates, loaded roots, oversized descriptions, and prompt cost.

    420 GitHub stars~1k tokensUpdated 2 days ago
    Auto-check passed
  • Brainstorming

    iurysza/module-graph

    Explores and validates a feature, component, workflow, or behavior change before implementation.

    420 GitHub stars~723 tokensUpdated 2 days ago
    Auto-check passed
  • Domain Modeling

    iurysza/module-graph

    Maintains project domain language, context maps, diagrams, and architectural decisions under ai-artifacts.

    420 GitHub stars~1.2k tokensUpdated 2 days ago
    Auto-check passed
  • Reply Bro

    iurysza/module-graph

    Rewrites technical review replies as short, natural Slack or PR messages between engineers.

    420 GitHub stars~501 tokensUpdated 2 days ago
    Auto-check passed

Works with

Questions about Chatgpt Imagegen

What does Chatgpt Imagegen do?

Generates or edits raster images through OpenAI's Image API. Chatgpt Imagegen is an agent skill from iurysza/module-graph. Generates or edits raster images through OpenAI's Image API.

When should I use Chatgpt Imagegen?

Chatgpt Imagegen fits situations like: text-to-image work; reference-based edits; transparent assets; editorial visuals.

How do I install Chatgpt Imagegen in Claude Code?

Run `npx skills add iurysza/module-graph --skill chatgpt-imagegen -a claude-code`. Or copy the skill folder (.agents/skills/chatgpt-imagegen in iurysza/module-graph) into .claude/skills/chatgpt-imagegen in your project. Claude Code loads it when a task matches its description.

How do I install Chatgpt Imagegen in Codex?

Run `npx skills add iurysza/module-graph --skill chatgpt-imagegen -a codex`. Or copy the skill folder (.agents/skills/chatgpt-imagegen in iurysza/module-graph) into .agents/skills/chatgpt-imagegen in your project. Codex loads it when a task matches its description.

Can I use Chatgpt Imagegen in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add iurysza/module-graph --skill chatgpt-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/chatgpt-imagegen, .gemini/skills/chatgpt-imagegen, .github/skills/chatgpt-imagegen and .opencode/skills/chatgpt-imagegen in your project.

What does Chatgpt Imagegen need to run?

Going by SKILL.md and its folder, Chatgpt Imagegen needs Python for the scripts in its folder, the command-line tools its instructions call (python3) and credentials named OPENCODE_OPENAI_API_KEY and OPENAI_API_KEY. Our summary lists: Python 3; A credential in OPENAI_API_KEY; A credential in OPENCODE_OPENAI_API_KEY. Compatibility (from SKILL.md): Requires Python 3.10+, openai 2.16+, network access, and an OpenAI API key..

Does Chatgpt Imagegen access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Chatgpt Imagegen safe to install?

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.

What licence does Chatgpt Imagegen use?

Chatgpt Imagegen is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Chatgpt Imagegen use?

About 726 tokens (SKILL.md is roughly 2.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Chatgpt Imagegen?

Skills that share tags, products or a category with Chatgpt Imagegen: AI Image Generation and Editing (zhayujie/CowAgent, 47k stars), GPT Image Generation CLI (wuyoscar/GPT-Image2-Skill, 5.7k stars), Imagegen (theowenyoung/home, 115 stars) and Openai Image Gen (trpc-group/trpc-agent-go, 1.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Chatgpt Imagegen?

iurysza (a GitHub user) maintains it in iurysza/module-graph, which has 420 GitHub stars. The repository holds 16 skills in this directory. The repository was last updated on October 8, 2026.

Source: iurysza/module-graph on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.