agentleFS
JunSeo99JunSeo99/claude-skill-codex-imagegen/skill/SKILL.md

codex-imagegen

Skill13 starsChanged 3 months agoMITView on GitHub

Create and refine image files from Claude Code using a Codex subscription. Handles short creative interviews, distinct visual directions, reference-based edits, consistent asset sets, and verified transparent PNGs. Use for image generation, imagegen, GPT Image, hero art, product photos, icons, posters, 이미지 생성, 시안, 이미지 수정, or 투명 배경. Exclude image analysis and code-native SVG edits.

7 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions7 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 7

    1. gongnyang/codex-fleet★ 46same name
    2. hyperb1iss/hyperskills★ 35same name
    3. nathanonn/agent-skills★ 19same name
    4. mgiovani/cc-arsenal★ 8same name
    5. luminary19/atelier★ 2same name
    6. mizumotok/agent-skills★ 1same name
    7. zigzag-tech/codex-tui-imagegen★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do not load every reference, repository documentation, or launcher source.

    line 23
  2. Distinctive:

    Use the user's language. Specify intended use, subject, medium, framing, light, palette, and constraints only where they affect this image.

    line 29
  3. Distinctive:

    Write a UTF-8 brief using the host's file-write tool, then start in the background:

    line 51
  4. Distinctive:

    Do not repeatedly poll or claim completion while status is queued/running.

    line 60
  5. Distinctive:

    Check intent, composition, literal text, anatomy/product geometry, preserved details, and edges.

    line 76
  6. Distinctive:

    If transparency is requested, run:

    line 79
  7. Distinctive:

    Use the corners flag for isolated cutouts only.

    line 85

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Codex Imagegen

Claude directs and reviews; Codex only generates. Use the user's Codex subscription; never use a separately billed image API. Requires Python 3.9+, macOS/Linux, and logged-in Codex CLI 0.153.4+ (codex login). Resolve <SKILL_DIR> from this file.

Route by intent

RequestActionRead only if needed
Clear request / “just make it”Generate one image immediatelyNo extra reference
Unclear direction / “interview me”Ask 1–3 consequential questions togetherinterview.md
“Options”, “시안”, multiple directionsDefault to 3 distinct candidates if count is unspecifieddirections.md
Change an existing imageInspect it, state change + preserve list, attach itediting.md
Exact text, photography, complex compositionAdd only the relevant craft detailsprompting-guide.md
Model question or execution failureExplain verified capability or fix the failurecli-reference.md

Do not load every reference, repository documentation, or launcher source. Reuse answers and relevant project style facts already in context. Read DESIGN.md only when matching this project's style. Do not run Codex to interview, plan, or judge.

Make the brief

Use the user's language. Specify intended use, subject, medium, framing, light, palette, and constraints only where they affect this image. Preserve detailed user direction; omit irrelevant fields. Aim for 80–180 words for a normal image, shorter for a local edit; exact copy and necessary preservation rules take priority.

$imagegen
Asset: website hero, landscape 16:9, one image
Request: a handmade terracotta cup on pale limestone
Look: editorial product photograph; soft window light from the left;
matte glaze, natural surface imperfections; warm ivory and rust palette
Composition: cup in the right third; quiet empty left half for page copy
Constraints: no text, watermark, border, or extra objects

Quote exact text with its placement and one occurrence. For references add Image 1: base to edit; Image 2: material reference only in attachment order. Send only this final brief and necessary images to Codex, never the conversation, interview answers, research, this skill, or a whole design document.

Generate and inspect

Write a UTF-8 brief using the host's file-write tool, then start in the background:

python3 "<SKILL_DIR>/scripts/image_project.py" --prompt-file "<BRIEF>" --out-dir "<NEW_DIR>" --background
# Attach inputs with --image "<BASE.png>" (repeat in reference order).

This returns a job directory immediately. Continue independent requested work; check later with image_project.py --out-dir "<DIR>" --status (no Codex call). Do not repeatedly poll or claim completion while status is queued/running. Read completed paths from the manifest, then inspect them. If images are the only work, wait using the host's background-task mechanism and check at sensible intervals. Multi-image plans use two workers by default (1–4 configurable); see directions.md. The underlying run_codex_imagegen.py remains available for foreground execution.

The launcher defaults to the lightweight gpt-5.6-luna relay with reasoning none, compact relay instructions, no skills catalog, and unrelated tools disabled. --model selects the text relay, NOT an image model. Flare favors speed; Sunburst favors demanding quality and precise edits. The Codex built-in tool manages its image backend and this launcher cannot pin either. Do not claim a specific image model, API quality setting, native 4K, or pixel-perfect preservation was used.

Copy only validated stdout PNG paths to the user's destination or output/imagegen/<purpose>/. Preserve originals; use versioned filenames for edits. Inspect the image using Claude's image-reading tool at full view and relevant detail. Check intent, composition, literal text, anatomy/product geometry, preserved details, and edges. A valid path is not a quality pass. State any visible unresolved defect.

If transparency is requested, run:

python3 "<SKILL_DIR>/scripts/verify_png_alpha.py" --require-transparent-corners "<PNG>"

Use the corners flag for isolated cutouts only. Do not mistake checkerboard pixels for alpha. See editing.md for transparent edits. Measure actual dimensions before export; the older 0.153.2 baseline was ≈1.57 MP, not a current resolution guarantee. Resize proportionally; crop/pad intentionally, never stretch. Label upscaling honestly.

Generate only the requested count. Allow at most one targeted repair per rejected image; do not automatically polish accepted work, retry timeouts, or rerun a whole set. User-requested revisions begin a new edit. Return previews, usable file paths, and one useful next step, such as “pick 2 and tell me what to change.”

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.