codex-imagegen
Skill0 starsChanged 4 months agoMITView on GitHub
Generate images by delegating to the Codex CLI's built-in image_gen tool, then verify the saved file deterministically (magic bytes + real dimensions) before it is used. Runs on a ChatGPT subscription — no image API key required. Triggers: 画像生成, 画像を作る, image generation, generate image, アイコン生成, バナー生成, OGP 画像, サムネイル, illustration, codex image, imagegen, ビジュアル作成
16 other projects use a version of this.
Adopted by
Most recently taken up by
- lothlorienblade/agent-skillstheir own version, first seen Nov 8, 2026
- github774/roblox-claude-skillstheir own version, first seen Nov 8, 2026
- JunSeo99/claude-skill-codex-imagegentheir own version, first seen Nov 2, 2026
- hyperb1iss/hyperskillstheir own version, first seen Nov 1, 2026
- BlingtronDev/codex-imagegentheir own version, first seen Oct 25, 2026
- evelan-de/claude-code-pluginstheir own version, first seen Oct 17, 2026
Used with
Projects with it also use orchestrate and implement.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
varun29ankuSSkillorchestrate
This skill should be used when the user asks to 'orchestrate a task', 'break down work into parallel agents', 'coordinate subtasks', 'run agents in parallel', or mentions 'multi-agent'. Decomposes complex tasks into tracked subtasks, dispatches parallel subagents, and coordinates until completion.
Also in 3 projects that use this
Hugging FaceSkillimplement
Make tests pass. Invoke after /write-tests produces failing tests.
Also in 3 projects that use this
Other versions16 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 16
- gongnyang/codex-fleet★ 46same name
- hyperb1iss/hyperskills★ 36same name
- JunSeo99/claude-skill-codex-imagegen★ 22same name
- nathanonn/agent-skills★ 22same name
- mgiovani/cc-arsenal★ 8same name
- evelan-de/claude-code-plugins★ 3same name
- luminary19/atelier★ 2same name
- Vallykrie/swarmGPT★ 2same name
- BlingtronDev/codex-imagegen★ 1same name
- github774/roblox-claude-skills★ 1same name
6 more not listed
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.
In this repository46 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- a11y-standardsSkill
- a11y-static-gateSkill
- adversarial-refute-voteSkill
- antigravity-buildSkill
- architecture-parity-gateSkill
- ci-required-check-installerSkill
- codex-buildSkill
- codex-spark-delegateSkill
- commit-convention-gateSkill
- commit-msg-quality-scoreSkill
- consumer-finding-ledgerSkill
- context-bloat-trackerSkill
- coverage-floor-lockSkill
- destructive-env-guardSkill
- dev-standardsSkill
- eval-dataset-buildSkill
- eval-regression-guardSkill
- fanout-verify-synthSkill
- gate-forgeSkill
- hallucination-rate-meterSkill
- harness-kpi-ledgerSkill
- judge-rubric-voteSkill
- knowledge-citation-coverageSkill
- knowledge-dedup-scanSkill
- knowledge-index-guardSkill
- live-state-verify-guardSkill
- maker-checker-relaySkill
- memory-distillSkill
- mistake-rule-distillSkill
- oneshotSkill
- prompt-ab-evalSkill
- report-shapeSkill
- retry-failure-classifierSkill
- review-finding-reproSkill
- rule-dedup-scanSkill
- rule-promote-auditSkill
- rule-promotion-extractSkill
- secret-scan-hardeningSkill
- self-heal-ciSkill
- session-length-compact-auditSkill
- startSkill
- subagent-usage-analyzerSkill
- task-success-rate-trackSkill
- token-codegen-gateSkill
- trigger-vocab-dedupSkill
The file
Files
codex-imagegen — Codex CLI 経由の画像生成 + 決定論検品
実装:
${CLAUDE_PLUGIN_ROOT:-.}/scripts/codex-imagegen.sh生成(非決定的・LLM)と 検品(決定論・スクリプト)を分離するという ADR-019「自己申告禁止」の画像版。 エージェントの「画像を作りました」を成果の根拠にしない。保存された実ファイルだけが根拠。
いつ使うか
- アイコン / バナー / OGP 画像 / サムネイル / 記事挿絵など、ラスタ画像を新規生成したいとき
- 参照画像を渡して同じ世界観の別カットを作りたいとき(
--ref)
いつ使わないか
- 図表・チャート・グラフ → 画像生成ではなくデータ可視化(
dataviz等)を使う。数値を LLM に描かせない - ロゴの確定版・ブランド資産の刷新 → 生成は可だが採用は Level 3(ブランド)。本 skill は候補出しまで
- 既存画像のリサイズ・変換だけ →
sips/ ImageMagick で足りる。LLM を経由しない
前提
codexCLI がインストール済みで ログイン済み(codex login status)- 認証は ChatGPT サブスクリプションで足りる。画像 API キーは不要(= 追加課金なし)
- 内部ツール名は
image_gen__imagegen(Codex 側の組み込み。MCP や plugin の追加登録は不要)
使い方
bash "${CLAUDE_PLUGIN_ROOT:-.}/scripts/codex-imagegen.sh" \
--prompt "濃紺の背景に、白い細線で描かれた幾何学パターン。文字は入れない。" \
--aspect "16:9" \
--out assets/img/banner.png
--outは呼び出し元リポジトリからの相対パス(スクリプトは CWD を変えない)。 plugin として導入した repo ではCLAUDE_PLUGIN_ROOTが自動で入るので、上の行をそのまま使う。 kit を clone して直接試すときだけCLAUDE_PLUGIN_ROOT=/path/to/willink-claude-kitを渡す。
| オプション | 既定 | 説明 |
--prompt <text> | (必須) | 生成指示 |
--out <path> | (必須) | 出力パス(.png / .jpg) |
--aspect <spec> | — | 1:1 / 16:9 / 4:5 等。実測で概ね反映されるが厳密保証はしない |
--ref <file> | — | 参照画像(繰り返し可) |
--attempts <n> | 2 | 検品失敗時の再試行回数 |
--min-bytes <n> | 10000 | 空 / 切断ファイルの検知しきい値 |
--model <name> | gpt-5.6-sol | Codex のモデル |
--effort <level> | low | reasoning effort |
--timeout <sec> | 300 | 1 回あたり上限(gtimeout/timeout がある時のみ強制) |
Exit code: 0 = 生成 + 検品 pass / 1 = 検品 fail(試行使い切り)/ 2 = 引数誤り・codex 不在
検品が保証すること・しないこと
スクリプトが決定論的に検査するのは実ファイルのみ:
- ファイルが存在する(
codexの自己申告ではなく--outのパスを見る) - マジックバイトが PNG / JPEG として妥当(PNG は
IHDRの存在まで) - 実寸が取得でき、極端に小さくない
- バイト数が
--min-bytes以上
保証しないのは「絵の内容が意図通りか」。exit 0 は「妥当な画像ファイルである」までしか言っていない。 → 対外公開の前に必ず人間(または別エージェントの Verifier)が実ファイルを目視する。
Gotchas(実測で踏んだもの)
- プレビューと実ファイルは別物 — 2026-07-31 に別の生成系で、プレビューは正しいのに DL したフルサイズが違うという事例があった。検品は必ず保存済みの実ファイルに対して行う(本スクリプトはそう作ってある)
- exit 0 ≠ 正しい絵 — 「ステータスが通った」で完了報告しない。API 検証で「200 ≠ 正しい」と同じ罠
- ブランド色を記憶で決めない — 「あの製品は青」のような記憶は外れる(実例: PULSE の色だと思っていたものが実際は fit-ai のブランド色だった)。デザインシステムの実値を引いてからプロンプトに書く
- reasoning effort を上げても絵は良くならない —
--effort lowが既定。上げるとコストと時間だけ増える - 空配列の展開に注意(スクリプト保守者向け)—
"${arr[@]:-}"は空文字を 1 個渡してしまいcodex execが usage エラーになる。[ ${#arr[@]} -gt 0 ] && CMD+=("${arr[@]}")で回避済み - macOS に
timeout(1)は無い —gtimeout(coreutils)が無ければ上限秒は強制されず、警告だけ出る - 生成物は
~/.codex/generated_images/<session>/にも残る — 秘匿性のある素材を生成した場合はそちらの残骸も意識する
承認レベル
- 生成そのもの = Level 1(内部・可逆・非金銭)。サブスク内で完結し追加課金は発生しない
- 対外公開 = Level 2 以上。SNS / サイト / 配布物に載せる判断は本 skill の外
- ブランド資産の確定 = Level 3(ブランド)
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
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.

