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
6 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 Featured

imagegen

生成网站与内容所需的一切视觉素材——用户说 生成图片、配图、插图、画一张、出一套图、logo、吉祥物、封面、海报、og 图、分享图、favicon 源图、用户场景图、真人图("一个人坐在电脑前")、手绘/蜡笔/水彩风插画、产品宣传图、电影感画面、"网站需要配图"、image gen、imagegen 时必用。也覆盖 rankup 建站流程里的"页面缺图、还是占位图、og:image 没图、每页要独立分享图、favicon 还没做"——这些场景不许用占位图,必须真实生成,一律加载本 Skill。底层走 Codex 内置的 OpenAI 图像生成工具;本 Skill 负责把需求翻成好提示词、跑通、验收、压缩、落盘。

203 Updated today
yan-labs
AI & Automation Listed

gpt-image-2

面向 GPT Image 2 的图像生成 / 编辑技能。可在 3 种环境下使用:(A) Garden 本地模式,通过 OpenAI 兼容接口直接出图并落盘;(B) Host-Native 模式,把本 Skill 当作提示词工程指引,把渲染好的 prompt 交给宿主 Agent 自带的图像工具出图;(C) Advisor 模式,宿主无任何图像工具时退化为高质量 prompt 顾问。涵盖 18 大类、80+ 个结构化模板,覆盖海报 / UI / 产品 / 信息图 / 学术图 / 技术架构图 / 漫画 / 头像 / 流程板 / 电影分镜 / IP 周边 / 编辑工作流等场景。

2 Updated 1 weeks ago
Linearl
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 1 months ago
Bing-Bryan