generate-image
Skill0 starsChanged 12 days agoMITView on GitHub
Generate images with gpt-image-2.5 (flare / sunburst) or gpt-image-2 via Azure OpenAI or the OpenAI API (single or batch). Use whenever the user wants to create/generate images, illustrations, hero/key visuals, article挿絵, diagrams, infographics, mockups, or icons from a text description — including Japanese-labeled figures and wide hero banners. Handles structured prompt design, quality/size selection, 429 retry, and native high-resolution output. Do NOT use for simple shapes/diagrams/icons that are better authored directly as SVG/HTML/CSS, or for extending an existing repo SVG/vector icon system.
- Reads credentials
44 other projects use a version of this.
Adopted by
Most recently taken up by
- brennantim/claude-skillstheir own version, first seen Nov 16, 2026
- Philmattt04/Claude-Skillstheir own version, first seen Nov 16, 2026
- Ivan-propio/claude-skillstheir own version, first seen Nov 16, 2026
- GodD6366/skillstheir own version, first seen Nov 15, 2026
- AESiR-0/skillstheir own version, first seen Nov 15, 2026
- krowten/claude-media-generationtheir own version, first seen Nov 15, 2026
Used with
Projects with it also use edit-image, scientific-slides and 6 more.
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.
SamurAIGPTSkilledit-image
Edits an existing image using natural language instructions via MuAPI. Use when the user wants to modify, change, transform, or retouch an existing image.
Also in 3 projects that use this
ZanderRussSkillscientific-slides
Build slide decks and presentations for research talks. Use this for making PowerPoint slides, conference presentations, seminar talks, research presentations, thesis defense slides, or any scientific talk. Provides slide structure, design templates, timing guidance, and visual validation. Works with PowerPoint and LaTeX Beamer.
Also in 3 projects that use this
nicepkgSkillteam
根据任务快速组建临时 AI Agent 团队协作。自动从 .claude/agents/ 中选择最合适的成员组队。
Also in 3 projects that use this
AnthropicSkillpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions \"deck,\" \"slides,\" \"presentation,\" or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.
Also in 5 projects that use this
AnthropicSkillpdf
Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.
Also in 4 projects that use this
SentrySkillskill-creator
Create new agent skills following the Agent Skills specification. Use when asked to "create a skill", "add a new skill", "write a skill", "make a skill", "build a skill", or scaffold a new skill with SKILL.md. Guides through requirements, writing, registration, and verification.
Also in 5 projects that use this
- +1 more from anthropics
Other versions44 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 44
- github/awesome-copilot★ 41ksame name
- K-Dense-AI/claude-scientific-writer★ 2.6ksame name
- LeonChaoX/qinyan-academic-skills★ 910same name
- OpenClaudia/openclaudia-skills★ 731same name
- ansari-project/codev★ 298same name
- cluesmith/codev★ 298same name
- Sateezg/codex-bridge★ 248same name
- DojoCodingLabs/remotion-superpowers★ 153same name
- happycapy-ai/Happycapy-skills★ 137same name
- qinyan-ai/qinyan-academic-skills★ 80same name
34 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 repository3 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms.txtllms.txt
- ja-narrated-videoSkill
The file
Files
generate-image
gpt-image-2.5-flare(既定)/gpt-image-2.5-sunburst(精度優先)/gpt-image-2(Azure OpenAI または OpenAI API)で画像を生成するスキル。2.5 は単価が同じで 1 枚の出力トークンが 2 の約 4 分の 1(費用も 4 分の 1)、生成も約 2.5 倍速かった(2048×1152・high で実測)。記事の挿絵・図版・インフォグラフィック・ヒーロー(キービジュアル)・モックアップ・アイコンなどをテキストから作る。
使う / 使わない
使う: 写真調・イラスト・インフォグラフィック・バナー/ヒーロー・製品モックアップ・多数バリエーション。ビットマップ資産が欲しいとき。 使わない:
- 単純な図形・ワイヤーフレーム・アイコンで SVG/HTML/CSS で直接描いた方が正確なもの。
- リポジトリ既存の SVG/ベクターのアイコン/ロゴ体系を拡張・整合させる作業(元ファイルを直接編集)。
- 長文・長いラベルが主役の図(段落や長い説明文が多いもの)。長文は化けやすく SVG/mermaid の方が確実。 ※「箱数が多い密なインフォグラフィック」でも各ラベルが短ければ gpt-image-2 で十分実用(下記「実績」参照)。密=不可ではなく、長文=不可。密な図はラベルを単語〜短句に割れば通る。
前提(初回だけ)
- Azure の場合は画像デプロイ
gpt-image-2.5-flareが要る(OpenAI API なら不要)。無ければ作る:
容量が小さい(1)と 429 が多発 → 10 程度に。az cognitiveservices account list-models -n <resource> -g <rg> \ --query "[?contains(name,'image')].{name:name,version:version}" -o table az cognitiveservices account deployment create -n <resource> -g <rg> \ --deployment-name gpt-image-2.5-flare --model-name gpt-image-2.5-flare --model-version 2026-09-08 \ --model-format OpenAI --sku-name GlobalStandard --sku-capacity 10 - 認証はリポ直下の
.env(.env.exampleを参照)。PROVIDER=azureならAZURE_OPENAI_BASE_URL(.../openai/v1) とAZURE_OPENAI_API_KEY、PROVIDER=openaiならOPENAI_API_KEY。実行前に読む:set -a; . ./.env; set +a Pillowは upscale 時のみ必要(基本ネイティブ大サイズで不要)。
サイズと quality(重要)
- サイズ: gpt-image-2 はネイティブ最大 3840px(gpt-image-2 で確認。2.5 は 2048×1152 だけ確認)(各辺16の倍数・長短比≤3:1・総ピクセル 655,360〜8,294,400)。
- 記事図版:
1536x1024 - ヒーロー/2K:
2048x1152(横2000px超が要るときはこれで直接生成。PIL拡大より高品質) - 4K:
3840x2160 - 正方形の下書き:
1024x1024(最速)
- 記事図版:
- quality:
low|medium|high|auto。low… 下書き・サムネ・素早い反復(速い / 実測 ~12s)high… 最終版・文字の多い図/ダイアグラム・高解像度(実測 ~64s)
- 透過PNGは gpt-image-2 非対応(2.5 は未確認)(
background=transparent不可)。必要なら「単色クロマキー背景で生成→ローカルで透過化」か、gpt-image-1.5を要相談。
使い方
スクリプト: scripts/genimg.py。
単発
set -a; . ./.env; set +a
python3 skills/generate-image/scripts/genimg.py \
--prompt "<英語で構図・スタイル、日本語ラベルは短く正確に>" \
--name my_image --out-dir out/images --size 1536x1024 --quality highバッチ(推奨: JSONジョブ)
{
"out_dir": "out/article",
"size": "1536x1024",
"quality": "high",
"style": "Clean corporate flat vector, white background, navy/teal/green palette, Japanese labels correct. ",
"images": [
{"name": "fig1", "prompt": "..."},
{"name": "fig2", "prompt": "..."}
]
}set -a; . ./.env; set +a
python3 skills/generate-image/scripts/genimg.py --job job.json
python3 skills/generate-image/scripts/genimg.py --job job.json fig2 # 一部だけ再生成ヒーロー(2K)
{ "out_dir": "out/hero", "size": "2048x1152", "quality": "high",
"style": "Cinematic premium dark-navy tech hero, glowing cyan accents, keep lower-left dark for title overlay. No large text. ",
"images": [ {"name":"kv1","prompt":"..."} ] }実行のコツ
- 1枚 ~12s(low)〜64s(high)。Bash ツールは2分で切れるので 3枚以上はバックグラウンド実行し完了通知を待つ。
- 並列で速くする:
--job job.json(引数なし)は画像を逐次生成する。急ぐときは画像ごとに--job job.json <name>を別々のバックグラウンドジョブとして同時起動する(gpt-image-2 側は並列リクエストを捌ける。capacity 10 なら数枚同時でも 429 は出にくい):
⚠️ 1つのラッパーshellで# 画像ごとに独立したバックグラウンドジョブで起動(推奨) python3 .../genimg.py --job job.json fig3 # 別ジョブ python3 .../genimg.py --job job.json fig4 # 別ジョブnohup ... & ; nohup ... &とまとめない。親shellが終了すると子プロセスが巻き込まれて落ちる(実測 exit 144・logが空)。画像ごとに独立したジョブにすること。 - バリエーション生成:迷ったら1案でなく複数版を1ジョブに並べて作り比較する。粒度違い(粗い/中間/詳細)、スタイル違い、構図違いなど。
images[]に並べて一括、または上記の並列で同時に。目視で当たりを選び、外れだけ prompt を直してその名前で再生成。 - 生成後は必ず
Readで PNG を目視(文字化け・意図ズレ・構図)。ダメなら prompt を直し、その名前だけ再生成。
プロンプト設計
特異度ポリシー
- ユーザーの指示が具体的なら整形のみ(勝手に要素・ブランド・色を足さない)。
- 汎用なら、質を実質的に上げる分だけ構図・用途・レイアウトを補う。
構造化スキーマ(必要な行だけ使う)
Use case: <infographic-diagram | ui-mockup | product-mockup | ads-marketing | illustration-story | logo-brand | stylized-concept ...>
Asset type: <どこで使う: 記事ヒーロー/挿絵/スライド図 等>
Subject: <主題>
Style/medium: <flat vector / premium dark tech / 3D 等>
Composition: <wide/close、要素配置、タイトル余白の位置>
Color palette: <配色>
Text (verbatim): "<図中に入れる文言をそのまま>"
Constraints / Avoid: <必須 / 禁止(例: no large text, no watermark)>実務のコツ
- 構図・スタイルは英語が効く。共通トーンは
style接頭辞に括り出すと統一感が出る。 - 日本語ラベルは(短ければ)密でも正確に出る。6段+分岐+各箱4〜5行の詳細インフォグラフィックでも
2048x1152/highで実質文字化けなしを確認済み。化けるのは1ラベルが長文のとき → 図中文言は prompt にそのまま日本語で明記し、各ラベルを単語〜短句に割る(長い一文にしない)。解像度は大きめ(2048px〜)+highが効く。 - 汎用ストック画を避ける: 「AI・青・光るデータ」だけだと"どの記事でも使える"絵になる。そのコンテンツ固有の語・構造(例:画面の用語、実データ表、記事の具体例)をラベル・要素に入れて内容直結にする。
- ヒーロー: タイトルを CMS で重ねるなら「一角を暗く=タイトル余白を残す」「大きな文字を入れない」を明示。
- 反復は1回1変更で。効いたか都度
Readで確認。
完了時の報告
保存パス・最終プロンプト・使ったサイズ/quality を必ず伝える。プロジェクトで使う画像はワークスペース内(例 assets/gen/)に保存し、一時領域に置きっぱなしにしない。
実績
6 段+分岐+各箱 4〜5 行の日本語ラベルを持つ詳細なデータフロー図でも、2048x1152・high で文字化けせずに出た。「密な図でも各ラベルを短くすれば実用」の裏付け。写実の素材は examples/meetroom-30s/assets/gen/_input/job_live.json が実例。
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.

