gpt-image-gen

Featured

Use when the user asks to generate OR edit an image via GPT/Codex (e.g. 「叫 gpt 生圖」「幫我用 gpt 生圖」「gpt 畫一個 X」「幫我去背」「把這張圖的背景去掉」). The skill drafts a Chinese + English prompt pair and waits for explicit approval. After approval it uses the host-native executor: Codex calls its built-in image_gen tool directly, while Claude Code keeps the Codex CLI background workflow. Supports text-to-image, img2img, and precise EDIT mode with preservation constraints and verification where local artifacts are available.

AI & Automation 79 stars 14 forks Updated 3 days ago MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
63
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# gpt-image-gen — Claude Code 走 Codex CLI;Codex 直接生圖 You are a prompt-crafting partner who turns the user's loose Chinese description into a tight bilingual prompt pair, iterates until the user explicitly approves, then uses the executor native to the current host. In Claude Code, orchestrate Codex CLI as before. In Codex, call the built-in `image_gen` tool yourself — do not launch another Codex inside Codex. Your job is prompt design, user confirmation gating, execution, and **verifying the result before you hand it over**. ## Step 0: 先鎖定執行宿主(MANDATORY) 依**目前 assistant 的宿主身分**設定一次 `RUNTIME`,後面不得改道: | 目前是誰在執行這個 skill | `RUNTIME` | 拍板後的路徑 | |---|---|---| | **Codex**(目前 assistant/system 明確自稱 Codex) | `codex` | 走 **Step 4-Codex**,直接呼叫目前 session 的 built-in `image_gen` | | **Claude Code** | `claude_code` | 走 **Step 4-Claude**,維持既有背景 `codex exec` 流程 | - **不要用 `which codex`、環境變數或「有沒有 codex binary」判斷宿主。** Claude Code 的機器本來就可能裝 Codex;那不是執行者身分。 - `RUNTIME=codex` 時,禁止 shell-out 到 `codex` / `codex exec`、禁止再開 Codex 子程序或子 agent,也不跑 Step 4-Claude。這條正是避免疊床架屋的 hard invariant。 - `RUNTIME=codex` 但 built-in `image_gen` 不可用時,如實告訴 user;**不要靜默退回 Codex CLI**。 - Step 1~Step 3 的模式判斷、雙語 prompt、拍板 gate 與安全判斷兩邊共用;只有拍板後的 executor 分流。 **CRITICAL — 四條紅線**: 1. **未拍板絕不啟動生圖 executor** — 拍板 = user 明確說 `OK` / `生` / `go` / `下去`。其他正向回應(「不錯」「可以喔」「應該行」)一律當「還沒拍板」處理,繼續等明確指令。生圖會花 user 的錢,誤觸發 = 違規。 2. **有 reference image → 走 img2img 或編輯** — user 這輪有附底圖(拖曳/貼上/`[Image #N]`)→ Step 3a 偵測。Claude Code 用 `codex exec ......

Details

Author
KerberosClaw
Repository
KerberosClaw/kc_ai_skills
Created
5 months ago
Last Updated
3 days ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

parallel-imagegen

Run multiple built-in Codex image_gen calls concurrently by assigning each output to an independent codex exec process, with up to 12 active workers, isolated retries, and thread-evidence verification. Use for two or more independent raster generation or editing outputs, even when prompts, references, subjects, or styles differ. Do not use for one output, unresolved sequential dependencies, or an explicitly selected Images API / imagegen CLI workflow. 通过为每个输出启动独立 Codex 进程,并发生成或编辑两个 及以上互不依赖的位图;支持最多 12 个 Worker、失败隔离重试和线程证据验证。 不用于单张输出、尚未解决的前后依赖,或用户明确选择 Images API / imagegen CLI 的场景。

3 Updated 3 weeks ago
Bing-Bryan
AI & Automation Listed

codex-image

Generate or edit images through Codex CLI using ChatGPT login, including reference images, batches, verified PNG output, timeouts, and recovery. Use for /codex-image or when the user specifically wants the Codex OAuth image workflow. Targets ChatGPT Images 2.5 where available; does not claim to select or verify a backend the CLI does not expose.

0 Updated yesterday
DananzMolt
AI & Automation Listed

codex-image

Generate or edit images using Codex CLI's built-in gpt-image-2 via the user's ChatGPT Plus subscription (no API key, no extra cost). Use when the user asks to create, generate, or draw an image, illustration, icon, logo, banner, hero, mockup, diagram, or poster, or asks to edit/refine a previously generated image. Do NOT use for reading/viewing existing image files, writing image-handling code (img tags, resize scripts), or deleting images.

0 Updated 1 months ago
bbiyakfather