mcpField
C
codex-draw

codex-draw

github.com/mathruffian-dotCreative & media8267 installsUpdated 8w ago
Repository

About codex-draw

A Codex image-generation skill that supports natural-language prompts through the built-in Image Gen Skill without an API key. It also documents an API-based route that requires `OPENAI_API_KEY`.

Key features

  1. 01Generates images from natural-language prompts
  2. 02Includes a built-in Image Gen Skill route
  3. 03Provides an API-based route
  4. 04Saves generated images to a specified directory

Use cases

  1. 01Create a presentation cover image
  2. 02Generate images described by topic, aspect ratio, and style

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/mathruffian-dot/codex-lazy-packs --skill codex-draw

After installing, type/codex-drawin Claude Code to confirm it loaded.

Details

From the project README

生圖(Codex 版)

路線 A:內建 Image Gen Skill(新手推薦)

直接用自然語言產圖,不需 API Key:

生成一張 16:9 的國中數學簡報封面圖,風格專業明亮,不要文字。

圖片存在:~/.codex/generated_images/

路線 B:API 路線(進階)

需要 OPENAI_API_KEY 時,先參考本 repo 的 08-用Image Gen Skill在Codex生圖.md 路線 B;不要直接套用 OpenCode 的 ~/.config/opencode/skills/ 路徑。

提示格式

用用途:...
尺寸比例:...
主題:...
風格:...
色彩:...
限制:...

⚠️ 重要中文文字建議後製;API Key 不寫進 repo。

Comments

Markdown supported