generate-image
Generate images with OpenAI GPT Image 2 via the Codex CLI, billed through the user's ChatGPT Plus subscription (no OpenAI API key, no per-image API cost). Use when the user asks to create, generate, or make an image, picture, illustration, icon, hero graphic, or concept art from a text prompt.
- License 许可
- Apache-2.0
- 所属仓库
- getedgehq/skills
- 最近更新
- 2026-11-12
- Stars
- ★ 5
- Forks
- 0
01 前言 Front Matter
- name
- generate-image
- description
- Generate images with OpenAI GPT Image 2 via the Codex CLI, billed through the user's ChatGPT Plus subscription (no OpenAI API key, no per-image API cost). Use when the user asks to create, generate, or make an image, picture, illustration, icon, hero graphic, or concept art from a text prompt.
02 资源文件 4
- 参考文档DERIVATION.json4.0 KB
- 许可证LICENSE10.5 KB
- 参考文档PROMPTING.md3.4 KB
- 脚本scripts/generate-image.sh2.8 KB
03 SKILL.md 正文
Generate Image
Creates images via OpenAI GPT Image 2. Auth runs through the Codex CLI logged in with a ChatGPT account, so generation is covered by the user's Plus subscription. There is no OpenAI API key and no separate per-image API billing.
Before you start
This Skill does not talk to OpenAI directly. It shells out to the Codex CLI,
and that CLI has to already be installed on this machine and already signed in
to a ChatGPT account with an active Plus subscription. Check with codex --version
and run codex login if it is not signed in. There is no API key to paste, and
no separate per-image charge; the images are billed to that subscription.
Without a signed-in Codex CLI nothing here works, and the script fails at the first call rather than producing a file.
Quick start
# from this Skill's own directory, wherever your agent installed it
./scripts/generate-image.sh "a shiba inu wearing sunglasses, studio photo"
Saves to the resolved output folder (see below) as a slugified PNG, e.g.
assets/images/a-shiba-inu-wearing-sunglasses-studio-photo.png.
Workflow
- Turn the user's request into a strong English prompt. Follow the build order and levers in PROMPTING.md (scene → subject → details → invariants → use). Refine vague requests before calling; do not pass a bare one-liner when the asset matters.
- Run the script with the prompt. Optionally pass
--outand--name. - Report the saved path back to the user. For changes, iterate in small single-variable steps and restate the invariants (see PROMPTING.md).
Output location
When --out is not given, the script resolves the folder automatically:
| Condition | Target folder |
|---|---|
./public/ exists (web/app initiative) |
./public/images/ |
| otherwise | ./assets/images/ (created if missing) |
This establishes a consistent assets/images/ convention across projects while
respecting web projects, where images must live under public/ to be served.
Options
| Flag | Effect |
|---|---|
--out <dir> |
Write into this directory instead of the resolved default |
--out <file>.png |
Write to this exact file path |
--name <basename> |
Use this basename instead of slugifying the prompt |
Existing files are never overwritten: the script appends -2, -3, ... instead.
Deliverable naming
These outputs are work assets, so they get short functional names by default.
If an image is a stakeholder deliverable, pass an explicit
--name following the file-naming rule, e.g.
--name "20260612_Hero Banner_v1".
Requirements
codexCLI installed (brew install --cask codex)- Logged in with a ChatGPT account:
codex login(Plus or higher; image generation is not available on Free)
The script checks both and fails with a clear message if either is missing.
04 同仓库更多 Skills
zero-downtime-cloud-move
Runbook for moving a live app from one cloud to another (Google Cloud to AWS, AWS to Google Cloud, a PaaS to your own account, or one storage provider to another) without downtime. The agent inventories what is really running, builds the new stack next to the old one, keeps a one-line rollback for every phase, proves the new stack with real workloads before any traffic moves, cuts over with a checklist, watches a fixed window after the switch, copies data with an idempotent job whose second pass must report 0 left, and deletes the old cloud last. Use when someone asks to migrate, move or replatform a production app, switch cloud providers, move a backend, database files or object storage, plan a DNS cutover, or decommission an old cloud account.
zayats-ceo-branding
Build an evidence-based CEO positioning paper, Personal Branding Roadmap, and editorial workflow using Marina Zayats's public method. Use for executive branding, LinkedIn ghostwriting briefs, profile strategy, and recurring CEO-approved content planning.
yc-app-roast
YC App Roast: roast a YC or a16z Speedrun application. Use when a founder wants their YC or Speedrun answers scored, asks "what would a YC partner think", wants the weak answers found or rewritten, or wants their draft checked before they submit. Scores every answer 0-10 against public advice from YC and Speedrun partners, names the top issue with the exact words that cost points, and writes a rewrite from the founder's own facts. Works for YC and a16z Speedrun. Not affiliated with Y Combinator or a16z.
yc-app-review
YC App Review: get a YC or a16z Speedrun application reviewed by people you trust. Use when a founder wants friends, mentors or alumni to review their YC or Speedrun application, or asks to share their draft for feedback. Builds a shareable review page (one HTML file, application-portal look) where reviewers leave notes per question and press "Send my notes" to send them back as text, then parses the notes into proposed rewrites. Optional tracked private links per reviewer. Works for YC and a16z Speedrun. Not affiliated with Y Combinator or a16z.
x-growth-playbook
X Growth Playbook. Analyse a person's own X (Twitter) posts and tell them what to post next, with the numbers behind every claim. Compares quote posts vs originals, links vs no links, short vs long, time of day in their timezone, media vs text and the topics they name, reports medians with n, then writes a 10-step plan and the next 7 posts in their voice. Use when the user says "analyse my X posts", "what works on my Twitter", "how do I grow on X", "what should I post next on X", "audit my X account", or shares an X data archive, X API export or a list of their posts. Runs on the user's computer.
workplan
Create, update, or close work plans for multi-step tasks. Use when starting refactors, bug lists, feature work, migrations, or any task with 2+ steps. Also use after auto-compaction to re-orient. Triggers: "workplan", "work plan", "create a plan", "what's the plan", "where was I", or when Claude detects a multi-step task that needs tracking.