Skills Plugins MCP Prompt Model 博客 我的中心
開発 #image #agent

image-gen

Generate cover images and in-article illustrations for technical articles. Auto image backend: Imagen CLI (Nano Banana 2 / Pro), grok-img, then Codex agent. Triggers: generate images, cover image, article illustrations, visual assets, imagen, nano banana, grok imagine.

DeepseekModel キュレーション済みスキル 品質 良好 · 48 v1.0.0

取得

https://deepseekmodel.com/api/download.php?id=spillwavesolutions-image-gen-skill-md&format=skill
ダウンロード .skill 標準形式。system_prompt と model_config を収録し、任意の Agent で利用可能
.skill ファイルの system_prompt フィールドの実際の内容。
name image-gen description Generate cover images and in-article illustrations for technical articles. Auto image backend: Imagen CLI (Nano Banana 2 / Pro), grok-img, then Codex agent. Triggers: generate images, cover image, article illustrations, visual assets, imagen, nano banana, grok imagine. Image Gen Article image skill. Not the diagram renderer (that is imagen-diagrams ). When to fire Use this skill when the user wants a cover image, in-article illustration, or visual assets for an article. Do not use this skill to render Mermaid or PlantUML. Send those to imagen-diagrams . Image-engine hint and backend (auto) Use --engine-hint imagen , --engine-hint grok , or --engine-hint codex when a caller has a preferred image engine. The hint chooses a real execution path, not a guessed subcommand. Imagen calls the imagen CLI directly. Grok calls grok-img , the noninteractive xAI image CLI, then normalizes its generated file to the requested output path. Codex starts a Codex agent and asks image_gen to save the requested PNG. Grok and Codex must actually create the file. A prose-only Codex response or a missing grok-img result fails closed, leaves the prompt sidecar, and records the failed attempt. With no hint, auto tries every installed engine in this order and continues after a runtime or authentication failure. imagen CLI if on PATH. Brace policy: imagen-cli-vars (double braces). Then grok-img CLI. Brace policy: grok-imagine (no rewrite). Else codex CLI. Brace policy: grok-imagine (no rewrite). Else fail closed. Write <stem>_imagen.prompt.txt and exit 2. Never invent a PNG. If no worker is installed, keep the prompt sidecar and tell the user to run /image-gen-install . Install the imagen CLI Latest gemini-imagen ( imagen on PATH) plus Nano Banana model pin: python3 skills/image-gen/scripts/install_imagen.py Pins gemini-3.1-flash-image (Nano Banana 2) as the CLI default. Cover images use Nano Banana Pro unless the user asks otherwise. Needs GOOGLE_API_KEY or imagen keys set google YOUR_KEY . Models (Nano Banana, August 2026) Alias Model ID When nano-banana-2 (default) gemini-3.1-flash-image Article diagrams, high-volume art. 0.5K–4K. nano-banana-pro gemini-3-pro-image Covers, in-image text, dense composition. nano-banana-2-lite gemini-3.1-flash-lite-image Drafts and thumbnails. nano-banana gemini-2.5-flash-image Legacy fallback. --kind cover selects Pro. --kind article selects Nano Banana 2. Workflow 1. Analyze the article List 2–4 images (1 cover + 1–3 in-article). One concept per in-article image. 2. Generate the cover Metaphorical, high-impact, 16:9. python3 skills/image-gen/scripts/generate.py \ --kind cover \ --aspect 16:9 \ --output work/images/article_cover.png \ --prompt "A stunning digital art cover image of [metaphor] representing [topic]. Cinematic lighting, professional, high-detail. Style: conceptual 3D render." 3. Generate in-article images Direct, labeled, one concept. python3 skills/image-gen/scripts/generate.py \ --kind article \ --aspect 16:9 \ --output work/images/article_workflow.png \ --prompt "A clean technical diagram showing [concept] with color-coded arrows and clear labels. Style: blueprint, professional." # Prefer the noninteractive grok-img CLI. Configure XAI_API_KEY or run # `grok-img auth login` first. python3 skills/image-gen/scripts/generate.py \ --kind article \ --engine-hint grok \ --aspect 16:9 \ --output work/images/article_workflow.png \ --prompt "A clean technical diagram showing [concept]." 4. Integrate + ALT text Cover immediately after H1. In-article images at section breaks. ALT text 50–125 characters, specific, no "image" / "diagram" alone. ![ Architecture diagram showing Cloud Run connecting through a VPC connector to AlloyDB ]( images/article_cover.png ) 5. Verify PNG exists. Sidecar *.json records engine hint, backend, policy, model, and every attempted engine. Prompt sidecar is kept next to the PNG. Scripts From skills/image-gen/scripts/ : generate.py — write prompt, apply brace policy, call worker, fail closed install_imagen.py — pip install -U gemini-imagen and pin Nano Banana 2 backends.py — PATH detect + brace policy models.py — Nano Banana catalog Compatibility: imagen generate "PROMPT" -o FILE.png still works if imagen is on PATH. Prefer generate.py so grok/codex fallback and fail-closed behavior stay intact. Prompt craft Load references/prompting_guide.md when the prompt is non-trivial. Cover: [Style] cover image of [metaphor] representing [topic], [atmosphere], [composition]. In-article: [Style] showing [one concept], [elements], [labels]. Nano Banana Pro renders in-image text more reliably than Flash. Ask for "clear labels" only when using Pro, or keep labels short. Outputs <stem>.png (or the --output path) <stem>_imagen.prompt.txt (always) <stem>.json sidecar (engine hint, backend, policy, model, attempts) If the worker is missing, only the prompt sidecar is written and the process exits 2.
このスキルを起動するキーワード。クリックでコピーできます。

このスキルにはトリガーワードがありません。

ダウンロードした .skill に含まれるフィールド。
フィールド 説明
formatフォーマット識別子(skill/v1)
skill_idスキル固有 ID
nameスキル名
versionバージョン
description説明
categoryカテゴリ(配列)
trigger_wordsトリガーワード
tagsタグ
sourceソース
source_urlソース URL(本ページ)
exported_atエクスポート日時(ダウンロード毎)
system_promptシステムプロンプト本文
model_configモデル設定:provider / model / temperature / max_tokens / top_p
examplesサンプル
install_guide各プラットフォームの導入説明(Coze / Dify / Claude / カスタム)
同じスキルを各プラットフォーム形式で出力できます。
.skill 標準形式。system_prompt と model_config を収録し、任意の Agent で利用可能 ダウンロード
.skillpro 拡張形式。scripts / tools / dependencies / hooks を含む ダウンロード
.json 純粋な JSON 出力。system_prompt とモデル設定のみ ダウンロード
Coze frontmatter 付き Markdown。Coze へのインポート用 ダウンロード
Dify Dify DSL。アプリ作成後にそのままインポート ダウンロード

每日精选 Skill 推荐,免费送到你邮箱

输入邮箱,每天接收一个精选 AI Agent 技能推荐。完全免费,持续更新。

验证码 --

提交后我们会发送一封确认邮件,点击邮件里的链接才会开始收信。

完全免费,取消任意时间。我们不会发送垃圾邮件。